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

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

Issue 1750453002: Reduce ActiveDOMObjects from core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/MediaQueryListTest.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryListTest.cpp b/third_party/WebKit/Source/core/css/MediaQueryListTest.cpp
index b703b37484857d361551f0cb64453b019936ffe8..529c4b1ab816beedcd33e7e3044ede2b35899bda 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryListTest.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryListTest.cpp
@@ -7,6 +7,7 @@
#include "core/css/MediaList.h"
#include "core/css/MediaQueryListListener.h"
#include "core/css/MediaQueryMatcher.h"
+#include "core/dom/ActiveDOMObject.h"
#include "core/dom/Document.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -26,7 +27,7 @@ TEST(MediaQueryListTest, CrashInStop)
RefPtrWillBeRawPtr<Document> document = Document::create();
RefPtrWillBeRawPtr<MediaQueryList> list = MediaQueryList::create(document.get(), MediaQueryMatcher::create(*document), MediaQuerySet::create());
list->addListener(adoptRefWillBeNoop(new TestListener()));
- list->stop();
+ list->contextDestroyed();
// This test passes if it's not crashed.
}

Powered by Google App Engine
This is Rietveld 408576698