Changeset 275938 in webkit
- Timestamp:
- Apr 14, 2021, 2:42:27 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
dom/Element.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r275935 r275938 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 -
trunk/Source/WebCore/dom/Element.cpp
r275935 r275938 4242 4242 4243 4243 auto reset = [](Element& element) { 4244 if (!element.hasRareData() || !element.elementRareData()->computedStyle())4245 return;4246 4244 if (element.hasCustomStyleResolveCallbacks()) 4247 4245 element.willResetComputedStyle(); … … 4249 4247 }; 4250 4248 reset(*this); 4251 for (auto& child : descendantsOfType<Element>(*this)) 4249 for (auto& child : descendantsOfType<Element>(*this)) { 4250 if (!child.hasRareData() || !child.elementRareData()->computedStyle() || child.hasDisplayContents()) 4251 continue; 4252 4252 reset(child); 4253 } 4253 4254 } 4254 4255
Note:
See TracChangeset
for help on using the changeset viewer.