Backport WebKit patch to fix input button paddings
It's a backport of the following patch by zalan@apple.com:
http://trac.webkit.org/changeset/162803
Subpixel Layout: Align <input type="button", submit> etc
(PushButtonPart) top and bottom paddings with <button>
https://bugs.webkit.org/show_bug.cgi?id=127640
Reviewed by Simon Fraser.
<button> sets padding-top: 2px and padding-bottom: 3px as
default values (html.css), while <input type="button"
(submit, etc) has the hardcoded values of 0, 0 and we
center the text using the available space. This results
in different baseline text position in normal cases. This
adjustment puts the <input type='button' rendering back
to the pre-subpixel layout state.
BUG=143304
Review URL: https://codereview.chromium.org/778833003
git-svn-id: svn://svn.chromium.org/blink/trunk@186630 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed