Changeset 266899 in webkit
- Timestamp:
- Sep 10, 2020, 5:01:43 PM (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
r266895 r266899 1 2020-09-10 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Address a post-commit review comment after r266887 4 https://bugs.webkit.org/show_bug.cgi?id=216257 5 6 Reviewed by Darin Adler. 7 8 Remove a check that currently makes us conditionally set `IsComputedStyleInvalidFlag` if there is a computed 9 style in rare data. There should be no change in behavior; this just makes the code a bit simpler. 10 11 * dom/Element.cpp: 12 (WebCore::Element::invalidateStyle): 13 (WebCore::Element::storeDisplayContentsStyle): 14 1 15 2020-09-10 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WebCore/dom/Element.cpp
r266887 r266899 1973 1973 // FIXME: This flag should be set whenever styles are invalidated while computed styles are present, 1974 1974 // not just in this codepath. 1975 if (hasRareData() && elementRareData()->computedStyle()) 1976 setNodeFlag(NodeFlag::IsComputedStyleInvalidFlag); 1975 setNodeFlag(NodeFlag::IsComputedStyleInvalidFlag); 1977 1976 } 1978 1977 … … 2025 2024 ASSERT(!renderer() || isPseudoElement()); 2026 2025 ensureElementRareData().setComputedStyle(WTFMove(style)); 2026 clearNodeFlag(NodeFlag::IsComputedStyleInvalidFlag); 2027 2027 } 2028 2028
Note:
See TracChangeset
for help on using the changeset viewer.