WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 124206
Support overflow-wrap:break-word on simple line path
https://bugs.webkit.org/show_bug.cgi?id=124206
Summary
Support overflow-wrap:break-word on simple line path
Antti Koivisto
Reported
2013-11-12 08:11:38 PST
This makes some pure text documents use simple line layout path.
Attachments
patch
(30.27 KB, patch)
2013-11-12 08:36 PST
,
Antti Koivisto
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2
(578.05 KB, application/zip)
2013-11-12 09:36 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion
(715.62 KB, application/zip)
2013-11-12 10:35 PST
,
Build Bot
no flags
Details
patch 2
(32.38 KB, patch)
2013-11-13 04:00 PST
,
Antti Koivisto
kling
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Antti Koivisto
Comment 1
2013-11-12 08:36:20 PST
Created
attachment 216677
[details]
patch
Build Bot
Comment 2
2013-11-12 09:36:32 PST
Comment on
attachment 216677
[details]
patch
Attachment 216677
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/22888755
New failing tests: fast/shapes/shape-inside/shape-inside-dynamic-nested.html accessibility/aria-help.html http/tests/misc/acid3.html fast/parser/entity-comment-in-textarea.html
Build Bot
Comment 3
2013-11-12 09:36:34 PST
Created
attachment 216688
[details]
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-10 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 4
2013-11-12 10:35:42 PST
Comment on
attachment 216677
[details]
patch
Attachment 216677
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/22888765
New failing tests: fast/shapes/shape-inside/shape-inside-dynamic-nested.html accessibility/aria-help.html http/tests/misc/acid3.html fast/parser/entity-comment-in-textarea.html
Build Bot
Comment 5
2013-11-12 10:35:44 PST
Created
attachment 216693
[details]
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-07 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Andreas Kling
Comment 6
2013-11-13 00:01:33 PST
Comment on
attachment 216677
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=216677&action=review
> Source/WebCore/rendering/SimpleLineLayout.cpp:388 > + for (unsigned breakEnd = lineStart + 1; breakEnd <= wordEnd; ++breakEnd) { > + float splitWidth = measureWord(textRenderer, text, textLength, lineStart, breakEnd, 0, collapseWhitespace, font, tabWidth, spaceWidth);
I bet there's a more efficient way of doing this. The complexity:benefit ratio seems good as-is though.
Antti Koivisto
Comment 7
2013-11-13 04:00:31 PST
Created
attachment 216792
[details]
patch 2 - measure character-by-character to avoid n^2. This is what line boxes do too. - if break-word generates space-only line set its width to zero - handle shapeInside style invalidation correctly
Andreas Kling
Comment 8
2013-11-13 04:06:19 PST
Comment on
attachment 216792
[details]
patch 2 r=me!
Antti Koivisto
Comment 9
2013-11-13 05:23:59 PST
https://trac.webkit.org/r159192
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