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
git-svn-id: svn://10.0.0.236/trunk@193022 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -42,8 +42,8 @@
|
||||
#include "nsLayoutAtoms.h"
|
||||
|
||||
|
||||
nsDirectionalFrame::nsDirectionalFrame(PRUnichar aChar)
|
||||
: mChar(aChar)
|
||||
nsDirectionalFrame::nsDirectionalFrame(nsStyleContext* aContext, PRUnichar aChar)
|
||||
: nsFrame(aContext), mChar(aChar)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -84,9 +84,9 @@ nsDirectionalFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
||||
}
|
||||
|
||||
nsIFrame*
|
||||
NS_NewDirectionalFrame(nsIPresShell* aPresShell, PRUnichar aChar)
|
||||
NS_NewDirectionalFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRUnichar aChar)
|
||||
{
|
||||
return new (aPresShell) nsDirectionalFrame(aChar);
|
||||
return new (aPresShell) nsDirectionalFrame(aContext, aChar);
|
||||
}
|
||||
|
||||
#endif /* IBMBIDI */
|
||||
|
||||
Reference in New Issue
Block a user