Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code
This commit is contained in:
@@ -511,7 +511,7 @@ nsHTMLButtonControlFrame::SetInitialChildList(nsIPresContext& aPresContext,
|
||||
// Resolve style and initialize the frame
|
||||
nsIStyleContext* styleContext =
|
||||
aPresContext.ResolvePseudoStyleContextFor(mContent, nsHTMLAtoms::buttonContentPseudo, mStyleContext);
|
||||
mFirstChild->Init(aPresContext, mContent, this, styleContext);
|
||||
mFirstChild->Init(aPresContext, mContent, this, this, styleContext);
|
||||
NS_RELEASE(styleContext);
|
||||
|
||||
// Set the geometric and content parent for each of the child frames
|
||||
|
||||
Reference in New Issue
Block a user