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

Unified Diff: cc/input/page_scale_animation.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 | « cc/input/page_scale_animation.h ('k') | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/page_scale_animation.cc
diff --git a/cc/input/page_scale_animation.cc b/cc/input/page_scale_animation.cc
index 111502b95cd34762d6defc8ba8481139e463f2ef..1e2954419d39b9d0ff0ed64d04f8bddbe207da7a 100644
--- a/cc/input/page_scale_animation.cc
+++ b/cc/input/page_scale_animation.cc
@@ -147,7 +147,7 @@ void PageScaleAnimation::InferTargetAnchorFromScrollOffsets() {
void PageScaleAnimation::ClampTargetScrollOffset() {
gfx::Vector2dF max_scroll_offset =
gfx::RectF(root_layer_size_).bottom_right() -
- gfx::RectF(TargetViewportSize()).bottom_right();
+ gfx::RectF(gfx::SizeF(TargetViewportSize())).bottom_right();
target_scroll_offset_.SetToMax(gfx::Vector2dF());
target_scroll_offset_.SetToMin(max_scroll_offset);
}
« no previous file with comments | « cc/input/page_scale_animation.h ('k') | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698