WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
236514
Skip positioned object and line break boxes as they have no affect on width
https://bugs.webkit.org/show_bug.cgi?id=236514
Summary
Skip positioned object and line break boxes as they have no affect on width
Brandon
Reported
2022-02-11 09:53:54 PST
<
rdar://88491516
>
Attachments
Patch
(2.03 KB, patch)
2022-02-11 09:57 PST
,
Brandon
no flags
Details
Formatted Diff
Diff
Root cause fix
(1.91 KB, patch)
2022-02-11 18:20 PST
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Patch
(1.93 KB, patch)
2022-02-15 12:35 PST
,
Brandon
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Brandon
Comment 1
2022-02-11 09:57:23 PST
Created
attachment 451716
[details]
Patch
Myles C. Maxfield
Comment 2
2022-02-11 16:10:36 PST
Comment on
attachment 451716
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=451716&action=review
> Source/WebCore/rendering/LegacyLineLayout.cpp:571 > + for (auto* leafChild = rootBox.firstLeafDescendant(); leafChild && i < expansionOpportunities.size(); leafChild = leafChild->nextLeafOnLine()) {
I think this is a band-aid fix. It's not harmful, but it doesn't solve the underlying problem that the invariant is being violated. (The invariant is expansionOpportunities.size() == number of leaves on line.)
Myles C. Maxfield
Comment 3
2022-02-11 17:34:36 PST
The bidi runs are: 1. U+0600 2. U+2E80 3. A ruby run expansionOpportunities.size() is 2, however.
Myles C. Maxfield
Comment 4
2022-02-11 17:56:15 PST
Whoops, that's wrong. The first time LegacyLineLayout::computeExpansionForJustifiedText() is called, the runs are: 1. U+0600 2. U+2E80 The second time it's called, the runs are: 1. \n 2. ruby run. Inside this run, the first root box has 2 leaves on the line.
Myles C. Maxfield
Comment 5
2022-02-11 18:00:38 PST
Regarding the second time, both expansion opportunities appended to expansionOpportunities are regarding the insides of the ruby run. For some reason, the previous \n run didn't seem to append anything to expansionOpportunities.
Myles C. Maxfield
Comment 6
2022-02-11 18:20:10 PST
Created
attachment 451767
[details]
Root cause fix
Brandon
Comment 7
2022-02-15 12:35:44 PST
Created
attachment 452073
[details]
Patch
Myles C. Maxfield
Comment 8
2022-02-15 12:38:20 PST
Comment on
attachment 452073
[details]
Patch r=me assuming there is a test somewhere
EWS
Comment 9
2022-02-15 16:00:55 PST
Committed
r289859
(
247300@main
): <
https://commits.webkit.org/247300@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 452073
[details]
.
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