summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 01:18:52 +0000
committerchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 01:18:52 +0000
commit261f0df0d800691923d94d4a67f239889e56c336 (patch)
treedd9de19c01243292d308084e645f1d03a2103947 /chrome/renderer
parent0d37b1fe487884395bd34ef629977d450ba9fb53 (diff)
downloadchromium_src-261f0df0d800691923d94d4a67f239889e56c336.zip
chromium_src-261f0df0d800691923d94d4a67f239889e56c336.tar.gz
chromium_src-261f0df0d800691923d94d4a67f239889e56c336.tar.bz2
Disable multiple paint rects due to page cycler regression on single-core-xp.
This is just a partial revert of r33949. TBR=stuartmorgan BUG=29589 TEST=none Review URL: http://codereview.chromium.org/502042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34793 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());