[CherryPick] input element with placeholder text and width set to 100% on focus cause...
authorrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Feb 2013 18:27:03 +0000 (18:27 +0000)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 12 Jul 2013 07:00:30 +0000 (07:00 +0000)
commit9649d1d8d1d23993b7f1d0dcab6256dd653f2d6f
treebe4c3a6828bd610c6d2d7f380cd0f55acf0f068e
parent893163dafcb657c1ee5aaf35dd657c4e955d671a
[CherryPick] input element with placeholder text and width set to 100% on focus causes overflow even after losing focus

[Title] [CherryPick] input element with placeholder text and width set to 100% on focus causes overflow even after losing focus
[Issue] WEB-3608
[Problem] nid.naver.com is not fit in screen when device is rotated from landscape to portrait
[Cause] The placeholder of password input element(with 100% width) was calculated as overflow before being layouted
[Solution] Re-calculating the overflow after the placeholder layout
[Cherry-Picker] KyungTae Kim <ktf.kim@samsung.com>

input element with placeholder text and width set to 100% on focus causes overflow even after losing focus
https://bugs.webkit.org/show_bug.cgi?id=109020

Reviewed by David Hyatt.

Source/WebCore:

Tests: fast/forms/input-placeholder-layout-view.html
       fast/forms/textarea-placeholder-layout-view.html

Placeholder elements don't affect layout so shouldn't contribute overflow either.

* rendering/RenderTextControlSingleLine.cpp:
(WebCore::RenderTextControlSingleLine::layout):

LayoutTests:

* fast/forms/input-placeholder-layout-view-expected.html: Added.
* fast/forms/input-placeholder-layout-view.html: Added.
* fast/forms/textarea-placeholder-layout-view-expected.html: Added.
* fast/forms/textarea-placeholder-layout-view.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143475 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Change-Id: Ide40af34b8590a5894bf94296c160cf96dc5b183
LayoutTests/ChangeLog
LayoutTests/fast/forms/input-placeholder-layout-view-expected.html [new file with mode: 0644]
LayoutTests/fast/forms/input-placeholder-layout-view.html [new file with mode: 0644]
LayoutTests/fast/forms/textarea-placeholder-layout-view-expected.html [new file with mode: 0644]
LayoutTests/fast/forms/textarea-placeholder-layout-view.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderTextControlSingleLine.cpp