summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-19 05:24:57 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-19 05:24:57 +0000
commit552e600db9f51ac1efb0438bd749227226dffa64 (patch)
tree121e6a11a6f637e9b5cfd2d04244c94b1961420f /base/gfx
parent0dea18f231b425216aae0c956129bc80b7086770 (diff)
downloadchromium_src-552e600db9f51ac1efb0438bd749227226dffa64.zip
chromium_src-552e600db9f51ac1efb0438bd749227226dffa64.tar.gz
chromium_src-552e600db9f51ac1efb0438bd749227226dffa64.tar.bz2
Refactors RenderWidget to extract a PaintAggregator class.
After this change, I plan on changing the PaintAggregator algorithm. Some things to note: 1- Previously, it was possible to send overlapping ViewHostMsg_PaintRect and ViewHostMsg_ScrollRect messages. This happened when scrolling a page since the scrollbar would need to be repainted while the contents of the page are being scrolled. With this CL, this overlapping behavior is a bit more explicit. 2- There was a TODO about view_size clipping that I've eliminated. I was able to eliminate it because I realized that it is correct to clip the rects passed by didInvalidateRect and didScrollRect to the size of the RenderWidget. Apparently WebKit can sometimes invalidate regions outside the view. R=brettw BUG=25905 TEST=none Review URL: http://codereview.chromium.org/403005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/rect.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/gfx/rect.h b/base/gfx/rect.h
index 414a348..2eef76c 100644
--- a/base/gfx/rect.h
+++ b/base/gfx/rect.h
@@ -65,6 +65,7 @@ class Rect {
void set_origin(const gfx::Point& origin) { origin_ = origin; }
const gfx::Size& size() const { return size_; }
+ void set_size(const gfx::Size& size) { size_ = size; }
int right() const { return x() + width(); }
int bottom() const { return y() + height(); }