WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
156803
Don't hyphenate the last word in a paragraph.
https://bugs.webkit.org/show_bug.cgi?id=156803
Summary
Don't hyphenate the last word in a paragraph.
Dave Hyatt
Reported
2016-04-20 11:58:50 PDT
Don't hyphenate the last word in a paragraph if a fragment of the word would end up by itself on the last line. We make an exception if the line is empty though.
Attachments
Patch
(17.16 KB, patch)
2016-04-20 12:01 PDT
,
Dave Hyatt
simon.fraser
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews126 for ios-simulator-wk2
(724.11 KB, application/zip)
2016-04-20 12:54 PDT
,
Build Bot
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Dave Hyatt
Comment 1
2016-04-20 12:01:07 PDT
Created
attachment 276839
[details]
Patch
Simon Fraser (smfr)
Comment 2
2016-04-20 12:10:22 PDT
Comment on
attachment 276839
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=276839&action=review
> Source/WebCore/rendering/line/BreakingContext.h:752 > - > +
Whitespace.
> Source/WebCore/rendering/line/BreakingContext.h:907 > +
Whitespace.
> Source/WebCore/rendering/line/BreakingContext.h:943 > + // We don't try to hyphenate if we're looking at the final break of a block, since this means there is > + // no more content, and we'd end up putting a hyphenated single word on a line by itself. This looks > + // bad so we just don't allow it.
Lots of "we" here. Would read better as "Don't try to hyphenate if...".
> Source/WebCore/rendering/line/BreakingContext.h:1131 > + // We don't try to hyphenate if we're looking at the final break of a block, since this means there is > + // no more content, and we'd end up putting a hyphenated single word on a line by itself. This looks > + // bad so we just don't allow it.
More "We".
Build Bot
Comment 3
2016-04-20 12:54:17 PDT
Comment on
attachment 276839
[details]
Patch
Attachment 276839
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/1192177
New failing tests: fast/text/hyphenate-avoid-orphaned-word.html
Build Bot
Comment 4
2016-04-20 12:54:20 PDT
Created
attachment 276845
[details]
Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.10.5
Dave Hyatt
Comment 5
2016-04-21 09:25:01 PDT
Fixed in
r199818
.
Jon Lee
Comment 6
2016-04-21 11:09:09 PDT
rdar://problem/23786022
Ryan Haddad
Comment 7
2016-04-27 11:22:25 PDT
Added an ios-simulator baseline for the test added with this change in <
https://trac.webkit.org/r200135
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug