From 580bc10d6973c796b254c6db72f8778cdfd94d94 Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Sat, 18 Sep 2010 11:43:17 -0700 Subject: [PATCH] Bug 597676. If there's no rootPresContext, we should never detect DOM modification. Makes printing paint again. r=dbaron a=blocking2.0:beta7 --- layout/base/FrameLayerBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/base/FrameLayerBuilder.cpp b/layout/base/FrameLayerBuilder.cpp index 4b7f960768a6..82c58960445d 100644 --- a/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -1696,7 +1696,7 @@ FrameLayerBuilder::DrawThebesLayer(ThebesLayer* aLayer, PRBool FrameLayerBuilder::CheckDOMModified() { - if (mRootPresContext && + if (!mRootPresContext || mInitialDOMGeneration == mRootPresContext->GetDOMGeneration()) return PR_FALSE; if (mDetectedDOMModification) {