Commit c30857cf authored by hyatt's avatar hyatt

Fix newlines getting stripped out of textareas by not making

	rendertext objects for children of textareas.

        * khtml/rendering/render_form.h:
        * khtml/rendering/render_object.h:
        * khtml/xml/dom_textimpl.cpp:
        (TextImpl::attach):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c6ba7979
2002-11-15 David Hyatt <hyatt@apple.com>
Fix newlines getting stripped out of textareas by not making
rendertext objects for children of textareas.
* khtml/rendering/render_form.h:
* khtml/rendering/render_object.h:
* khtml/xml/dom_textimpl.cpp:
(TextImpl::attach):
2002-11-15 David Hyatt <hyatt@apple.com>
Make <form> inside <table> stay inside the <table> but demote
......
2002-11-15 David Hyatt <hyatt@apple.com>
Fix newlines getting stripped out of textareas by not making
rendertext objects for children of textareas.
* khtml/rendering/render_form.h:
* khtml/rendering/render_object.h:
* khtml/xml/dom_textimpl.cpp:
(TextImpl::attach):
2002-11-15 David Hyatt <hyatt@apple.com>
Make <form> inside <table> stay inside the <table> but demote
......
2002-11-15 David Hyatt <hyatt@apple.com>
Fix newlines getting stripped out of textareas by not making
rendertext objects for children of textareas.
* khtml/rendering/render_form.h:
* khtml/rendering/render_object.h:
* khtml/xml/dom_textimpl.cpp:
(TextImpl::attach):
2002-11-15 David Hyatt <hyatt@apple.com>
Make <form> inside <table> stay inside the <table> but demote
......
......@@ -398,6 +398,8 @@ public:
virtual void close ( );
virtual void updateFromElement();
virtual bool isTextArea() const { return true; }
// don't even think about making this method virtual!
DOM::HTMLTextAreaElementImpl* element() const
{ return static_cast<DOM::HTMLTextAreaElementImpl*>(RenderObject::element()); }
......
......@@ -153,6 +153,7 @@ public:
virtual bool isWidget() const { return false; }
virtual bool isBody() const { return false; }
virtual bool isFormElement() const { return false; }
virtual bool isTextArea() const { return false; }
virtual bool isFrameSet() const { return false; }
virtual bool isApplet() const { return false; }
......
......@@ -363,7 +363,7 @@ void TextImpl::attach()
assert(parentNode() && parentNode()->isElementNode());
ElementImpl* element = static_cast<ElementImpl*>(parentNode());
if (!m_render && element->renderer()) {
if (!m_render && element->renderer() && !element->renderer()->isTextArea()) {
RenderObject* par = element->renderer();
khtml::RenderStyle* _style = par->style();
bool onlyWS = containsOnlyWhitespace();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment