diff --git a/mozilla/layout/generic/nsFrame.cpp b/mozilla/layout/generic/nsFrame.cpp index c7174a7e819..d9440ef97e8 100644 --- a/mozilla/layout/generic/nsFrame.cpp +++ b/mozilla/layout/generic/nsFrame.cpp @@ -1297,6 +1297,18 @@ nsFrame::ContentChanged(nsIPresContext* aPresContext, nsIContent* aChild, nsISupports* aSubContent) { + nsIPresShell* shell; + shell = aPresContext->GetShell(); + + nsIReflowCommand* reflowCmd; + nsresult rv = NS_NewHTMLReflowCommand(&reflowCmd, this, + nsIReflowCommand::ContentChanged); + if (NS_SUCCEEDED(rv)) { + shell->AppendReflowCommand(reflowCmd); + NS_RELEASE(reflowCmd); + } + + NS_RELEASE(shell); return NS_OK; } diff --git a/mozilla/layout/html/base/src/nsFrame.cpp b/mozilla/layout/html/base/src/nsFrame.cpp index c7174a7e819..d9440ef97e8 100644 --- a/mozilla/layout/html/base/src/nsFrame.cpp +++ b/mozilla/layout/html/base/src/nsFrame.cpp @@ -1297,6 +1297,18 @@ nsFrame::ContentChanged(nsIPresContext* aPresContext, nsIContent* aChild, nsISupports* aSubContent) { + nsIPresShell* shell; + shell = aPresContext->GetShell(); + + nsIReflowCommand* reflowCmd; + nsresult rv = NS_NewHTMLReflowCommand(&reflowCmd, this, + nsIReflowCommand::ContentChanged); + if (NS_SUCCEEDED(rv)) { + shell->AppendReflowCommand(reflowCmd); + NS_RELEASE(reflowCmd); + } + + NS_RELEASE(shell); return NS_OK; }