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

Unified Diff: Source/core/dom/CSSSelectorWatch.h

Issue 69543002: Abstract away some of the complexity in CSSSelectorWatch by using HashCountedSet (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 | Source/core/dom/CSSSelectorWatch.cpp » ('j') | Source/core/dom/CSSSelectorWatch.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/CSSSelectorWatch.h
diff --git a/Source/core/dom/CSSSelectorWatch.h b/Source/core/dom/CSSSelectorWatch.h
index 0eb8079d5fb672db1632aa2428b17e6c37e1d976..e1cbbed5608671958a163e9ee67b69ed98e90efb 100644
--- a/Source/core/dom/CSSSelectorWatch.h
+++ b/Source/core/dom/CSSSelectorWatch.h
@@ -34,6 +34,7 @@
#include "core/css/StyleRule.h"
#include "core/dom/DocumentSupplementable.h"
#include "platform/Timer.h"
+#include "wtf/HashCountedSet.h"
#include "wtf/HashSet.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
@@ -63,7 +64,7 @@ private:
// Maps a CSS selector string with a -webkit-callback property to the number
// of matching RenderStyle objects in this document.
- HashMap<String, int> m_matchingCallbackSelectors;
+ HashCountedSet<String> m_matchingCallbackSelectors;
// Selectors are relative to m_matchingCallbackSelectors's contents at
// the previous call to selectorMatchChanged.
HashSet<String> m_addedSelectors;
« no previous file with comments | « no previous file | Source/core/dom/CSSSelectorWatch.cpp » ('j') | Source/core/dom/CSSSelectorWatch.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698