summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/dom/mutation_observer_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/dom/mutation_observer_test.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/dom/mutation_observer_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/dom/mutation_observer_test.cc b/chromium/third_party/blink/renderer/core/dom/mutation_observer_test.cc
index 4f8b0290f53..63598f4016c 100644
--- a/chromium/third_party/blink/renderer/core/dom/mutation_observer_test.cc
+++ b/chromium/third_party/blink/renderer/core/dom/mutation_observer_test.cc
@@ -22,7 +22,7 @@ class EmptyMutationCallback : public MutationObserver::Delegate {
void Deliver(const MutationRecordVector&, MutationObserver&) override {}
- void Trace(blink::Visitor* visitor) override {
+ void Trace(Visitor* visitor) override {
visitor->Trace(document_);
MutationObserver::Delegate::Trace(visitor);
}
@@ -40,8 +40,8 @@ TEST(MutationObserverTest, DisconnectCrash) {
root->SetInnerHTMLFromString("<head><title>\n</title></head><body></body>");
Node* head = root->firstChild()->firstChild();
DCHECK(head);
- Persistent<MutationObserver> observer =
- MutationObserver::Create(new EmptyMutationCallback(*document));
+ Persistent<MutationObserver> observer = MutationObserver::Create(
+ MakeGarbageCollected<EmptyMutationCallback>(*document));
MutationObserverInit* init = MutationObserverInit::Create();
init->setCharacterDataOldValue(false);
observer->observe(head, init, ASSERT_NO_EXCEPTION);