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.
Created attachment 242019 [details] Patch
rdar://problem/19050653
Created attachment 242020 [details] Patch
Created attachment 242021 [details] Patch
Created attachment 242056 [details] Patch
Comment on attachment 242056 [details] Patch Clearing flags on attachment: 242056 Committed r176470: <http://trac.webkit.org/changeset/176470>
All reviewed patches have been landed. Closing bug.