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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-gfx: . Created 5 years, 3 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 | « chrome/renderer/chrome_render_frame_observer.cc ('k') | content/browser/android/edge_effect_l.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 37438d3e472806b5429bad06353a39ddeb2b3d38..ab05c7ac48c6c2d9af29aad67fd6e4f4286d4737 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -749,8 +749,7 @@ int ContentViewCoreImpl::GetTopControlsHeightPix() const {
}
gfx::Size ContentViewCoreImpl::GetViewportSizeDip() const {
- return gfx::ToCeiledSize(
- gfx::ScaleSize(GetViewportSizePix(), 1.0f / dpi_scale()));
+ return gfx::ScaleToCeiledSize(GetViewportSizePix(), 1.0f / dpi_scale());
}
bool ContentViewCoreImpl::DoTopControlsShrinkBlinkSize() const {
« no previous file with comments | « chrome/renderer/chrome_render_frame_observer.cc ('k') | content/browser/android/edge_effect_l.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698