From 591abcc89205431338730723a13f1f3d5921783d Mon Sep 17 00:00:00 2001 From: "jst%netscape.com" Date: Sun, 16 Dec 2001 07:04:44 +0000 Subject: [PATCH] Fixing bug 114539. Getting rid of mInner in all our 'data' nodes and making those classes inherit nsGenericDOMDataNode in stead. Also remove mContentID from nsTextNode and push mRangeList and mListenerManager into hashtables since they are used so rarely. This results in a size reduction of nsTextNode from 44 bytes to 28 bytes (~36%). r=peterv@netscape.com, sr=hyatt@netscape.com. --- content/base/src/nsGenericDOMDataNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/base/src/nsGenericDOMDataNode.cpp b/content/base/src/nsGenericDOMDataNode.cpp index 692ed668655d..ba08166d1521 100644 --- a/content/base/src/nsGenericDOMDataNode.cpp +++ b/content/base/src/nsGenericDOMDataNode.cpp @@ -1143,7 +1143,7 @@ nsGenericDOMDataNode::SplitText(PRUint32 aOffset, nsIDOMText** aReturn) return rv; } - rv = DeleteData(aOffset, length-aOffset); + rv = DeleteData(aOffset, length - aOffset); if (NS_FAILED(rv)) { return rv; }