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/CSSSelectorParser.h

Issue 1094213002: Refactored compound selector parsing methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addresses review issues Created 5 years, 8 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/CSSParserValues.cpp ('k') | Source/core/css/parser/CSSSelectorParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSSelectorParser.h
diff --git a/Source/core/css/parser/CSSSelectorParser.h b/Source/core/css/parser/CSSSelectorParser.h
index 6a2f3277b30c508ece661d5a0bdd8afa394671e4..38b16b8bfdaea684bccd40389cfd96b774b7f8b8 100644
--- a/Source/core/css/parser/CSSSelectorParser.h
+++ b/Source/core/css/parser/CSSSelectorParser.h
@@ -51,11 +51,10 @@ private:
CSSSelector::AttributeMatchType consumeAttributeFlags(CSSParserTokenRange&);
QualifiedName determineNameInNamespace(const AtomicString& prefix, const AtomicString& localName);
- void rewriteSpecifiersWithNamespaceIfNeeded(CSSParserSelector*);
- void rewriteSpecifiersWithElementName(const AtomicString& namespacePrefix, const AtomicString& elementName, CSSParserSelector*, bool tagIsForNamespaceRule = false);
- void rewriteSpecifiersWithElementNameForCustomPseudoElement(const QualifiedName& tag, CSSParserSelector*, bool tagIsForNamespaceRule);
- void rewriteSpecifiersWithElementNameForContentPseudoElement(const QualifiedName& tag, CSSParserSelector*, bool tagIsForNamespaceRule);
- static PassOwnPtr<CSSParserSelector> rewriteSpecifiers(PassOwnPtr<CSSParserSelector> specifiers, PassOwnPtr<CSSParserSelector> newSpecifier);
+ void prependTypeSelectorIfNeeded(const AtomicString& namespacePrefix, const AtomicString& elementName, CSSParserSelector*);
+ void rewriteSpecifiersWithElementNameForCustomPseudoElement(const QualifiedName& tag, CSSParserSelector*, bool tagIsImplicit);
+ void rewriteSpecifiersWithElementNameForContentPseudoElement(const QualifiedName& tag, CSSParserSelector*, bool tagIsImplicit);
+ static PassOwnPtr<CSSParserSelector> addSimpleSelectorToCompound(PassOwnPtr<CSSParserSelector> compoundSelector, PassOwnPtr<CSSParserSelector> simpleSelector);
const CSSParserContext& m_context;
AtomicString m_defaultNamespace;
« no previous file with comments | « Source/core/css/parser/CSSParserValues.cpp ('k') | Source/core/css/parser/CSSSelectorParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698