imported patch suppresswhenenteringsubdocs

This commit is contained in:
Timothy Nikkel 2010-08-26 22:01:43 -05:00
parent 844374701c
commit cfa2a2df1a

View File

@ -454,8 +454,14 @@ nsSubDocumentFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
GetOffsetToCrossDoc(aBuilder->ReferenceFrame());
if (subdocRootFrame && NS_SUCCEEDED(rv)) {
PRBool save = aBuilder->IsBackgroundOnly();
if (presShell->IsPaintingSuppressed() &&
!aBuilder->IsIgnoringPaintSuppression()) {
aBuilder->SetBackgroundOnly(PR_TRUE);
}
rv = subdocRootFrame->
BuildDisplayListForStackingContext(aBuilder, dirty, &childItems);
aBuilder->SetBackgroundOnly(save);
}
if (!aBuilder->IsForEventDelivery()) {