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

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

Issue 1493913004: Remove IsPointerConvertible trait and hacks and just use std::is_base_of. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix #if cond Created 5 years 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 | « no previous file | third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/SelectorChecker.cpp
diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.cpp b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
index ca0c2f910cfa887e1ae08980b7cdf91b3227c41c..1f1f39e7910fa5f18af21bce83bf40ad6f580dd4 100644
--- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
@@ -964,9 +964,9 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context, M
case CSSSelector::PseudoScope:
if (m_mode == SharingRules)
return true;
- if (context.scope == element.document())
+ if (context.scope == &element.document())
return element == element.document().documentElement();
- return context.scope == element;
+ return context.scope == &element;
case CSSSelector::PseudoUnresolved:
return element.isUnresolvedCustomElement();
case CSSSelector::PseudoHost:
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698