http://bugzilla.opendarwin.org/show_bug.cgi?id=3751
REGRESSION: affects Blogger, GMail & Wikipedia: empty textarea's which should have content
Reviewed by mjs.
* khtml/html/html_formimpl.cpp:
(DOM::HTMLTextAreaElementImpl::defaultValue):
(DOM::HTMLTextAreaElementImpl::attach):
* khtml/html/html_formimpl.h:
Test cases added:
* manual-tests/textarea-after-stylesheet-link.html: Added.
Test is manual because the result doesn't show up in DumpRenderTree
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9841
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-07-19 Geoffrey Garen <ggaren@apple.com>
+
+ -rolled in patch by Anders Carlsson <andersca@mac.com> for
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=3751
+ REGRESSION: affects Blogger, GMail & Wikipedia: empty textarea's which should have content
+
+ Reviewed by mjs.
+
+ * khtml/html/html_formimpl.cpp:
+ (DOM::HTMLTextAreaElementImpl::defaultValue):
+ (DOM::HTMLTextAreaElementImpl::attach):
+ * khtml/html/html_formimpl.h:
+
+ Test cases added:
+ * manual-tests/textarea-after-stylesheet-link.html: Added.
+ Test is manual because the result doesn't show up in DumpRenderTree
+
2005-07-19 Justin Garcia <justin.garcia@apple.com>
Added a virtual deconstructor to fix gcc4 build warning
for (n = firstChild(); n; n = n->nextSibling())
if (n->isTextNode())
val += static_cast<TextImpl*>(n)->data();
+
if (val[0] == '\r' && val[1] == '\n') {
- val = val.copy();
- val.remove(0,2);
- }
- else if (val[0] == '\r' || val[0] == '\n') {
- val = val.copy();
- val.remove(0,1);
+ val = val.copy();
+ val.remove(0,2);
+ } else if (val[0] == '\r' || val[0] == '\n') {
+ val = val.copy();
+ val.remove(0,1);
}
return val;
focus();
}
+void HTMLTextAreaElementImpl::attach()
+{
+ m_valueIsValid = true;
+ HTMLGenericFormElementImpl::attach();
+ updateValue();
+}
+
void HTMLTextAreaElementImpl::detach()
{
HTMLGenericFormElementImpl::detach();
virtual void childrenChanged();
virtual void parseMappedAttribute(MappedAttributeImpl *attr);
virtual khtml::RenderObject *createRenderer(RenderArena *, khtml::RenderStyle *);
+ virtual void attach();
virtual void detach();
virtual bool appendFormData(FormDataList&, bool);
virtual void reset();
--- /dev/null
+<html>
+<head>
+<script>
+if (window.layoutTestController) {
+ window.layoutTestController.dumpAsText();
+}
+</script>
+<link rel="stylesheet" />
+</head>
+<body>
+<p>Tests: whether <link rel="stylesheet"/> disturbs the display of text in textareas</p>
+<p>Related bug: <a href = "http://bugzilla.opendarwin.org/show_bug.cgi?id=3751">3751: REGRESSION: affects Blogger, GMail & Wikipedia: empty textarea's which should have content</a></p>
+<p>Success: You will see "passed" inside the texarea below</p>
+<hr>
+<textarea>passed</textarea>
+</form>
+</body>
+</html>
\ No newline at end of file