From b047e685fb3ff3e410caa8cdae4ecbed49f3d445 Mon Sep 17 00:00:00 2001 From: "longsonr%gmail.com" Date: Tue, 19 Dec 2006 13:15:37 +0000 Subject: [PATCH] Bug 363710 - Removing text node has no visible effect. r=jwatt, sr=roc --- layout/svg/base/src/nsSVGTextContainerFrame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layout/svg/base/src/nsSVGTextContainerFrame.cpp b/layout/svg/base/src/nsSVGTextContainerFrame.cpp index ddfe8cf90b92..8b9b5c62e3e2 100755 --- a/layout/svg/base/src/nsSVGTextContainerFrame.cpp +++ b/layout/svg/base/src/nsSVGTextContainerFrame.cpp @@ -139,10 +139,13 @@ NS_IMETHODIMP nsSVGTextContainerFrame::RemoveFrame(nsIAtom *aListName, nsIFrame *aOldFrame) { nsSVGTextFrame *textFrame = GetTextFrame(); + + nsresult rv = nsSVGDisplayContainerFrame::RemoveFrame(aListName, aOldFrame); + if (textFrame) textFrame->NotifyGlyphMetricsChange(); - return NS_OK; + return rv; } //----------------------------------------------------------------------