[webkit-changes] [WebKit/WebKit] 8d1371: Minor cleanup in SelectorChecker::matchRecursively()

Anne van Kesteren noreply at github.com
Wed Dec 20 04:20:29 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8d1371eea8d2d9fc1853884609ebd26586b085f0
      https://github.com/WebKit/WebKit/commit/8d1371eea8d2d9fc1853884609ebd26586b085f0
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2023-12-20 (Wed, 20 Dec 2023)

  Changed paths:
    M Source/WebCore/css/SelectorChecker.cpp

  Log Message:
  -----------
  Minor cleanup in SelectorChecker::matchRecursively()
https://bugs.webkit.org/show_bug.cgi?id=266641

Reviewed by Antti Koivisto.

Since we already know we are matching a pseudo element there is no need
for the additional check isCustomPseudoElement() makes.

And then since we are in the condition where
isWebKitCustomPseudoElement() is true, there's no need to check it
again.

* Source/WebCore/css/SelectorChecker.cpp:
(WebCore::SelectorChecker::matchRecursively const):

Canonical link: https://commits.webkit.org/272339@main




More information about the webkit-changes mailing list