Paint the bounding rect of the dirty region instead of individual rectangles when...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Apr 2011 21:24:46 +0000 (21:24 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Apr 2011 21:24:46 +0000 (21:24 +0000)
commita252c91bc8976edfdeae16f116e535f8396f52ca
tree4cebfef03529e5d10d004be775e5306943660242
parente60f0a6588137b630466f1c9926490d00da0266d
Paint the bounding rect of the dirty region instead of individual rectangles when the region
covers at least 3/4 of its bounds.

Reviewed by Sam Weinig.

* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::shouldPaintBoundsRect): Use floating point math so that the logic that was supposed to
achieve this actually works.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp