[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