Exclude scrollbars from the dirty rect passed to the document
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Apr 2011 18:13:24 +0000 (18:13 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Apr 2011 18:13:24 +0000 (18:13 +0000)
commit1eeb2c34801386a034f269c159c6c315432330d0
tree94632abb70115de44d984ff85a2da04ce0cab2ce
parentf37370f9fe28b2c36dd172f8d7699ebe0e32c050
Exclude scrollbars from the dirty rect passed to the document
https://bugs.webkit.org/show_bug.cgi?id=59206

Reviewed by Sam Weinig.

No test added because functionality is unchanged.

* platform/ScrollView.cpp:
(WebCore::ScrollView::paint): Compute a clip rectangle (analogous to the frame of the clip view
in an NSScrollView) by subtracting non-overlay scrollbars, and intersect the document dirty rect
with it. If the result is empty, avoid calling paintContents().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/ScrollView.cpp