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

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

Issue 17654008: Implement the ::backdrop pseudo-element for modal <dialog>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use element directly Created 7 years, 5 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/CSSSelector.h ('k') | Source/core/css/PseudoStyleRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSSelector.cpp
diff --git a/Source/core/css/CSSSelector.cpp b/Source/core/css/CSSSelector.cpp
index 9d471fb3252025c3883ddce8859ad2fc6bcbbc54..5abb5e2899e73ca7d344deb382f0eb20cb5ae74f 100644
--- a/Source/core/css/CSSSelector.cpp
+++ b/Source/core/css/CSSSelector.cpp
@@ -161,6 +161,8 @@ PseudoId CSSSelector::pseudoId(PseudoType type)
return BEFORE;
case PseudoAfter:
return AFTER;
+ case PseudoBackdrop:
+ return BACKDROP;
case PseudoScrollbar:
return SCROLLBAR;
case PseudoScrollbarButton:
@@ -262,6 +264,7 @@ static HashMap<AtomicStringImpl*, CSSSelector::PseudoType>* nameToPseudoTypeMap(
DEFINE_STATIC_LOCAL(AtomicString, any, ("-webkit-any(", AtomicString::ConstructFromLiteral));
DEFINE_STATIC_LOCAL(AtomicString, anyLink, ("-webkit-any-link", AtomicString::ConstructFromLiteral));
DEFINE_STATIC_LOCAL(AtomicString, autofill, ("-webkit-autofill", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, backdrop, ("backdrop", AtomicString::ConstructFromLiteral));
DEFINE_STATIC_LOCAL(AtomicString, before, ("before", AtomicString::ConstructFromLiteral));
DEFINE_STATIC_LOCAL(AtomicString, checked, ("checked", AtomicString::ConstructFromLiteral));
DEFINE_STATIC_LOCAL(AtomicString, defaultString, ("default", AtomicString::ConstructFromLiteral));
@@ -342,6 +345,7 @@ static HashMap<AtomicStringImpl*, CSSSelector::PseudoType>* nameToPseudoTypeMap(
nameToPseudoType->set(anyLink.impl(), CSSSelector::PseudoAnyLink);
nameToPseudoType->set(any.impl(), CSSSelector::PseudoAny);
nameToPseudoType->set(autofill.impl(), CSSSelector::PseudoAutofill);
+ nameToPseudoType->set(backdrop.impl(), CSSSelector::PseudoBackdrop);
nameToPseudoType->set(before.impl(), CSSSelector::PseudoBefore);
nameToPseudoType->set(checked.impl(), CSSSelector::PseudoChecked);
nameToPseudoType->set(defaultString.impl(), CSSSelector::PseudoDefault);
@@ -453,6 +457,7 @@ void CSSSelector::extractPseudoType() const
case PseudoFirstLetter:
case PseudoFirstLine:
compat = true;
+ case PseudoBackdrop:
case PseudoDistributed:
case PseudoResizer:
case PseudoScrollbar:
« no previous file with comments | « Source/core/css/CSSSelector.h ('k') | Source/core/css/PseudoStyleRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698