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

Changeset 267722 in webkit


Ignore:
Timestamp:
Sep 28, 2020, 5:38:18 PM (6 years ago)
Author:
Alan Coon
Message:

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

Integrator's note: as some of the symbols present on trunk are not available on branch, special modifications had to be made to this cherry-pick to build.

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

    r267721 r267722  
     12020-09-28  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r266899. rdar://problem/69586659
     4
     5    Integrator's note: as some of the symbols present on trunk are not available on branch, special modifications had to be made to this cherry-pick to build.
     6   
     7    Address a post-commit review comment after r266887
     8    https://bugs.webkit.org/show_bug.cgi?id=216257
     9   
     10    Reviewed by Darin Adler.
     11   
     12    Remove a check that currently makes us conditionally set `IsComputedStyleInvalidFlag` if there is a computed
     13    style in rare data. There should be no change in behavior; this just makes the code a bit simpler.
     14   
     15    * dom/Element.cpp:
     16    (WebCore::Element::invalidateStyle):
     17    (WebCore::Element::storeDisplayContentsStyle):
     18   
     19    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266899 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     20
     21    2020-09-10  Wenson Hsieh  <wenson_hsieh@apple.com>
     22
     23            Integrator's note: as some of the symbols present on trunk are not available on branch, special modifications
     24            had to be made to this cherry-pick.
     25
     26            Address a post-commit review comment after r266887
     27            https://bugs.webkit.org/show_bug.cgi?id=216257
     28
     29            Reviewed by Darin Adler.
     30
     31            Remove a check that currently makes us conditionally set `IsComputedStyleInvalidFlag` if there is a computed
     32            style in rare data. There should be no change in behavior; this just makes the code a bit simpler.
     33
     34            * dom/Element.cpp:
     35            (WebCore::Element::invalidateStyle):
     36            (WebCore::Element::storeDisplayContentsStyle):
     37
    1382020-09-28  Alan Coon  <alancoon@apple.com>
    239
  • branches/safari-610-branch/Source/WebCore/dom/Element.cpp

    r267721 r267722  
    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         setFlag(IsComputedStyleInvalidFlag);
     1950    setFlag(IsComputedStyleInvalidFlag);
    19521951}
    19531952
     
    20001999    ASSERT(!renderer() || isPseudoElement());
    20012000    ensureElementRareData().setComputedStyle(WTFMove(style));
     2001    clearFlag(IsComputedStyleInvalidFlag);
    20022002}
    20032003
Note: See TracChangeset for help on using the changeset viewer.