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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 11953054: Fix high-DPI on Windows to make use of DIP scaling in WebKit. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code cleanup. Created 7 years, 11 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: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index d433291906ddfc5c024d2362fa9e4c3a101f7c79..8f6cd50eab2c597bd20a7f28a15b95741512c012 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1338,16 +1338,11 @@ bool RenderWidgetHostImpl::IsInOverscrollGesture() const {
}
void RenderWidgetHostImpl::GetWebScreenInfo(WebKit::WebScreenInfo* result) {
-#if defined(OS_POSIX) || defined(USE_AURA)
if (GetView()) {
static_cast<RenderWidgetHostViewPort*>(GetView())->GetScreenInfo(result);
} else {
RenderWidgetHostViewPort::GetDefaultScreenInfo(result);
}
-#else
- *result = WebKit::WebScreenInfoFactory::screenInfo(
- gfx::NativeViewFromId(GetNativeViewId()));
-#endif
}
void RenderWidgetHostImpl::Destroy() {

Powered by Google App Engine
This is Rietveld 408576698