Bug 793473, propagate mDontPrint to descendants, r=roc

This commit is contained in:
Olli Pettay 2012-09-24 01:20:34 +03:00
parent b5b498075a
commit b2bc857222

View File

@ -1843,7 +1843,7 @@ nsPrintEngine::ReflowDocList(nsPrintObject* aPO, bool aSetPixelScale)
if (aPO->mParent && aPO->mParent->mPresShell) {
nsIFrame* frame = aPO->mContent ? aPO->mContent->GetPrimaryFrame() : nullptr;
if (!frame || !frame->GetStyleVisibility()->IsVisible()) {
aPO->mDontPrint = true;
SetPrintPO(aPO, false);
aPO->mInvisible = true;
return NS_OK;
}