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

Unified Diff: Source/core/css/CSSSelector.cpp

Issue 1280423002: CSS4: Implement :placeholder-shown pseudo class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated testcase Created 5 years, 4 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/CSSSelector.cpp
diff --git a/Source/core/css/CSSSelector.cpp b/Source/core/css/CSSSelector.cpp
index 101230fe71c1885623c3a8e36994841bb1965beb..faa3dcf021f5154e6a1b638a040fbe24f163d71a 100644
--- a/Source/core/css/CSSSelector.cpp
+++ b/Source/core/css/CSSSelector.cpp
@@ -224,6 +224,7 @@ PseudoId CSSSelector::pseudoId(PseudoType type)
case PseudoDefault:
case PseudoDisabled:
case PseudoOptional:
+ case PseudoPlaceholderShown:
case PseudoRequired:
case PseudoReadOnly:
case PseudoReadWrite:
@@ -337,6 +338,7 @@ const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = {
{"optional", CSSSelector::PseudoOptional},
{"out-of-range", CSSSelector::PseudoOutOfRange},
{"past", CSSSelector::PseudoPastCue},
+{"placeholder-shown", CSSSelector::PseudoPlaceholderShown},
{"read-only", CSSSelector::PseudoReadOnly},
{"read-write", CSSSelector::PseudoReadWrite},
{"required", CSSSelector::PseudoRequired},
@@ -532,6 +534,7 @@ void CSSSelector::updatePseudoType(const AtomicString& value, bool hasArguments)
case PseudoOnlyChild:
case PseudoOnlyOfType:
case PseudoOptional:
+ case PseudoPlaceholderShown:
case PseudoOutOfRange:
case PseudoPastCue:
case PseudoReadOnly:

Powered by Google App Engine
This is Rietveld 408576698