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

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 6 years 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 8d561e05e0229d2e56f0d9ff493eec6011612244..ab051ed0d77a98a903c674505354072c6ebf780d 100644
--- a/Source/core/css/parser/BisonCSSParser-in.cpp
+++ b/Source/core/css/parser/BisonCSSParser-in.cpp
@@ -302,6 +302,19 @@ 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::PseudoMarker:
+ return false;
+ default:
+ return true;
+ }
Julien - ping for review 2014/12/05 19:44:03 return type != CSSSelection::PseudoMarker?
dsinclair 2015/01/23 20:46:36 Done. I'd originally written this thinking we'd ha
+}
+
PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> BisonCSSParser::parseInlineStyleDeclaration(const String& string, Element* element)
{
Document& document = element->document();

Powered by Google App Engine
This is Rietveld 408576698