WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
170245
Long Arabic text in ContentEditable with css white-space=pre hangs Safari
https://bugs.webkit.org/show_bug.cgi?id=170245
Summary
Long Arabic text in ContentEditable with css white-space=pre hangs Safari
zalan
Reported
2017-03-29 10:12:41 PDT
rdar://problem/22127615
Attachments
Patch
(4.18 KB, patch)
2017-03-29 11:03 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(4.08 KB, patch)
2017-04-01 12:39 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2017-03-29 11:03:06 PDT
Created
attachment 305760
[details]
Patch
Myles C. Maxfield
Comment 2
2017-03-30 17:00:09 PDT
Comment on
attachment 305760
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=305760&action=review
Where's your performance test?
> Source/WebCore/rendering/line/BreakingContext.h:798 > + float wrapW = wrapWidthOffset;
Can we give this a better name?
> Source/WebCore/rendering/line/BreakingContext.h:1065 > + // Measuring complex text with ligature by individual codepoints and by complete words could produce considerably different width values.
I'd instead say "Measuring the width of complex text character-by-character, rather than measuring it all together, could produce considerably different width values."
> Source/WebCore/rendering/line/BreakingContext.h:1069 > + wrapW = wrapWidthOffset + additionalTempWidth;
This doesn't seem right. Shouldn't this get reset from the uncommitted width of the LineWidth object?
zalan
Comment 3
2017-03-30 20:12:47 PDT
(In reply to Myles C. Maxfield from
comment #2
)
> Comment on
attachment 305760
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=305760&action=review
> > Where's your performance test?
https://trac.webkit.org/changeset/214557/webkit
> > Source/WebCore/rendering/line/BreakingContext.h:798 > > + float wrapW = wrapWidthOffset; > > Can we give this a better name?
Sure.
> > > Source/WebCore/rendering/line/BreakingContext.h:1065 > > + // Measuring complex text with ligature by individual codepoints and by complete words could produce considerably different width values. > > I'd instead say "Measuring the width of complex text character-by-character, > rather than measuring it all together, could produce considerably different > width values."
ok.
> > > Source/WebCore/rendering/line/BreakingContext.h:1069 > > + wrapW = wrapWidthOffset + additionalTempWidth; > > This doesn't seem right. Shouldn't this get reset from the uncommitted width > of the LineWidth object?
At this point wrapWidthOffset + additionalTempWidth == uncommitted width, but I agree, using the uncommitted width is a good idea.
zalan
Comment 4
2017-03-30 21:14:58 PDT
> > This doesn't seem right. Shouldn't this get reset from the uncommitted width > > of the LineWidth object? > At this point wrapWidthOffset + additionalTempWidth == uncommitted width, > but I agree, using the uncommitted width is a good idea.
Hang on, that's incorrect.
zalan
Comment 5
2017-04-01 12:39:47 PDT
Created
attachment 306048
[details]
Patch
WebKit Commit Bot
Comment 6
2017-04-01 22:39:33 PDT
Comment on
attachment 306048
[details]
Patch Clearing flags on attachment: 306048 Committed
r214726
: <
http://trac.webkit.org/changeset/214726
>
WebKit Commit Bot
Comment 7
2017-04-01 22:39:34 PDT
All reviewed patches have been landed. Closing bug.
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