2011-05-02 Joseph Pecoraro <joepeck@webkit.org>
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 May 2011 00:20:46 +0000 (00:20 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 May 2011 00:20:46 +0000 (00:20 +0000)
commit3183fceeb7baec3f2956c4bbfed42ae2a72f04eb
tree0ed55f1a2d12aa4d013bf7ffc4c6f0a7e98118e6
parent03dd18eb41383d001b3bf90cea034c3d667cff6f
2011-05-02  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by David Kilzer.

        Respect fixed text-indent on ::-webkit-input-placeholder
        https://bugs.webkit.org/show_bug.cgi?id=59825

        Placeholder text does not appear in the render tree
        dumps, so this is a pixel test for the position of
        the placeholder affected by text-indent.

        * fast/forms/input-placeholder-text-indent.html: Added.
        * platform/mac/fast/forms/input-placeholder-text-indent-expected.png: Added.
        * platform/mac/fast/forms/input-placeholder-text-indent-expected.txt: Added.

2011-05-02  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by David Kilzer.

        Respect fixed text-indent on ::-webkit-input-placeholder
        https://bugs.webkit.org/show_bug.cgi?id=59825

        Test: fast/forms/input-placeholder-text-indent.html

        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::paintPlaceholder): indent by
        a fixed text-indent size specified on the placeholder style.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@85560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/input-placeholder-text-indent.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/forms/input-placeholder-text-indent-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/forms/input-placeholder-text-indent-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderTextControl.cpp