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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp

Issue 1810853002: Blink Platform: Erase GraphicsLayerFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/layout/LayoutTestHelper.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp
index 7574c0a2c7d65f83e556c4a23175e3709afadc3e..ce437d53b206a43fb31361300c0225add11bc0ea 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp
@@ -6,25 +6,10 @@
#include "core/frame/FrameHost.h"
#include "core/html/HTMLIFrameElement.h"
-#include "platform/graphics/test/FakeGraphicsLayerFactory.h"
#include "platform/scroll/ScrollbarTheme.h"
namespace blink {
-namespace {
-
-class FakeChromeClient : public EmptyChromeClient {
-public:
- static PassOwnPtrWillBeRawPtr<FakeChromeClient> create() { return adoptPtrWillBeNoop(new FakeChromeClient); }
-
- GraphicsLayerFactory* graphicsLayerFactory() const override
- {
- return FakeGraphicsLayerFactory::instance();
- }
-};
-
-} // namespace
-
RenderingTest::RenderingTest(PassOwnPtrWillBeRawPtr<FrameLoaderClient> frameLoaderClient)
: m_frameLoaderClient(frameLoaderClient) { }
@@ -32,7 +17,7 @@ void RenderingTest::SetUp()
{
Page::PageClients pageClients;
fillWithEmptyClients(pageClients);
- DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<FakeChromeClient>, chromeClient, (FakeChromeClient::create()));
+ DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<EmptyChromeClient>, chromeClient, (EmptyChromeClient::create()));
pageClients.chromeClient = chromeClient.get();
m_pageHolder = DummyPageHolder::create(IntSize(800, 600), &pageClients, m_frameLoaderClient.release(), settingOverrider());

Powered by Google App Engine
This is Rietveld 408576698