| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| index b520cb018938416fad29929d7ce8a06bd80fda76..5b1e0afa995bc91287995de58b8811ece87d2b17 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -42,7 +42,6 @@
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/dom/TaskRunnerHelper.h"
|
| #include "core/fileapi/File.h"
|
| -#include "core/frame/FrameHost.h"
|
| #include "core/frame/ImageBitmap.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Settings.h"
|
| @@ -1450,7 +1449,7 @@ void HTMLCanvasElement::createLayer() {
|
| // frame-less HTML canvas's document is reparenting under another frame.
|
| // See crbug.com/683172.
|
| if (frame) {
|
| - layerTreeView = frame->host()->chromeClient().getWebLayerTreeView(frame);
|
| + layerTreeView = frame->page()->chromeClient().getWebLayerTreeView(frame);
|
| m_surfaceLayerBridge =
|
| WTF::wrapUnique(new CanvasSurfaceLayerBridge(this, layerTreeView));
|
| // Creates a placeholder layer first before Surface is created.
|
|
|