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

Unified Diff: Source/core/css/CSSTokenizer-in.cpp

Issue 138023007: Renamed :host to :ancestor and made :host to match only shadow host. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/CSSTokenizer-in.cpp
diff --git a/Source/core/css/CSSTokenizer-in.cpp b/Source/core/css/CSSTokenizer-in.cpp
index ad134847ce66b1cc16884bbc9170b8d191510f8a..45a4a0d327ee65fca2f14a907fa5e1c66a2b42f8 100644
--- a/Source/core/css/CSSTokenizer-in.cpp
+++ b/Source/core/css/CSSTokenizer-in.cpp
@@ -733,6 +733,10 @@ inline bool CSSTokenizer::detectFunctionTypeToken(int length)
m_token = HOSTFUNCTION;
return true;
}
+ CASE("ancestor") {
+ m_token = ANCESTORFUNCTION;
+ return true;
+ }
CASE("nth-child") {
m_parsingMode = NthChildMode;
return true;

Powered by Google App Engine
This is Rietveld 408576698