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

Unified Diff: third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp

Issue 2683373003: RuleSet invalidations on single feature only, including tags. (Closed)
Patch Set: Trace type ruleset invalidation Created 3 years, 10 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/RuleFeatureSetTest.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
index 2ba63294c70abe1311727b3f50d4c10422cfce05..0f42e1b239b0a9c32b781ed7f1215329c4653d4d 100644
--- a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
+++ b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
@@ -1045,7 +1045,7 @@ TEST_F(RuleFeatureSetTest, RuleSetInvalidationAnyPseudo) {
EXPECT_EQ(RuleFeatureSet::SelectorMayMatch,
collectFeatures(":-webkit-any(:-webkit-any(.a, .b), #x)"));
- expectFullRecalcForRuleSetInvalidation(false);
+ expectFullRecalcForRuleSetInvalidation(true);
clearFeatures();
EXPECT_EQ(RuleFeatureSet::SelectorMayMatch,
@@ -1056,6 +1056,10 @@ TEST_F(RuleFeatureSetTest, RuleSetInvalidationAnyPseudo) {
EXPECT_EQ(RuleFeatureSet::SelectorMayMatch,
collectFeatures(":-webkit-any(*, .a) *"));
expectFullRecalcForRuleSetInvalidation(true);
+
+ EXPECT_EQ(RuleFeatureSet::SelectorMayMatch,
+ collectFeatures(":-webkit-any(.a, .b) *"));
+ expectFullRecalcForRuleSetInvalidation(true);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.cpp ('k') | third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698