| Differences between
and this patch
- a/Source/WebKit/chromium/ChangeLog +14 lines
Lines 1-3 a/Source/WebKit/chromium/ChangeLog_sec1
1
2012-07-30  Yusuf Ozuysal  <yusufo@google.com>
2
3
        [chromium]Upstream WebViewImpl:StartPageScaleAnimation changes for Chrome for Android
4
        https://bugs.webkit.org/show_bug.cgi?id=92698
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        Enforce the maximum and minimum scroll positions after the scale has changed.
9
10
        * src/WebViewImpl.cpp:
11
        (WebKit::WebViewImpl::startPageScaleAnimation):
12
        * src/WebViewImpl.h:
13
        (WebViewImpl):
14
1
2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
15
2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
2
16
3
        Unreviewed, rolling out r124025.
17
        Unreviewed, rolling out r124025.
- a/Source/WebKit/chromium/src/WebViewImpl.cpp -3 / +14 lines
Lines 768-777 void WebViewImpl::renderingStats(WebRenderingStats& stats) const a/Source/WebKit/chromium/src/WebViewImpl.cpp_sec1
768
        m_layerTreeView.renderingStats(stats);
768
        m_layerTreeView.renderingStats(stats);
769
}
769
}
770
770
771
void WebViewImpl::startPageScaleAnimation(const IntPoint& scroll, bool useAnchor, float newScale, double durationInSeconds)
771
void WebViewImpl::startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor, float newScale, double durationInSeconds)
772
{
772
{
773
    if (!m_layerTreeView.isNull())
773
    if (m_layerTreeView.isNull())
774
        m_layerTreeView.startPageScaleAnimation(scroll, useAnchor, newScale, durationInSeconds);
774
        return;
775
776
    IntPoint clampedPoint = targetPosition;
777
    if (!useAnchor)
778
        clampedPoint = clampOffsetAtScale(targetPosition, newScale);
779
780
    if (!durationInSeconds && !useAnchor) {
781
        setPageScaleFactor(newScale, clampedPoint);
782
        return;
783
    }
784
785
    m_layerTreeView.startPageScaleAnimation(targetPosition, useAnchor, newScale, durationInSeconds);
775
}
786
}
776
#endif
787
#endif
777
788

Return to Bug 92698