Index: cc/page_scale_animation.cc |
diff --git a/cc/page_scale_animation.cc b/cc/page_scale_animation.cc |
index 49948abd333e9ce8aa72f83e6db51e143e58ebe2..ce4b372c582bed245b1099d1dd3e54b12c239784 100644 |
--- a/cc/page_scale_animation.cc |
+++ b/cc/page_scale_animation.cc |
@@ -79,7 +79,7 @@ void PageScaleAnimation::zoomWithAnchor(gfx::Vector2d anchor, float finalPageSca |
m_scrollEnd -= anchor; |
m_scrollEnd = ClampFromBelow(m_scrollEnd, gfx::Vector2d()); |
- gfx::SizeF scaledContentSize = m_contentSize.Scale(finalPageScale / m_pageScaleStart); |
+ gfx::SizeF scaledContentSize = gfx::ScaleSize(m_contentSize, finalPageScale / m_pageScaleStart); |
gfx::Vector2d maxScrollOffset = gfx::ToRoundedVector2d(BottomRight(gfx::RectF(scaledContentSize)) - BottomRight(gfx::Rect(m_windowSize))); |
m_scrollEnd = m_scrollEnd; |
m_scrollEnd = ClampFromAbove(m_scrollEnd, maxScrollOffset); |