Bug 106277

Summary: text controls are sized too small when a percentage height is set
Product: WebKit Reporter: Ojan Vafai <ojan>
Component: Layout and RenderingAssignee: Ojan Vafai <ojan>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, eric, esprehn, hyatt, mifenton, ojan.autocc, tkent, tony, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test case
none
Patch tony: review+

Description Ojan Vafai 2013-01-07 16:59:06 PST
Created attachment 181603 [details]
test case

See the test case. The current logic came from http://trac.webkit.org/changeset/13723, which itself copy-pasted from RenderReplaced. I tested IE9, FF17 and Opera12. WebKit is the only browser that changes the width due to a percentage height being set.

Since then, this code has been copy-pasted into a few other classes as well. :) I'll post a patch tomorrow.
Comment 1 Ojan Vafai 2013-01-08 11:11:09 PST
Created attachment 181711 [details]
Patch
Comment 2 Tony Chang 2013-01-08 11:31:29 PST
Comment on attachment 181711 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=181711&action=review

> Source/WebCore/ChangeLog:8
> +        This makes our behavior match Firefox 17, IE 9 and Opera 12.

I would include the text, "The current logic came from http://trac.webkit.org/changeset/13723, which itself copy-pasted from RenderReplaced."
Comment 3 Ojan Vafai 2013-01-08 11:41:59 PST
Committed r139089: <http://trac.webkit.org/changeset/139089>