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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user