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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserSelector.h

Issue 1574323003: Split compound selector after consume finished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upload-base
Patch Set: Removed obsolete serialization hack and fixed unit tests. Created 4 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: third_party/WebKit/Source/core/css/parser/CSSParserSelector.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserSelector.h b/third_party/WebKit/Source/core/css/parser/CSSParserSelector.h
index 1598baf39b2f9648d54b81eebdbdeeb5f1b20758..b0f704f7d7a3ad6c292763d5d1bd25f2bb9d1ab3 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserSelector.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserSelector.h
@@ -55,7 +55,7 @@ public:
void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector);
void setSelectorList(PassOwnPtr<CSSSelectorList>);
- bool hasHostPseudoSelector() const;
+ bool isHostPseudoSelector() const;
CSSSelector::Match match() const { return m_selector->match(); }
CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType(); }
@@ -63,13 +63,12 @@ public:
bool needsImplicitShadowCrossingCombinatorForMatching() const { return pseudoType() == CSSSelector::PseudoWebKitCustomElement || pseudoType() == CSSSelector::PseudoCue || pseudoType() == CSSSelector::PseudoShadow; }
bool isSimple() const;
- bool hasImplicitShadowCrossingCombinatorForMatching() const;
CSSParserSelector* tagHistory() const { return m_tagHistory.get(); }
void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory = selector; }
void clearTagHistory() { m_tagHistory.clear(); }
- void insertTagHistory(CSSSelector::Relation before, PassOwnPtr<CSSParserSelector>, CSSSelector::Relation after);
void appendTagHistory(CSSSelector::Relation, PassOwnPtr<CSSParserSelector>);
+ PassOwnPtr<CSSParserSelector> releaseTagHistory();
void prependTagSelector(const QualifiedName&, bool tagIsImplicit = false);
private:
@@ -77,11 +76,6 @@ private:
OwnPtr<CSSParserSelector> m_tagHistory;
};
-inline bool CSSParserSelector::hasImplicitShadowCrossingCombinatorForMatching() const
-{
- return m_selector->relation() == CSSSelector::ShadowPseudo;
-}
-
} // namespace blink
#endif
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleSetTest.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParserSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698