Bug 330934. Set a nsIFrame's stylecontext in its constructor, to ensure that there's always one available for GetPresContext() to use even if Init hasn't been called. Patch by Marc Liddell, r+sr=roc
This commit is contained in:
@@ -77,12 +77,13 @@
|
||||
#define SYNC_BOTH 0x3
|
||||
|
||||
nsIFrame*
|
||||
NS_NewFileControlFrame(nsIPresShell* aPresShell)
|
||||
NS_NewFileControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsFileControlFrame();
|
||||
return new (aPresShell) nsFileControlFrame(aContext);
|
||||
}
|
||||
|
||||
nsFileControlFrame::nsFileControlFrame():
|
||||
nsFileControlFrame::nsFileControlFrame(nsStyleContext* aContext):
|
||||
nsAreaFrame(aContext),
|
||||
mTextFrame(nsnull),
|
||||
mCachedState(nsnull),
|
||||
mDidPreDestroy(PR_FALSE)
|
||||
|
||||
Reference in New Issue
Block a user