-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename some pseudo-class/element parsing functions
https://bugs.webkit.org/show_bug.cgi?id=267084 rdar://120517489 Reviewed by Antti Koivisto. - Add "Name" suffix to functions that parse names without the colons. - Change the map lookup functions to use the `find` prefix instead of `parse`, to prevent folks from mistakingly using them to parse strings - Rename `parseStandalonePseudoElement` to `parsePseudoElement` since it parses a pseudo-element with the colons. The end result is: parsePseudoElement -> parsePseudoElementName parsePseudoElementString -> findPseudoElementName parseStandalonePseudoElement -> parsePseudoElement parsePseudoClassAndCompatibilityElementString -> findPseudoClassAndCompatibilityElementName * Source/WebCore/animation/WebAnimationUtilities.cpp: (WebCore::pseudoIdFromString): * Source/WebCore/css/CSSSelector.cpp: (WebCore::CSSSelector::parsePseudoElementName): (WebCore::CSSSelector::parsePseudoElement): (WebCore::CSSSelector::parseStandalonePseudoElement): Deleted. * Source/WebCore/css/CSSSelector.h: * Source/WebCore/css/SelectorPseudoTypeMap.h: * Source/WebCore/css/parser/CSSSelectorParser.cpp: (WebCore::CSSSelectorParser::containsUnknownWebKitPseudoElements): * Source/WebCore/css/parser/MutableCSSSelector.cpp: (WebCore::MutableCSSSelector::parsePseudoElementSelector): (WebCore::MutableCSSSelector::parsePseudoClassSelector): * Source/WebCore/css/process-css-pseudo-selectors.py: * Source/WebCore/page/LocalDOMWindow.cpp: (WebCore::LocalDOMWindow::getComputedStyle const): (WebCore::LocalDOMWindow::getMatchedCSSRules const): Canonical link: https://commits.webkit.org/272682@main
- Loading branch information
Showing
8 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters