Fix for 77002. reviewers=jst,waterson,hixie,shaver,brendan,pavlov

git-svn-id: svn://10.0.0.236/trunk@93083 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2001-04-25 19:52:49 +00:00
parent 39cba63929
commit c51a96b825
32 changed files with 536 additions and 20 deletions

View File

@@ -99,6 +99,20 @@ nsHTMLContainerFrame::Paint(nsIPresContext* aPresContext,
}
}
if (frameType.get() == nsLayoutAtoms::canvasFrame) {
// We are wrapping the root frame of a document. We
// need to check the pres shell to find out if painting is locked
// down (because we're still in the early stages of document
// and frame construction. If painting is locked down, then we
// do not paint our children.
PRBool paintingSuppressed = PR_FALSE;
nsCOMPtr<nsIPresShell> shell;
aPresContext->GetShell(getter_AddRefs(shell));
shell->IsPaintingSuppressed(&paintingSuppressed);
if (paintingSuppressed)
return NS_OK;
}
// Now paint the kids. Note that child elements have the opportunity to
// override the visibility property and display even if their parent is
// hidden