From 22b71d90a801f3c32b8f26fcebb49f1a4570ea6c Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Mon, 7 Aug 2006 23:50:24 +0000 Subject: [PATCH] Fix bug 347348 - Removing text node from causes 'ASSERTION: null arg' and has no visual effect, r+sr=roc git-svn-id: svn://10.0.0.236/trunk@206789 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/mathml/base/src/nsMathMLmoFrame.cpp | 7 +++++++ mozilla/layout/mathml/base/src/nsMathMLmoFrame.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/mozilla/layout/mathml/base/src/nsMathMLmoFrame.cpp b/mozilla/layout/mathml/base/src/nsMathMLmoFrame.cpp index 243aefcf0c9..f9190b029da 100644 --- a/mozilla/layout/mathml/base/src/nsMathMLmoFrame.cpp +++ b/mozilla/layout/mathml/base/src/nsMathMLmoFrame.cpp @@ -974,6 +974,13 @@ nsMathMLmoFrame::ReflowDirtyChild(nsIPresShell* aPresShell, return ReLayoutChildren(target); } +nsresult +nsMathMLmoFrame::ChildListChanged(PRInt32 aModType) +{ + ProcessTextData(GetPresContext()); + return nsMathMLContainerFrame::ChildListChanged(aModType); +} + NS_IMETHODIMP nsMathMLmoFrame::AttributeChanged(PRInt32 aNameSpaceID, nsIAtom* aAttribute, diff --git a/mozilla/layout/mathml/base/src/nsMathMLmoFrame.h b/mozilla/layout/mathml/base/src/nsMathMLmoFrame.h index 75e3e68eb42..025bc5e5a23 100644 --- a/mozilla/layout/mathml/base/src/nsMathMLmoFrame.h +++ b/mozilla/layout/mathml/base/src/nsMathMLmoFrame.h @@ -84,6 +84,9 @@ public: nsIAtom* aAttribute, PRInt32 aModType); + virtual nsresult + ChildListChanged(PRInt32 aModType); + // This method is called by the parent frame to ask // to stretch itself. NS_IMETHOD