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

Changeset 266899 in webkit


Ignore:
Timestamp:
Sep 10, 2020, 5:01:43 PM (6 years ago)
Author:
Wenson Hsieh
Message:

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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r266895 r266899  
     12020-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
    1152020-09-10  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/Source/WebCore/dom/Element.cpp

    r266887 r266899  
    19731973    // FIXME: This flag should be set whenever styles are invalidated while computed styles are present,
    19741974    // not just in this codepath.
    1975     if (hasRareData() && elementRareData()->computedStyle())
    1976         setNodeFlag(NodeFlag::IsComputedStyleInvalidFlag);
     1975    setNodeFlag(NodeFlag::IsComputedStyleInvalidFlag);
    19771976}
    19781977
     
    20252024    ASSERT(!renderer() || isPseudoElement());
    20262025    ensureElementRareData().setComputedStyle(WTFMove(style));
     2026    clearNodeFlag(NodeFlag::IsComputedStyleInvalidFlag);
    20272027}
    20282028
Note: See TracChangeset for help on using the changeset viewer.