summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 23:37:04 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 23:37:04 +0000
commit73a4170eb85790f2d42c47d5996f202aea473fa0 (patch)
tree7ef2867765a41377235ffb3ac2eee4aba85cf83d /chrome/renderer
parent773f07dc113faf4e41a5f67b1c4d96c8c161c57d (diff)
downloadchromium_src-73a4170eb85790f2d42c47d5996f202aea473fa0.zip
chromium_src-73a4170eb85790f2d42c47d5996f202aea473fa0.tar.gz
chromium_src-73a4170eb85790f2d42c47d5996f202aea473fa0.tar.bz2
Disable multiple paint rects due to page cycler regression on single-core-xp.
This is just a partial revert of r33949. TBR=chase BUG=29589 TEST=none Review URL: http://codereview.chromium.org/503034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34777 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_widget.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index 14c7a7d..27955bb 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -500,6 +500,13 @@ void RenderWidget::DoDeferredUpdate() {
HISTOGRAM_COUNTS_100("MPArch.RW_PaintRectCount", update.paint_rects.size());
+ // TODO(darin): Re-enable painting multiple damage rects once the
+ // page-cycler regressions are resolved. See bug 29589.
+ if (update.scroll_rect.IsEmpty()) {
+ update.paint_rects.clear();
+ update.paint_rects.push_back(bounds);
+ }
+
for (size_t i = 0; i < update.paint_rects.size(); ++i)
PaintRect(update.paint_rects[i], bounds.origin(), canvas.get());