Bug 43679 - First word on a line doesn’t hyphenate properly
Summary: First word on a line doesn’t hyphenate properly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: data:text/html,<div style="font-size:...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-08-07 13:46 PDT by mitz
Modified: 2010-08-07 14:42 PDT (History)
0 users

See Also:


Attachments
Include the character at lastSpace in the string passed to lastHyphenLocation() (116.86 KB, patch)
2010-08-07 13:52 PDT, mitz
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2010-08-07 13:46:30 PDT
tryHyphenating() assumes that the character at lastSpace is a space character, and doesn’t include it in the string passed to lastHyphenLocation(). This is not always the case, such as when the current word is the first on a line. Patch forthcoming.
Comment 1 mitz 2010-08-07 13:46:53 PDT
<rdar://problem/8285090>
Comment 2 mitz 2010-08-07 13:52:45 PDT
Created attachment 63826 [details]
Include the character at lastSpace in the string passed to lastHyphenLocation()
Comment 3 mitz 2010-08-07 14:42:20 PDT
Fixed in <http://trac.webkit.org/changeset/64920>.