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

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: Remove redundant comments. 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
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/browser/renderer_host/render_widget_host_view_guest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27c51ca43ab2b8b2f823c10db169ad4b1b353694..1168b6b67165702fec2ca9f61915600e526f3113 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1344,16 +1344,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() {
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/browser/renderer_host/render_widget_host_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698