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

Unified Diff: third_party/WebKit/Source/core/frame/Screen.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/frame/Screen.cpp
diff --git a/third_party/WebKit/Source/core/frame/Screen.cpp b/third_party/WebKit/Source/core/frame/Screen.cpp
index 530c0bb44ac860781fd7645e0aaeeda5ced69e12..d61ba45cc8f8c2bbdcdd72d8ea5881fb6a443ed8 100644
--- a/third_party/WebKit/Source/core/frame/Screen.cpp
+++ b/third_party/WebKit/Source/core/frame/Screen.cpp
@@ -28,7 +28,6 @@
#include "core/frame/Screen.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/Settings.h"
@@ -68,17 +67,17 @@ int Screen::width() const {
}
unsigned Screen::colorDepth() const {
- if (!frame() || !frame()->host())
+ if (!frame() || !frame()->page())
return 0;
return static_cast<unsigned>(
- frame()->host()->chromeClient().screenInfo().depth);
+ frame()->page()->chromeClient().screenInfo().depth);
}
unsigned Screen::pixelDepth() const {
if (!frame())
return 0;
return static_cast<unsigned>(
- frame()->host()->chromeClient().screenInfo().depth);
+ frame()->page()->chromeClient().screenInfo().depth);
}
int Screen::availLeft() const {
« no previous file with comments | « third_party/WebKit/Source/core/frame/Navigator.cpp ('k') | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698