-
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.
Stop stripping prefixes from PseudoClass & PseudoElement
https://bugs.webkit.org/show_bug.cgi?id=266946 rdar://120323601 Reviewed by Darin Adler. Since prefixes are no longer the main practice to graduate experimental features and they are only used for compatibility reasons or for internal usage, there is no longer a reason to strip the prefixes from enum classes. It provides more clarity to what is exposed to the web, and it reduces confusion. This also fixes the bug where the WebInspector shows unprefixed pseudo elements for scrollbar/resizer pseudo elements which don't actually have unprefixed counterparts. * LayoutTests/inspector/css/getMatchedStylesForNode-expected.txt: * Source/JavaScriptCore/inspector/scripts/codegen/generator.py: (ucfirst): * Source/JavaScriptCore/inspector/protocol/CSS.json: * Source/WebCore/animation/WebAnimationUtilities.cpp: (WebCore::compareDeclarativeAnimationOwningElementPositionsInDocumentTreeOrder): (WebCore::pseudoIdAsString): * Source/WebCore/css/CSSSelector.cpp: (WebCore::CSSSelector::pseudoId): (WebCore::CSSSelector::selectorText const): * Source/WebCore/css/CSSSelector.h: (WebCore::isLogicalCombinationPseudoClass): * Source/WebCore/css/SelectorChecker.cpp: (WebCore::hasScrollbarPseudoElement): (WebCore::SelectorChecker::checkOne const): * Source/WebCore/css/SelectorChecker.h: (WebCore::SelectorChecker::isCommonPseudoClassSelector): * Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in: * Source/WebCore/css/makeSelectorPseudoClassAndCompatibilityElementMap.py: (enumerablePseudoType): * Source/WebCore/css/makeSelectorPseudoElementsMap.py: (enumerablePseudoType): * Source/WebCore/css/parser/CSSSelectorParser.cpp: (WebCore::isPseudoClassValidAfterPseudoElement): (WebCore::isOnlyPseudoClassFunction): (WebCore::CSSSelectorParser::consumePseudo): * Source/WebCore/cssjit/SelectorCompiler.cpp: (WebCore::SelectorCompiler::addPseudoClassType): (WebCore::SelectorCompiler::constructFragmentsInternal): * Source/WebCore/dom/Element.cpp: (WebCore::Element::setBeingDragged): (WebCore::Element::setIsLink): * Source/WebCore/dom/FullscreenManager.cpp: (WebCore::FullscreenManager::setAnimatingFullscreen): (WebCore::FullscreenManager::setFullscreenControlsHidden): * Source/WebCore/html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::setAutoFilledAndViewable): (WebCore::HTMLInputElement::setAutoFilledAndObscured): * Source/WebCore/inspector/agents/InspectorCSSAgent.cpp: (WebCore::InspectorCSSAgent::protocolValueForPseudoId): * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::styleHidesScrollbarWithOrientation const): (WebCore::LocalFrameView::updateScrollCorner): * Source/WebCore/rendering/RenderLayerScrollableArea.cpp: (WebCore::RenderLayerScrollableArea::updateScrollCornerStyle): (WebCore::RenderLayerScrollableArea::updateResizerStyle): * Source/WebCore/rendering/RenderScrollbar.cpp: (WebCore::pseudoForScrollbarPart): * Source/WebCore/rendering/style/RenderStyleConstants.cpp: (WebCore::operator<<): * Source/WebCore/rendering/style/RenderStyleConstants.h: * Source/WebCore/rendering/style/RenderStyleInlines.h: (WebCore::RenderStyle::usesLegacyScrollbarStyle const): * Source/WebCore/style/RuleSet.cpp: (WebCore::Style::RuleSet::addRule): * Source/WebCore/style/StyleTreeResolver.cpp: (WebCore::Style::TreeResolver::resolveElement): (WebCore::Style::TreeResolver::resolvePseudoElement): * Source/WebInspectorUI/UserInterface/Controllers/CSSManager.js: (WI.CSSManager.displayNameForPseudoId): Canonical link: https://commits.webkit.org/272544@main
- Loading branch information
Showing
26 changed files
with
233 additions
and
245 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
Oops, something went wrong.