Changeset 282502 in webkit
- Timestamp:
- Sep 16, 2021, 1:12:36 AM (5 years ago)
- Location:
- releases/WebKitGTK/webkit-2.32/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
dom/Element.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog
r282501 r282502 1 2021-04-14 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Do not reset computed style for element children with display contents style 4 https://bugs.webkit.org/show_bug.cgi?id=223794 5 6 Reviewed by Antti Koivisto. 7 8 We were checking hasDisplayContents() was false before calling resetComputedStyle() on the parent, but we don't 9 check it when iterating the children. 10 11 * dom/Element.cpp: 12 (WebCore::Element::resetComputedStyle): 13 * style/StyleTreeResolver.cpp: 14 (WebCore::Style::TreeResolver::resolveComposedTree): 15 1 16 2021-04-13 Rob Buis <rbuis@igalia.com> 2 17 -
releases/WebKitGTK/webkit-2.32/Source/WebCore/dom/Element.cpp
r282501 r282502 4218 4218 4219 4219 auto reset = [](Element& element) { 4220 if (!element.hasRareData() || !element.elementRareData()->computedStyle())4221 return;4222 4220 if (element.hasCustomStyleResolveCallbacks()) 4223 4221 element.willResetComputedStyle(); … … 4225 4223 }; 4226 4224 reset(*this); 4227 for (auto& child : descendantsOfType<Element>(*this)) 4225 for (auto& child : descendantsOfType<Element>(*this)) { 4226 if (!child.hasRareData() || !child.elementRareData()->computedStyle() || child.hasDisplayContents()) 4227 continue; 4228 4228 reset(child); 4229 } 4229 4230 } 4230 4231
Note:
See TracChangeset
for help on using the changeset viewer.