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

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

Issue 772363002: Remove code to collect rules when matching. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | « sky/engine/core/frame/Window.idl ('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 f5d2371fc7d1ea262fd0fd627fc1bc03128adcbc..2c3a0cde8f3af935cb1a45a3d4ae0ef4c8431fbe 100644
--- a/sky/engine/core/html/HTMLContentElement.cpp
+++ b/sky/engine/core/html/HTMLContentElement.cpp
@@ -110,7 +110,7 @@ bool HTMLContentElement::validateSelect() const
static inline bool checkOneSelector(const CSSSelector& selector, const Vector<RawPtr<Node>, 32>& siblings, int nth)
{
Element* element = toElement(siblings[nth]);
- SelectorChecker selectorChecker(element->document(), SelectorChecker::CollectingCSSRules);
+ SelectorChecker selectorChecker(element->document(), SelectorChecker::QueryingRules);
SelectorChecker::SelectorCheckingContext context(selector, element);
return selectorChecker.match(context);
}
« no previous file with comments | « sky/engine/core/frame/Window.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698