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

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

Issue 1544893003: Don't add rule features across ::content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused method Created 4 years, 11 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 4bf74af49e110f4541d331c937bbcb9799187083..080c25e70a904e3dd35abe855cbf88c52c0404b1 100644
--- a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
+++ b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
@@ -321,4 +321,20 @@ TEST_F(RuleFeatureSetTest, tagName)
expectTagNameInvalidation("e", invalidationLists.descendants);
}
+TEST_F(RuleFeatureSetTest, contentPseudo)
+{
+ updateInvalidationSets(".a ::content .b");
+ updateInvalidationSets(".a .c");
+
+ InvalidationLists invalidationLists;
+ collectInvalidationSetsForClass(invalidationLists, "a");
+ expectClassInvalidation("c", invalidationLists.descendants);
+
+ updateInvalidationSets(".a .b");
+
+ invalidationLists.descendants.clear();
+ collectInvalidationSetsForClass(invalidationLists, "a");
+ expectClassesInvalidation("b", "c", invalidationLists.descendants);
+}
+
} // 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