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

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

Issue 1707643002: Fixed comment about :host in SelectorChecker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | 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 b8aeae9ba96433850fc794b8281f62207a499293..aae1bd566c13e8a86e56a8d514e5dee5b63cce7c 100644
--- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
@@ -1015,8 +1015,8 @@ bool SelectorChecker::checkPseudoHost(const SelectorCheckingContext& context, Ma
return false;
ASSERT(element.shadow());
- // For empty parameter case, i.e. just :host or :host().
- if (!selector.selectorList()) // Use *'s specificity. So just 0.
+ // For the case with no parameters, i.e. just :host.
+ if (!selector.selectorList())
return true;
SelectorCheckingContext subContext(context);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698