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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Small feedback Created 3 years, 10 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/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.
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698