From 57ca2ff1238942b325bc27e4f5d7c3fe6e64e33e Mon Sep 17 00:00:00 2001 From: "heikki%netscape.com" Date: Fri, 17 Aug 2001 00:07:17 +0000 Subject: [PATCH] Bug 75234, XHTML style element's contents appeared twice in the content model. r=peterv, sr=jst. git-svn-id: svn://10.0.0.236/trunk@101244 18797224-902f-48f8-a5cc-f745e15eee43 --- .../content/xml/document/src/nsXMLContentSink.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/mozilla/content/xml/document/src/nsXMLContentSink.cpp b/mozilla/content/xml/document/src/nsXMLContentSink.cpp index 690e0bbb6da..8fb2127ac27 100644 --- a/mozilla/content/xml/document/src/nsXMLContentSink.cpp +++ b/mozilla/content/xml/document/src/nsXMLContentSink.cpp @@ -1156,18 +1156,6 @@ nsXMLContentSink::ProcessSTYLETag(const nsIParserNode& aNode) nsIUnicharInputStream* uin = nsnull; - // Create a text node holding the content - nsCOMPtr text; - rv = NS_NewTextNode(getter_AddRefs(text)); - if (text) { - nsCOMPtr tc(do_QueryInterface(text)); - if (tc) { - tc->SetData(mStyleText); - } - mStyleElement->AppendChildTo(text, PR_FALSE, PR_FALSE); - text->SetDocument(mDocument, PR_FALSE, PR_TRUE); - } - // Create a string to hold the data and wrap it up in a unicode // input stream. rv = NS_NewStringUnicharInputStream(&uin, new nsString(mStyleText));