LayoutTests:
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Apr 2006 22:22:14 +0000 (22:22 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Apr 2006 22:22:14 +0000 (22:22 +0000)
commit85dd851c62b39c633009a2bba6e098228c28c225
tree579519b87707ed814776df3ba9254cd3b06da515
parentbd86e0fb95087b3d59809376ccc8188fd61d30e0
LayoutTests:

        Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8273
        REGRESSION: Read only input text field renders at the wrong height when value attribute is not present

        * fast/forms/input-readonly-empty-expected.checksum: Added.
        * fast/forms/input-readonly-empty-expected.png: Added.
        * fast/forms/input-readonly-empty-expected.txt: Added.
        * fast/forms/input-readonly-empty.html: Added.

WebCore:

        Reviewed by Hyatt.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8273
        REGRESSION: Read only input text field renders at the wrong height when value attribute is not present

        Test: fast/forms/input-readonly-empty.html

        * rendering/RenderBlock.h: Added hasLineIfEmpty.
        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::hasLineIfEmpty): Added.  Checks for rootEditableElement as well as
         a shadowNode who has an input element as a parent.
        (WebCore::RenderBlock::getBaselineOfLastLineBox): Calls hasLineIfEmpty instead of just checking for the rootEditableElement.
        * rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren): ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/input-readonly-empty-expected.checksum [new file with mode: 0644]
LayoutTests/fast/forms/input-readonly-empty-expected.png [new file with mode: 0644]
LayoutTests/fast/forms/input-readonly-empty-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/input-readonly-empty.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderBlock.cpp
WebCore/rendering/RenderBlock.h
WebCore/rendering/bidi.cpp