Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 00df3dc848e30c84151d1b34056fa68112dd4a32
      
https://github.com/WebKit/WebKit/commit/00df3dc848e30c84151d1b34056fa68112dd4a32
  Author: Alan Baradlay <[email protected]>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M Source/WebCore/Modules/model-element/HTMLModelElement.h
    M Source/WebCore/dom/Element.h
    M Source/WebCore/html/HTMLAttachmentElement.h
    M Source/WebCore/html/HTMLCanvasElement.cpp
    M Source/WebCore/html/HTMLCanvasElement.h
    M Source/WebCore/html/HTMLFrameElement.h
    M Source/WebCore/html/HTMLIFrameElement.h
    M Source/WebCore/html/HTMLImageElement.cpp
    M Source/WebCore/html/HTMLImageElement.h
    M Source/WebCore/html/HTMLInputElement.cpp
    M Source/WebCore/html/HTMLInputElement.h
    M Source/WebCore/html/HTMLMediaElement.h
    M Source/WebCore/html/HTMLPlugInElement.cpp
    M Source/WebCore/html/HTMLPlugInElement.h
    M Source/WebCore/html/HTMLVideoElement.h
    M Source/WebCore/rendering/RenderElement.cpp
    M Source/WebCore/rendering/RenderReplaced.cpp
    M Source/WebCore/svg/SVGSVGElement.cpp
    M Source/WebCore/svg/SVGSVGElement.h

  Log Message:
  -----------
  Element should be able to tell if it's replaced or not
https://bugs.webkit.org/show_bug.cgi?id=283529

Reviewed by Antti Koivisto.

This is in preparation for being able to apply (used) content visibility on
non-replaced elements.

Replaced elements are specified here 
https://html.spec.whatwg.org/#replaced-elements, but
Element::isReplaced is a bit more nuanced and it reflects whether we construct 
a RenderReplaced for an element.

* Source/WebCore/Modules/model-element/HTMLModelElement.h:
* Source/WebCore/dom/Element.h:
(WebCore::Element::isReplaced const):
* Source/WebCore/html/HTMLAttachmentElement.h:
* Source/WebCore/html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::isReplaced const):
* Source/WebCore/html/HTMLCanvasElement.h:
* Source/WebCore/html/HTMLFrameElement.h:
* Source/WebCore/html/HTMLIFrameElement.h:
* Source/WebCore/html/HTMLImageElement.h:
* Source/WebCore/html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::isReplaced const):
* Source/WebCore/html/HTMLInputElement.h:
* Source/WebCore/html/HTMLMediaElement.h:
* Source/WebCore/html/HTMLPlugInElement.cpp:
(WebCore::HTMLPlugInElement::isReplaced const):
* Source/WebCore/html/HTMLPlugInElement.h:
* Source/WebCore/html/HTMLVideoElement.h:
* Source/WebCore/rendering/RenderElement.cpp:
(WebCore::RenderElement::createFor):
* Source/WebCore/rendering/RenderReplaced.cpp: generated image construction 
comes through here so sadly we can't just assert on isReplaced)
(WebCore::m_intrinsicSize):
* Source/WebCore/svg/SVGSVGElement.cpp:
(WebCore::SVGSVGElement::isReplaced const):
* Source/WebCore/svg/SVGSVGElement.h:

Canonical link: https://commits.webkit.org/286959@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to