[webkit-changes] [WebKit/WebKit] f6f2c9: Tear down child renderers when removing display: c...
Rob Buis
noreply at github.com
Fri Oct 14 03:49:40 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f6f2c95eb900fce4967fbfb6586416363eb4fe7e
https://github.com/WebKit/WebKit/commit/f6f2c95eb900fce4967fbfb6586416363eb4fe7e
Author: Rob Buis <rbuis at igalia.com>
Date: 2022-10-14 (Fri, 14 Oct 2022)
Changed paths:
M Source/WebCore/dom/Element.cpp
M Source/WebCore/dom/Element.h
M Source/WebCore/rendering/updating/RenderTreeUpdater.cpp
Log Message:
-----------
Tear down child renderers when removing display: contents
https://bugs.webkit.org/show_bug.cgi?id=246450
rdar://95570441
Reviewed by Antti Koivisto.
Detect when we transition away from display: contents when
resolving computed styles and tear down child renderers in
that case. To keep track of when to do this add a flag
to Element.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::resolveComputedStyle):
* Source/WebCore/dom/Element.h:
(WebCore::Element::displayContentsChanged const):
(WebCore::Element::setDisplayContentsChanged):
* Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::updateElementRenderer):
Canonical link: https://commits.webkit.org/255527@main
More information about the webkit-changes
mailing list