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

Changeset 286134 in webkit


Ignore:
Timestamp:
Nov 23, 2021, 7:47:14 AM (5 years ago)
Author:
Antti Koivisto
Message:

Add :focus-visible to focus bucket in RuleSet
https://bugs.webkit.org/show_bug.cgi?id=233178

Reviewed by Alan Bujtas.

To use :focus-visible on UA sheet we need to have this basic optimization for it.

  • style/RuleSet.cpp:

(WebCore::Style::RuleSet::addRule):

:focus-visible is a strict subset of :focus so this works without other changes.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r286133 r286134  
     12021-11-23  Antti Koivisto  <antti@apple.com>
     2
     3        Add :focus-visible to focus bucket in RuleSet
     4        https://bugs.webkit.org/show_bug.cgi?id=233178
     5
     6        Reviewed by Alan Bujtas.
     7
     8        To use :focus-visible on UA sheet we need to have this basic optimization for it.
     9
     10        * style/RuleSet.cpp:
     11        (WebCore::Style::RuleSet::addRule):
     12
     13        :focus-visible is a strict subset of :focus so this works without other changes.
     14
    1152021-11-23  Alan Bujtas  <zalan@apple.com>
    216
  • trunk/Source/WebCore/style/RuleSet.cpp

    r285100 r286134  
    174174            case CSSSelector::PseudoClassDirectFocus:
    175175            case CSSSelector::PseudoClassFocus:
     176            case CSSSelector::PseudoClassFocusVisible:
    176177                focusSelector = selector;
    177178                break;
Note: See TracChangeset for help on using the changeset viewer.