From 5ff624fc0671dc1ed7f7a533f3307cdd7f92afcb Mon Sep 17 00:00:00 2001 From: karnaze Date: Fri, 24 Apr 1998 22:27:07 +0000 Subject: [PATCH] enabled text area git-svn-id: svn://10.0.0.236/trunk@622 18797224-902f-48f8-a5cc-f745e15eee43 --- .../content/html/document/src/nsHTMLContentSink.cpp | 10 +++------- mozilla/layout/html/document/src/nsHTMLContentSink.cpp | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index 6050abccba9..9b6d314876e 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -1154,18 +1154,14 @@ HTMLContentSink::ProcessTEXTAREATag(nsIHTMLContent** aInstancePtrResult, const nsString& content = aNode.GetSkippedContent(); -#if XXX_chris_karnaze_writes_this_part nsresult rv = NS_NewHTMLTextArea(aInstancePtrResult, atom, mCurrentForm); if ((NS_OK == rv) && (nsnull != *aInstancePtrResult)) { // Add remaining attributes from the tag rv = AddAttributes(aNode, *aInstancePtrResult); - if (0 < content.Length()) { - ((nsHTMLTextArea*)*aInstancePtrResult)->SetContent(content); - } + //if (0 < content.Length()) { + // ((nsTextArea*)*aInstancePtrResult)->SetContent(content); + //} } -#else - nsresult rv = NS_NewHTMLText(aInstancePtrResult, content.GetUnicode(), content.Length()); -#endif NS_RELEASE(atom); return rv; diff --git a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp index 6050abccba9..9b6d314876e 100644 --- a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp @@ -1154,18 +1154,14 @@ HTMLContentSink::ProcessTEXTAREATag(nsIHTMLContent** aInstancePtrResult, const nsString& content = aNode.GetSkippedContent(); -#if XXX_chris_karnaze_writes_this_part nsresult rv = NS_NewHTMLTextArea(aInstancePtrResult, atom, mCurrentForm); if ((NS_OK == rv) && (nsnull != *aInstancePtrResult)) { // Add remaining attributes from the tag rv = AddAttributes(aNode, *aInstancePtrResult); - if (0 < content.Length()) { - ((nsHTMLTextArea*)*aInstancePtrResult)->SetContent(content); - } + //if (0 < content.Length()) { + // ((nsTextArea*)*aInstancePtrResult)->SetContent(content); + //} } -#else - nsresult rv = NS_NewHTMLText(aInstancePtrResult, content.GetUnicode(), content.Length()); -#endif NS_RELEASE(atom); return rv;