diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/dom/live_node_list_registry_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/dom/live_node_list_registry_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/dom/live_node_list_registry_test.cc b/chromium/third_party/blink/renderer/core/dom/live_node_list_registry_test.cc index 48b0416b369..10783807850 100644 --- a/chromium/third_party/blink/renderer/core/dom/live_node_list_registry_test.cc +++ b/chromium/third_party/blink/renderer/core/dom/live_node_list_registry_test.cc @@ -101,14 +101,15 @@ TEST_F(LiveNodeListRegistryTest, ExplicitRemove) { struct LiveNodeListRegistryWrapper : public GarbageCollectedFinalized<LiveNodeListRegistryWrapper> { LiveNodeListRegistry registry; - void Trace(blink::Visitor* visitor) { visitor->Trace(registry); } + void Trace(Visitor* visitor) { visitor->Trace(registry); } }; // The set of types which match should be updated as elements are removed due to // the garbage collected. Similar to the previous case, except all references to // |a| are removed together by the GC. TEST_F(LiveNodeListRegistryTest, ImplicitRemove) { - auto wrapper = WrapPersistent(new LiveNodeListRegistryWrapper); + auto wrapper = + WrapPersistent(MakeGarbageCollected<LiveNodeListRegistryWrapper>()); auto& registry = wrapper->registry; auto a = WrapPersistent(CreateNodeList()); auto b = WrapPersistent(CreateNodeList()); |