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

Unified Diff: Source/core/css/parser/BisonCSSParser-in.cpp

Issue 778003003: List marker pseudo elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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
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 db15e53a6ddb65d65f0efdeebd499b1a31f75066..2be323d11ee664cd13fe501b276d105ce147e82a 100644
--- a/Source/core/css/parser/BisonCSSParser-in.cpp
+++ b/Source/core/css/parser/BisonCSSParser-in.cpp
@@ -242,6 +242,13 @@ void BisonCSSParser::parseSelector(const String& string, CSSSelectorList& select
m_selectorListForParseSelector = 0;
}
+bool BisonCSSParser::isSelectorAllowedInParsingMode(CSSSelector::PseudoType type)
+{
+ if (isUASheetBehavior(m_context.mode()))
+ return true;
+ return type != CSSSelector::PseudoMarker;
+}
+
PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> BisonCSSParser::parseInlineStyleDeclaration(const String& string, Element* element)
{
Document& document = element->document();

Powered by Google App Engine
This is Rietveld 408576698