Move reflow command construction into nsPresShell::AppendReflowCommand, remove
some members, switch some callers to the non-COM-ish apis. Bug 267085, r+sr=rbs
This commit is contained in:
@@ -381,12 +381,9 @@ void
|
||||
nsFormControlHelper::StyleChangeReflow(nsPresContext* aPresContext,
|
||||
nsIFrame* aFrame)
|
||||
{
|
||||
nsHTMLReflowCommand* reflowCmd;
|
||||
nsresult rv = NS_NewHTMLReflowCommand(&reflowCmd, aFrame,
|
||||
eReflowType_StyleChanged);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
aPresContext->PresShell()->AppendReflowCommand(reflowCmd);
|
||||
}
|
||||
aPresContext->PresShell()->AppendReflowCommand(aFrame,
|
||||
eReflowType_StyleChanged,
|
||||
nsnull);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user