Bug 138947

Summary: REGRESSION(r175259) Simple line layout text measuring behavior changed.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <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

Description zalan 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.
Comment 1 zalan 2014-11-20 20:42:08 PST
Created attachment 242019 [details]
Patch
Comment 2 zalan 2014-11-20 20:43:01 PST
rdar://problem/19050653
Comment 3 zalan 2014-11-20 20:44:39 PST
Created attachment 242020 [details]
Patch
Comment 4 zalan 2014-11-20 21:26:54 PST
Created attachment 242021 [details]
Patch
Comment 5 zalan 2014-11-21 11:36:14 PST
Created attachment 242056 [details]
Patch
Comment 6 WebKit Commit Bot 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>
Comment 7 WebKit Commit Bot 2014-11-21 13:08:48 PST
All reviewed patches have been landed.  Closing bug.