Index: Source/core/css/MediaQueryEvaluatorTest.cpp |
diff --git a/Source/core/css/MediaQueryEvaluatorTest.cpp b/Source/core/css/MediaQueryEvaluatorTest.cpp |
index d72278ef72b31239291eb539b2d6cd8a36e66962..5b9ce59ee4032f99699c36f99ec3a501431d8f8a 100644 |
--- a/Source/core/css/MediaQueryEvaluatorTest.cpp |
+++ b/Source/core/css/MediaQueryEvaluatorTest.cpp |
@@ -84,8 +84,9 @@ TestCase printTestCases[] = { |
void testMQEvaluator(TestCase* testCases, const MediaQueryEvaluator& mediaQueryEvaluator) |
{ |
+ RefPtrWillBePersistent<MediaQuerySet> querySet = nullptr; |
for (unsigned i = 0; testCases[i].input; ++i) { |
- RefPtrWillBeRawPtr<MediaQuerySet> querySet = MediaQuerySet::create(testCases[i].input); |
+ querySet = MediaQuerySet::create(testCases[i].input); |
ASSERT_EQ(testCases[i].output, mediaQueryEvaluator.eval(querySet.get())); |
} |
} |
@@ -132,10 +133,10 @@ TEST(MediaQueryEvaluatorTest, Dynamic) |
TEST(MediaQueryEvaluatorTest, DynamicNoView) |
{ |
OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(500, 500)); |
- RefPtr<FrameView> view = pageHolder->frame().view(); |
+ RefPtrWillBePersistent<FrameView> view = pageHolder->frame().view(); |
pageHolder->frame().setView(nullptr); |
MediaQueryEvaluator mediaQueryEvaluator(&pageHolder->frame()); |
- RefPtrWillBeRawPtr<MediaQuerySet> querySet = MediaQuerySet::create("foobar"); |
+ RefPtrWillBePersistent<MediaQuerySet> querySet = MediaQuerySet::create("foobar"); |
bool output = false; |
ASSERT_EQ(output, mediaQueryEvaluator.eval(querySet.get())); |
pageHolder->frame().setView(view); |