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

Unified Diff: cc/input/page_scale_animation.cc

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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 | « no previous file | cc/layers/layer_impl.cc » ('j') | ui/gfx/point_base.h » ('J')
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 d4b139b5853340c68c174019b7b29d3507f8bdfc..398dfdf198b2e33a186615ada45994d290475472 100644
--- a/cc/input/page_scale_animation.cc
+++ b/cc/input/page_scale_animation.cc
@@ -143,8 +143,8 @@ void PageScaleAnimation::ClampTargetScrollOffset() {
gfx::Vector2dF max_scroll_offset =
gfx::RectF(root_layer_size_).bottom_right() -
gfx::RectF(TargetViewportSize()).bottom_right();
- target_scroll_offset_.ClampToMin(gfx::Vector2dF());
- target_scroll_offset_.ClampToMax(max_scroll_offset);
+ target_scroll_offset_.ClampToLowerBound(gfx::Vector2dF());
+ target_scroll_offset_.ClampToUpperBound(max_scroll_offset);
}
gfx::SizeF PageScaleAnimation::StartViewportSize() const {
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | ui/gfx/point_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698