Fix crash when modifying a stylesheet through the DOM before the document is displayed.

git-svn-id: svn://10.0.0.236/trunk@67315 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com
2000-04-26 23:22:06 +00:00
parent b443eb6d5e
commit 9b4ef67be1
2 changed files with 8 additions and 0 deletions

View File

@@ -9455,6 +9455,10 @@ nsCSSFrameConstructor::StyleRuleChanged(nsIPresContext* aPresContext,
nsIFrame* frame;
shell->GetRootFrame(&frame);
if (!frame) {
return NS_OK;
}
PRBool reframe = PR_FALSE;
PRBool reflow = PR_FALSE;
PRBool render = PR_FALSE;