Index: third_party/WebKit/Source/core/css/invalidation/InvalidationSetTest.cpp |
diff --git a/third_party/WebKit/Source/core/css/invalidation/InvalidationSetTest.cpp b/third_party/WebKit/Source/core/css/invalidation/InvalidationSetTest.cpp |
index 471d9f324443e0d695f91727a739e7e241f7e484..b8b3c67878f48bd9c3c189ae749d49acb6f9f34c 100644 |
--- a/third_party/WebKit/Source/core/css/invalidation/InvalidationSetTest.cpp |
+++ b/third_party/WebKit/Source/core/css/invalidation/InvalidationSetTest.cpp |
@@ -12,7 +12,7 @@ namespace blink { |
// Once we setWholeSubtreeInvalid, we should not keep the HashSets. |
TEST(InvalidationSetTest, SubtreeInvalid_AddBefore) |
{ |
- RefPtr<InvalidationSet> set = InvalidationSet::create(); |
+ RefPtr<InvalidationSet> set = DescendantInvalidationSet::create(); |
set->addClass("a"); |
set->setWholeSubtreeInvalid(); |
@@ -22,7 +22,7 @@ TEST(InvalidationSetTest, SubtreeInvalid_AddBefore) |
// Don't (re)create HashSets if we've already setWholeSubtreeInvalid. |
TEST(InvalidationSetTest, SubtreeInvalid_AddAfter) |
{ |
- RefPtr<InvalidationSet> set = InvalidationSet::create(); |
+ RefPtr<InvalidationSet> set = DescendantInvalidationSet::create(); |
set->setWholeSubtreeInvalid(); |
set->addTagName("a"); |
@@ -32,8 +32,8 @@ TEST(InvalidationSetTest, SubtreeInvalid_AddAfter) |
// No need to keep the HashSets when combining with a wholeSubtreeInvalid set. |
TEST(InvalidationSetTest, SubtreeInvalid_Combine_1) |
{ |
- RefPtr<InvalidationSet> set1 = InvalidationSet::create(); |
- RefPtr<InvalidationSet> set2 = InvalidationSet::create(); |
+ RefPtr<DescendantInvalidationSet> set1 = DescendantInvalidationSet::create(); |
+ RefPtr<DescendantInvalidationSet> set2 = DescendantInvalidationSet::create(); |
set1->addId("a"); |
set2->setWholeSubtreeInvalid(); |
@@ -47,8 +47,8 @@ TEST(InvalidationSetTest, SubtreeInvalid_Combine_1) |
// No need to add HashSets from combining set when we already have wholeSubtreeInvalid. |
TEST(InvalidationSetTest, SubtreeInvalid_Combine_2) |
{ |
- RefPtr<InvalidationSet> set1 = InvalidationSet::create(); |
- RefPtr<InvalidationSet> set2 = InvalidationSet::create(); |
+ RefPtr<DescendantInvalidationSet> set1 = DescendantInvalidationSet::create(); |
+ RefPtr<DescendantInvalidationSet> set2 = DescendantInvalidationSet::create(); |
set1->setWholeSubtreeInvalid(); |
set2->addAttribute("a"); |
@@ -61,7 +61,7 @@ TEST(InvalidationSetTest, SubtreeInvalid_Combine_2) |
TEST(InvalidationSetTest, SubtreeInvalid_AddCustomPseudoBefore) |
{ |
- RefPtr<InvalidationSet> set = InvalidationSet::create(); |
+ RefPtr<InvalidationSet> set = DescendantInvalidationSet::create(); |
set->setCustomPseudoInvalid(); |
ASSERT_FALSE(set->isEmpty()); |
@@ -72,7 +72,7 @@ TEST(InvalidationSetTest, SubtreeInvalid_AddCustomPseudoBefore) |
#ifndef NDEBUG |
TEST(InvalidationSetTest, ShowDebug) |
{ |
- RefPtr<InvalidationSet> set = InvalidationSet::create(); |
+ RefPtr<InvalidationSet> set = DescendantInvalidationSet::create(); |
set->show(); |
} |
#endif // NDEBUG |