Bug 138947

Summary: REGRESSION(r175259) Simple line layout text measuring behavior changed.
Product: WebKit Reporter: alan <zalan>
Component: Layout and RenderingAssignee: alan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, koivisto, kondapallykalyan
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

alan
Reported 2014-11-20 20:22:23 PST
Complex line layout measures text including the trailing space and it subtracts (the constant value of) space width afterwards. 'FOO ' -> 55.5px -> subtract 4px for space -> 51.5px vs. 'FOO' -> 51.5px It certain cases, this results in different word width and forces unexpected line breaking.
Attachments
Patch (5.05 KB, patch)
2014-11-20 20:42 PST, alan
no flags
Patch (5.11 KB, patch)
2014-11-20 20:44 PST, alan
no flags
Patch (4.81 KB, patch)
2014-11-20 21:26 PST, alan
no flags
Patch (5.91 KB, patch)
2014-11-21 11:36 PST, alan
no flags
alan
Comment 1 2014-11-20 20:42:08 PST
alan
Comment 2 2014-11-20 20:43:01 PST
alan
Comment 3 2014-11-20 20:44:39 PST
alan
Comment 4 2014-11-20 21:26:54 PST
alan
Comment 5 2014-11-21 11:36:14 PST
WebKit Commit Bot
Comment 6 2014-11-21 13:08:44 PST
Comment on attachment 242056 [details] Patch Clearing flags on attachment: 242056 Committed r176470: <http://trac.webkit.org/changeset/176470>
WebKit Commit Bot
Comment 7 2014-11-21 13:08:48 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.