Changeset 267632 in webkit
- Timestamp:
- Sep 26, 2020, 2:08:41 PM (6 years ago)
- Location:
- branches/safari-610-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
dom/Element.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-610-branch/Source/WebCore/ChangeLog
r267631 r267632 1 2020-09-25 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r266899. rdar://problem/69586659 4 5 Address a post-commit review comment after r266887 6 https://bugs.webkit.org/show_bug.cgi?id=216257 7 8 Reviewed by Darin Adler. 9 10 Remove a check that currently makes us conditionally set `IsComputedStyleInvalidFlag` if there is a computed 11 style in rare data. There should be no change in behavior; this just makes the code a bit simpler. 12 13 * dom/Element.cpp: 14 (WebCore::Element::invalidateStyle): 15 (WebCore::Element::storeDisplayContentsStyle): 16 17 18 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266899 268f45cc-cd09-0410-ab3c-d52691b4dbfc 19 20 2020-09-10 Wenson Hsieh <wenson_hsieh@apple.com> 21 22 Address a post-commit review comment after r266887 23 https://bugs.webkit.org/show_bug.cgi?id=216257 24 25 Reviewed by Darin Adler. 26 27 Remove a check that currently makes us conditionally set `IsComputedStyleInvalidFlag` if there is a computed 28 style in rare data. There should be no change in behavior; this just makes the code a bit simpler. 29 30 * dom/Element.cpp: 31 (WebCore::Element::invalidateStyle): 32 (WebCore::Element::storeDisplayContentsStyle): 33 1 34 2020-09-25 Alan Coon <alancoon@apple.com> 2 35 -
branches/safari-610-branch/Source/WebCore/dom/Element.cpp
r267631 r267632 1948 1948 // FIXME: This flag should be set whenever styles are invalidated while computed styles are present, 1949 1949 // not just in this codepath. 1950 if (hasRareData() && elementRareData()->computedStyle()) 1951 setNodeFlag(NodeFlag::IsComputedStyleInvalidFlag); 1950 setNodeFlag(NodeFlag::IsComputedStyleInvalidFlag); 1952 1951 } 1953 1952 … … 2000 1999 ASSERT(!renderer() || isPseudoElement()); 2001 2000 ensureElementRareData().setComputedStyle(WTFMove(style)); 2001 clearNodeFlag(NodeFlag::IsComputedStyleInvalidFlag); 2002 2002 } 2003 2003
Note:
See TracChangeset
for help on using the changeset viewer.