| 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 7ab2325202f446b7fa4ad862b08041b279f6cecb..48e84b6e021a499fa00a4b9e20bc69740eafffe9 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -41,7 +41,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"
|
| @@ -1448,7 +1447,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.
|
|
|