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

Unified Diff: third_party/WebKit/Source/core/css/RuleFeature.h

Issue 2303443003: CSS: Additional asserts for style invalidation (Closed)
Patch Set: Created 4 years, 4 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
Index: third_party/WebKit/Source/core/css/RuleFeature.h
diff --git a/third_party/WebKit/Source/core/css/RuleFeature.h b/third_party/WebKit/Source/core/css/RuleFeature.h
index eb4637caf1878c4c32596feaed361e8e828c8262..0f1f3163bb43790ef6a614845ce08e174aa40769 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.h
+++ b/third_party/WebKit/Source/core/css/RuleFeature.h
@@ -123,7 +123,7 @@ private:
// Each map entry is either a DescendantInvalidationSet or SiblingInvalidationSet.
// When both are needed, we store the SiblingInvalidationSet, and use it to hold the DescendantInvalidationSet.
using InvalidationSetMap = HashMap<AtomicString, RefPtr<InvalidationSet>>;
- using PseudoTypeInvalidationSetMap = HashMap<CSSSelector::PseudoType, RefPtr<InvalidationSet>, WTF::IntHash<unsigned>, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
+ using PseudoTypeInvalidationSetMap = HashMap<int, RefPtr<InvalidationSet>>; // key values are CSSSelector::PseudoType
esprehn 2016/09/01 05:30:22 Does this need changing in this patch?
Eric Willigers 2016/09/01 14:56:31 No, we can focus on non-zero keys in this patch.
struct FeatureMetadata {
DISALLOW_NEW();

Powered by Google App Engine
This is Rietveld 408576698