From f311f2476e8eed4016cfe2957b46d59c0dd41a3e Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 22 Jan 1999 23:07:09 +0000 Subject: [PATCH] Changed ContentChanged() to generate a reflow command git-svn-id: svn://10.0.0.236/trunk@18364 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsFrame.cpp | 12 ++++++++++++ mozilla/layout/html/base/src/nsFrame.cpp | 12 ++++++++++++ 2 files changed, 24 insertions(+) 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; }