Changeset 286188 in webkit


Ignore:
Timestamp:
Nov 27, 2021 1:44:59 AM (8 months ago)
Author:
Antti Koivisto
Message:

[:has() pseudo-class] Invalidation support for adding and removing elements
https://bugs.webkit.org/show_bug.cgi?id=233489
<rdar://problem/85754298>

Unreviewed followup.

Some unitialized bits caused us to do unnecessary work and regressed Speedometer.

  • style/RuleFeature.h:

Initialize the usedMatchElements array.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r286187 r286188  
     12021-11-27  Antti Koivisto  <antti@apple.com>
     2
     3        [:has() pseudo-class] Invalidation support for adding and removing elements
     4        https://bugs.webkit.org/show_bug.cgi?id=233489
     5        <rdar://problem/85754298>
     6
     7        Unreviewed followup.
     8
     9        Some unitialized bits caused us to do unnecessary work and regressed Speedometer.
     10
     11        * style/RuleFeature.h:
     12
     13        Initialize the usedMatchElements array.
     14
    1152021-11-26  Sam Weinig  <weinig@apple.com>
    216
  • trunk/Source/WebCore/style/RuleFeature.h

    r286180 r286188  
    8787    HashSet<CSSSelector::PseudoClassType, IntHash<CSSSelector::PseudoClassType>, WTF::StrongEnumHashTraits<CSSSelector::PseudoClassType>> pseudoClassesAffectingHost;
    8888
    89     std::array<bool, matchElementCount> usedMatchElements;
     89    std::array<bool, matchElementCount> usedMatchElements { };
    9090
    9191    bool usesFirstLineRules { false };
Note: See TracChangeset for help on using the changeset viewer.