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

Unified Diff: third_party/WebKit/Source/core/dom/SelectorQuery.cpp

Issue 2803103002: Add lots more tests for SelectorQuery fast paths. (Closed)
Patch Set: refs woops. Created 3 years, 8 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 | third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/SelectorQuery.cpp
diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
index b6f54ce4336e924113f141e24f70e1d805b1f8b6..3d4937ee77f87ec4852803899537f12ee9e85d8c 100644
--- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
+++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
@@ -269,6 +269,7 @@ void SelectorQuery::FindTraverseRootsAndExecute(
const AtomicString& class_name = selector->Value();
Element* element = ElementTraversal::FirstWithin(root_node);
while (element) {
+ QUERY_STATS_INCREMENT(fast_class);
if (HasClassName(*element, class_name)) {
ExecuteForTraverseRoot<SelectorQueryTrait>(*element, root_node,
output);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698