2009-06-08 Shinichiro Hamaji <hamaji@chromium.org>
authorlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Jul 2009 23:46:09 +0000 (23:46 +0000)
committerlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Jul 2009 23:46:09 +0000 (23:46 +0000)
commitb8028f6a784dafb705a1311c62cfaa8028954da8
treef79ed60645ea36cfc14bce814815c6bdbb6fd960
parent4f0aac2f6108a0fd1ec23d072aa3a14137967f5b
2009-06-08  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Eric Seidel.

        Setting white-space and word-wrap via CSS in textarea doesn't override the wrap attribute
        https://bugs.webkit.org/show_bug.cgi?id=26254

WebCore:

        Make it so that setting white-space and word-wrap via CSS
        overrides the wrap attribute.

        This involves having the shadow div in the textarea inherit
        the CSS from its parent instead of hard-coding it in
        RenderTextControlMultiline.

        * css/html4.css:
        * html/HTMLTextAreaElement.cpp:
        (WebCore::HTMLTextAreaElement::parseMappedAttribute):
        * rendering/RenderTextControlMultiLine.cpp:
        (WebCore::RenderTextControlMultiLine::createInnerTextStyle):

LayoutTests:

        Make it so that setting white-space and word-wrap via CSS
        overrides the wrap attribute.

        This involves having the shadow div in the textarea inherit
        the CSS from its parent instead of hard-coding it in
        RenderTextControlMultiline.

        * fast/forms/basic-textareas.html:
        * platform/mac/fast/forms/basic-textareas-expected.checksum:
        * platform/mac/fast/forms/basic-textareas-expected.png:
        * platform/mac/fast/forms/basic-textareas-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@45962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/basic-textareas.html
LayoutTests/platform/mac/fast/forms/basic-textareas-expected.checksum
LayoutTests/platform/mac/fast/forms/basic-textareas-expected.png
LayoutTests/platform/mac/fast/forms/basic-textareas-expected.txt
WebCore/ChangeLog
WebCore/html/HTMLTextAreaElement.cpp
WebCore/rendering/RenderTextControlMultiLine.cpp