Bug 593506: Fix tests broken by bad patch update. r=roc
authorChris Jones <jones.chris.g@gmail.com>
Sat, 04 Sep 2010 15:46:34 -0500
changeset 54087 178f9db99c93c0644d52ebd126dae26943b9e1d9
parent 54086 0ef3696734aefaf9541dc549a2e4cee205f2a179
child 54088 fd22a96116a1b0cc386afe016f0afd5b78cee910
push idunknown
push userunknown
push dateunknown
reviewersroc
bugs593506
milestone2.0b6pre
Bug 593506: Fix tests broken by bad patch update. r=roc
layout/base/nsPresShell.cpp
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -5349,17 +5349,17 @@ PresShell::RenderDocument(const nsRect& 
     }
   }
   if (!(aFlags & RENDER_CARET)) {
     wouldFlushRetainedLayers = PR_TRUE;
     flags |= nsLayoutUtils::PAINT_HIDE_CARET;
   }
   if (aFlags & RENDER_IGNORE_VIEWPORT_SCROLLING) {
     wouldFlushRetainedLayers = !IgnoringViewportScrolling();
-    ChangeFlag(mRenderFlags, PR_TRUE, STATE_IGNORING_VIEWPORT_SCROLLING);
+    mRenderFlags = ChangeFlag(mRenderFlags, PR_TRUE, STATE_IGNORING_VIEWPORT_SCROLLING);
   }
   if (aFlags & RENDER_DOCUMENT_RELATIVE) {
     // XXX be smarter about this ... drawWindow might want a rect
     // that's "pretty close" to what our retained layer tree covers.
     // In that case, it wouldn't disturb normal rendering too much,
     // and we should allow it.
     wouldFlushRetainedLayers = PR_TRUE;
     flags |= nsLayoutUtils::PAINT_DOCUMENT_RELATIVE;