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

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

Issue 2777063007: Corrected specificity for :not for default @namespace. (Closed)
Patch Set: Created 3 years, 9 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/CSSSelector.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.cpp b/third_party/WebKit/Source/core/css/CSSSelector.cpp
index f45b9bf182ae7d16ffeac2099bebcf4a1e442b67..788695925a42fb825f5e56ce6de36873492af1d2 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSelector.cpp
@@ -109,7 +109,7 @@ inline unsigned CSSSelector::specificityForOneSelector() const {
return 0;
case PseudoNot:
ASSERT(selectorList());
- return selectorList()->first()->specificityForOneSelector();
+ return selectorList()->first()->specificity();
// FIXME: PseudoAny should base the specificity on the sub-selectors.
// See http://lists.w3.org/Archives/Public/www-style/2010Sep/0530.html
case PseudoAny:

Powered by Google App Engine
This is Rietveld 408576698