Bug 59968

Summary: Text does not split on white space when typing to the edge of window
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: Layout and RenderingAssignee: Enrica Casucci <enrica>
Status: RESOLVED FIXED    
Severity: Normal CC: mitz, ojan, progame+wk, rniwa, xji
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
mitz: review+
RTL testcase none

Description Enrica Casucci 2011-05-02 15:24:29 PDT
Repro steps

1. Open the attached test case in Safari.
2. Place the cursor at the end of the text, after the word "you".
3. Type a blank character, then the word "have".

Expected

After typing the blank character the cursor should move to the very end of the line and after typing "have" you should see the word "you" at the end of the first line and the word "have" at the beginning of the second line.

Actual

The word "youhave" (no blanks) is displayed at the beginning of the second line.

Note: this test is platform specific, since it involves testing the condition where the blank character doesn't fit in the previous line by only a fraction of pixel, but the bug occurs on every platform.
Comment 1 Enrica Casucci 2011-05-02 15:34:19 PDT
Created attachment 91993 [details]
Patch
Comment 2 Enrica Casucci 2011-05-02 15:46:43 PDT
http://trac.webkit.org/changeset/85535
Comment 3 Ryosuke Niwa 2011-05-02 15:54:26 PDT
*** Bug 57745 has been marked as a duplicate of this bug. ***
Comment 4 Yair Yogev 2011-05-07 15:06:28 PDT
Created attachment 92697 [details]
RTL testcase

looks like the fix here was only good for LTR text?
see RTL testcase attached
Comment 5 Yair Yogev 2011-05-16 07:54:43 PDT
Comment on attachment 92697 [details]
RTL testcase

posted as bug 60884
Comment 6 Ryosuke Niwa 2011-06-11 13:25:20 PDT
It seems like the test added by this test only works on Mac due to font metrics difference.  Can we move the test to platform/mac or modify it so that it works on all platforms?