Teach WebView::scrollBackingStore about compositing mode
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jan 2011 17:10:34 +0000 (17:10 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jan 2011 17:10:34 +0000 (17:10 +0000)
commit7c083449cd7cc1df0c4ca2611f6804eb76edd232
tree22142570e234c30d8c083c18845cfe29fc49426f
parent445d824a9e9ece827f4e898e93c8b517c27034cd
Teach WebView::scrollBackingStore about compositing mode

Test:
    compositing/scroll-painted-composited-content.html

Fixes <http://webkit.org/b/52720> REGRESSION (r75987): Assertion failure in
WebView::scrollBackingStore when scrolling page with composited content

Reviewed by Anders Carlsson.

Source/WebKit/win:

* WebView.cpp:
(WebView::scrollBackingStore): Do something sensible (though naive) when in compositing
mode, rather than incorrectly asserting that this function is never called in that case. For
now we just repaint the entire scrolled region; someday hopefully we can avoid having to
repaint the areas that have just been moved.

LayoutTests:

Add a test that scrolls composited content that has already been painted

* compositing/scroll-painted-composited-content.html: Added.
* compositing/scroll-painted-composited-content-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@76254 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/compositing/scroll-painted-composited-content-expected.txt [new file with mode: 0644]
LayoutTests/compositing/scroll-painted-composited-content.html [new file with mode: 0644]
Source/WebKit/win/ChangeLog
Source/WebKit/win/WebView.cpp