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

Unified Diff: sky/engine/core/html/HTMLContentElement.cpp

Issue 848493003: Don't scope check in SelectorChecker. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/dom/SelectorQuery.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLContentElement.cpp
diff --git a/sky/engine/core/html/HTMLContentElement.cpp b/sky/engine/core/html/HTMLContentElement.cpp
index ae9c76e8a81a398b2444b8a4b7ad75d9c479fd3b..3491807f422a3a5da3b8c17fc09f5305e7c08b41 100644
--- a/sky/engine/core/html/HTMLContentElement.cpp
+++ b/sky/engine/core/html/HTMLContentElement.cpp
@@ -110,9 +110,8 @@ bool HTMLContentElement::validateSelect() const
bool HTMLContentElement::matchSelector(const Vector<RawPtr<Node>, 32>& siblings, int nth) const
{
for (const CSSSelector* selector = selectorList().first(); selector; selector = CSSSelectorList::next(*selector)) {
- Element* element = toElement(siblings[nth]);
- SelectorChecker checker(*element);
- if (checker.match(*selector, element))
+ SelectorChecker checker(toElement(*siblings[nth]));
+ if (checker.match(*selector))
return true;
}
return false;
« no previous file with comments | « sky/engine/core/dom/SelectorQuery.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698