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:
@@ -59,16 +59,11 @@
|
||||
// Creates a new Button frame and returns it
|
||||
//
|
||||
nsIFrame*
|
||||
NS_NewButtonBoxFrame (nsIPresShell* aPresShell)
|
||||
NS_NewButtonBoxFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsButtonBoxFrame(aPresShell);
|
||||
return new (aPresShell) nsButtonBoxFrame(aPresShell, aContext);
|
||||
} // NS_NewXULButtonFrame
|
||||
|
||||
nsButtonBoxFrame::nsButtonBoxFrame(nsIPresShell* aPresShell)
|
||||
:nsBoxFrame(aPresShell, PR_FALSE)
|
||||
{
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsButtonBoxFrame::GetMouseThrough(PRBool& aMouseThrough)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user