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

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

Issue 2509593002: Implement ::placeholder CSS selector. (Closed)
Patch Set: <!DOCTYPE html> Created 4 years, 1 month 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/CSSSelector.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.cpp b/third_party/WebKit/Source/core/css/CSSSelector.cpp
index 54081a9f0dd469f35aff879b381a16a7a1374f67..3abd71c060af66d15e862be8388aca4492b447fb 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSelector.cpp
@@ -223,6 +223,7 @@ PseudoId CSSSelector::pseudoId(PseudoType type) {
case PseudoDefault:
case PseudoDisabled:
case PseudoOptional:
+ case PseudoPlaceholder:
case PseudoPlaceholderShown:
case PseudoRequired:
case PseudoReadOnly:
@@ -357,6 +358,7 @@ const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = {
{"optional", CSSSelector::PseudoOptional},
{"out-of-range", CSSSelector::PseudoOutOfRange},
{"past", CSSSelector::PseudoPastCue},
+ {"placeholder", CSSSelector::PseudoPlaceholder},
{"placeholder-shown", CSSSelector::PseudoPlaceholderShown},
{"read-only", CSSSelector::PseudoReadOnly},
{"read-write", CSSSelector::PseudoReadWrite},
@@ -511,6 +513,7 @@ void CSSSelector::updatePseudoType(const AtomicString& value,
// fallthrough
case PseudoBackdrop:
case PseudoCue:
+ case PseudoPlaceholder:
case PseudoResizer:
case PseudoScrollbar:
case PseudoScrollbarCorner:
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelector.h ('k') | third_party/WebKit/Source/core/css/ElementRuleCollector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698