Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Unified Diff: Source/core/css/CSSSelector.cpp

Issue 662243003: Use ::-internal-media-controls* instead of ::-webkit-media-controls* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: introduce PseudoInternalCustomElement Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSSelector.h ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSSelector.cpp
diff --git a/Source/core/css/CSSSelector.cpp b/Source/core/css/CSSSelector.cpp
index 2670210b67480ac749f930702aa531099d420ad1..4f780baee55ad7f582bb34d64c0931ab97604f38 100644
--- a/Source/core/css/CSSSelector.cpp
+++ b/Source/core/css/CSSSelector.cpp
@@ -242,6 +242,7 @@ PseudoId CSSSelector::pseudoId(PseudoType type)
case PseudoRightPage:
case PseudoInRange:
case PseudoOutOfRange:
+ case PseudoInternalCustomElement:
case PseudoUserAgentCustomElement:
case PseudoWebKitCustomElement:
case PseudoCue:
@@ -278,8 +279,6 @@ struct NameToPseudoStruct {
// These tables should be kept sorted.
const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = {
{"-internal-list-box", CSSSelector::PseudoListBox},
-{"-internal-media-controls-cast-button", CSSSelector::PseudoWebKitCustomElement},
-{"-internal-media-controls-overlay-cast-button", CSSSelector::PseudoWebKitCustomElement},
{"-internal-spatial-navigation-focus", CSSSelector::PseudoSpatialNavigationFocus},
{"-webkit-any-link", CSSSelector::PseudoAnyLink},
{"-webkit-autofill", CSSSelector::PseudoAutofill},
@@ -441,6 +440,8 @@ CSSSelector::PseudoType CSSSelector::parsePseudoType(const AtomicString& name, b
if (pseudoType != PseudoUnknown)
return pseudoType;
+ if (name.startsWith("-internal-"))
+ return PseudoInternalCustomElement;
if (name.startsWith("-webkit-"))
return PseudoWebKitCustomElement;
if (name.startsWith("cue"))
@@ -476,6 +477,7 @@ void CSSSelector::extractPseudoType() const
case PseudoScrollbarTrack:
case PseudoScrollbarTrackPiece:
case PseudoSelection:
+ case PseudoInternalCustomElement:
case PseudoUserAgentCustomElement:
case PseudoWebKitCustomElement:
case PseudoContent:
« no previous file with comments | « Source/core/css/CSSSelector.h ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698