Index: third_party/WebKit/Source/core/html/canvas/CanvasFontCacheTest.cpp |
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasFontCacheTest.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasFontCacheTest.cpp |
index ffd08f2ecc234ddc6b69a316bd86211c93aa4c4e..d7af2b8750159703cc6b1a0330d4d7d4ee80b832 100644 |
--- a/third_party/WebKit/Source/core/html/canvas/CanvasFontCacheTest.cpp |
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasFontCacheTest.cpp |
@@ -4,8 +4,8 @@ |
#include "core/html/canvas/CanvasFontCache.h" |
+#include "core/dom/Document.h" |
#include "core/frame/FrameView.h" |
-#include "core/html/HTMLDocument.h" |
#include "core/html/canvas/CanvasContextCreationAttributes.h" |
#include "core/html/canvas/CanvasRenderingContext.h" |
#include "core/loader/EmptyClients.h" |
@@ -25,14 +25,14 @@ protected: |
void SetUp() override; |
DummyPageHolder& page() const { return *m_dummyPageHolder; } |
- HTMLDocument& document() const { return *m_document; } |
+ Document& document() const { return *m_document; } |
HTMLCanvasElement& canvasElement() const { return *m_canvasElement; } |
CanvasRenderingContext* context2d() const; |
CanvasFontCache* cache() { return m_document->canvasFontCache(); } |
private: |
std::unique_ptr<DummyPageHolder> m_dummyPageHolder; |
- Persistent<HTMLDocument> m_document; |
+ Persistent<Document> m_document; |
Persistent<HTMLCanvasElement> m_canvasElement; |
}; |
@@ -53,7 +53,7 @@ void CanvasFontCacheTest::SetUp() |
Page::PageClients pageClients; |
fillWithEmptyClients(pageClients); |
m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600), &pageClients); |
- m_document = toHTMLDocument(&m_dummyPageHolder->document()); |
+ m_document = &m_dummyPageHolder->document(); |
m_document->documentElement()->setInnerHTML("<body><canvas id='c'></canvas></body>", ASSERT_NO_EXCEPTION); |
m_document->view()->updateAllLifecyclePhases(); |
m_canvasElement = toHTMLCanvasElement(m_document->getElementById("c")); |