⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267632 in webkit


Ignore:
Timestamp:
Sep 26, 2020, 2:08:41 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r266899. rdar://problem/69586659

Address a post-commit review comment after r266887
https://bugs.webkit.org/show_bug.cgi?id=216257

Reviewed by Darin Adler.

Remove a check that currently makes us conditionally set IsComputedStyleInvalidFlag if there is a computed
style in rare data. There should be no change in behavior; this just makes the code a bit simpler.

  • dom/Element.cpp: (WebCore::Element::invalidateStyle): (WebCore::Element::storeDisplayContentsStyle):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266899 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-610-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-610-branch/Source/WebCore/ChangeLog

    r267631 r267632  
     12020-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
    1342020-09-25  Alan Coon  <alancoon@apple.com>
    235
  • branches/safari-610-branch/Source/WebCore/dom/Element.cpp

    r267631 r267632  
    19481948    // FIXME: This flag should be set whenever styles are invalidated while computed styles are present,
    19491949    // not just in this codepath.
    1950     if (hasRareData() && elementRareData()->computedStyle())
    1951         setNodeFlag(NodeFlag::IsComputedStyleInvalidFlag);
     1950    setNodeFlag(NodeFlag::IsComputedStyleInvalidFlag);
    19521951}
    19531952
     
    20001999    ASSERT(!renderer() || isPseudoElement());
    20012000    ensureElementRareData().setComputedStyle(WTFMove(style));
     2001    clearNodeFlag(NodeFlag::IsComputedStyleInvalidFlag);
    20022002}
    20032003
Note: See TracChangeset for help on using the changeset viewer.