2010-11-23 Grace Kloba <klobag@chromium.org>

        Reviewed by Kenneth Russell.

        [chromium] Accumulated scroll damage rect should be in the content space
        https://bugs.webkit.org/show_bug.cgi?id=49842

        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::scrollRootLayerRect): Adjust the previous scroll damage with the scroll delta before union it with the new damage rect.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e035c2ac
2010-11-23 Grace Kloba <klobag@chromium.org>
Reviewed by Kenneth Russell.
[chromium] Accumulated scroll damage rect should be in the content space
https://bugs.webkit.org/show_bug.cgi?id=49842
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::scrollRootLayerRect): Adjust the previous scroll damage with the scroll delta before union it with the new damage rect.
2010-11-18 Darin Fisher <darin@chromium.org>
Reviewed by Dimitri Glazkov.
......
......@@ -2318,6 +2318,9 @@ void WebViewImpl::scrollRootLayerRect(const IntSize& scrollDelta, const IntRect&
}
}
// Move the previous damage
m_rootLayerScrollDamage.move(scrollDelta.width(), scrollDelta.height());
// Union with the new damage rect.
m_rootLayerScrollDamage.unite(damagedContentsRect);
// Scroll any existing damage that intersects with clip rect
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment