summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 00:25:38 +0000
committervangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 00:25:38 +0000
commit4c0af8d464192a005e2e592d54bad73927763ce2 (patch)
tree59a7cc9be9846c2121da7a325e53035eb3b77aaa
parentf3c713000ecf4057ceef9a62202cabd7dab14550 (diff)
downloadchromium_src-4c0af8d464192a005e2e592d54bad73927763ce2.zip
chromium_src-4c0af8d464192a005e2e592d54bad73927763ce2.tar.gz
chromium_src-4c0af8d464192a005e2e592d54bad73927763ce2.tar.bz2
Fix tabs updated in background won't be rendered properly
Remove incorrect check for needs_repainting in OnWasRestored. This check, when in place, causes us to drop the needs_repainting_on_restore_ repaints. Patch submitted by: nduca@chromium.org BUG=55515 TEST= Review URL: http://codereview.chromium.org/3411007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59591 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/renderer/render_widget.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index 01c7b26..3252097 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -287,7 +287,7 @@ void RenderWidget::OnWasRestored(bool needs_repainting) {
set_next_paint_is_restore_ack();
// Generate a full repaint.
- if (needs_repainting && !webwidget_->isAcceleratedCompositingActive()) {
+ if (!webwidget_->isAcceleratedCompositingActive()) {
didInvalidateRect(gfx::Rect(size_.width(), size_.height()));
} else {
scheduleComposite();