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

Unified Diff: Source/core/css/parser/BisonCSSParser-in.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/parser/BisonCSSParser.h ('k') | Source/core/css/parser/CSSGrammar.y » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/BisonCSSParser-in.cpp
diff --git a/Source/core/css/parser/BisonCSSParser-in.cpp b/Source/core/css/parser/BisonCSSParser-in.cpp
index b2cba11567fb278f920ece8e8c007d2c0aee9868..1da717e135f380826778d59c75a8d5930e8b658b 100644
--- a/Source/core/css/parser/BisonCSSParser-in.cpp
+++ b/Source/core/css/parser/BisonCSSParser-in.cpp
@@ -302,6 +302,21 @@ void BisonCSSParser::parseSelector(const String& string, CSSSelectorList& select
m_selectorListForParseSelector = 0;
}
+bool BisonCSSParser::isSelectorAllowedInParsingMode(CSSSelector::PseudoType type)
+{
+ if (isUASheetBehavior(m_context.mode()))
+ return true;
+
+ switch (type) {
+ case CSSSelector::PseudoInternalCustomElement:
+ case CSSSelector::PseudoListBox:
+ case CSSSelector::PseudoSpatialNavigationFocus:
+ return false;
+ }
+
+ return true;
+}
+
PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> BisonCSSParser::parseInlineStyleDeclaration(const String& string, Element* element)
{
Document& document = element->document();
« no previous file with comments | « Source/core/css/parser/BisonCSSParser.h ('k') | Source/core/css/parser/CSSGrammar.y » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698