Fix Bug 16138: Reduce code duplication in WebView.cpp
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Nov 2007 07:02:46 +0000 (07:02 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Nov 2007 07:02:46 +0000 (07:02 +0000)
commitd3be447df8de8d188db93c235f29c66562081c6c
tree099ae9b4d948fe7dd84e0acd619dc9dd3d60c075
parent865e8478cc951cf10bea3c2176fa5eb9f88a0e3b
    Fix Bug 16138: Reduce code duplication in WebView.cpp

        http://bugs.webkit.org/show_bug.cgi?id=16138

        Reviewed by Sam.

        * WebView.cpp:
        (getUpdateRects): Factored code out of updateBackingStore and paint
        into this new helper function.
        (WebView::updateBackingStore): Use getUpdateRects.
        (WebView::paint): Ditto.
        (WebView::paintIntoBackingStore): Changed to take a const IntRect&.
        (WebView::paintIntoWindow): Ditto.
        * WebView.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/win/ChangeLog
WebKit/win/WebView.cpp
WebKit/win/WebView.h