OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "core/layout/LayoutTestHelper.h" | 6 #include "core/layout/LayoutTestHelper.h" |
7 | 7 |
8 #include "core/loader/EmptyClients.h" | 8 #include "core/loader/EmptyClients.h" |
9 #include "platform/graphics/GraphicsLayer.h" | 9 #include "platform/graphics/GraphicsLayer.h" |
10 #include "platform/graphics/GraphicsLayerFactory.h" | 10 #include "platform/graphics/GraphicsLayerFactory.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 fillWithEmptyClients(pageClients); | 50 fillWithEmptyClients(pageClients); |
51 DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<FakeChromeClient>, chromeClient, (FakeChromeClient::create())); | 51 DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<FakeChromeClient>, chromeClient, (FakeChromeClient::create())); |
52 pageClients.chromeClient = chromeClient.get(); | 52 pageClients.chromeClient = chromeClient.get(); |
53 m_pageHolder = DummyPageHolder::create(IntSize(800, 600), &pageClients, null ptr, settingOverrider()); | 53 m_pageHolder = DummyPageHolder::create(IntSize(800, 600), &pageClients, null ptr, settingOverrider()); |
54 | 54 |
55 // This ensures that the minimal DOM tree gets attached | 55 // This ensures that the minimal DOM tree gets attached |
56 // correctly for tests that don't call setBodyInnerHTML. | 56 // correctly for tests that don't call setBodyInnerHTML. |
57 document().view()->updateAllLifecyclePhases(); | 57 document().view()->updateAllLifecyclePhases(); |
58 } | 58 } |
59 | 59 |
60 void RenderingTest::TearDown() | |
61 { | |
62 m_pageHolder = nullptr; | |
jbroman
2015/10/16 14:46:51
Why is this necessary? Doesn't this already happen
trchen
2015/10/20 05:11:47
Ordering issue. We toggle RuntimeEnabledFeatures b
| |
63 } | |
60 | 64 |
61 } // namespace blink | 65 } // namespace blink |
OLD | NEW |