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. |
} |