WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
204514
[LFC][IFC] Line::Run::expand should take a range of runs to merge
https://bugs.webkit.org/show_bug.cgi?id=204514
Summary
[LFC][IFC] Line::Run::expand should take a range of runs to merge
alan
Reported
2019-11-22 07:05:27 PST
instead of merging one by one
Attachments
Patch
(9.49 KB, patch)
2019-11-22 07:19 PST
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(12.87 KB, patch)
2019-11-22 13:06 PST
,
alan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-11-22 07:06:03 PST
<
rdar://problem/57428139
>
alan
Comment 2
2019-11-22 07:19:04 PST
Created
attachment 384150
[details]
Patch
Antti Koivisto
Comment 3
2019-11-22 07:36:18 PST
Comment on
attachment 384150
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=384150&action=review
> Source/WebCore/layout/inlineformatting/InlineLine.cpp:315 > + auto& trailingRun = m_inlineItemRuns[i + 1]; > + if (!ContinousContent::canMergeRuns(*m_inlineItemRuns[i], *trailingRun)) > break; > - runList.last().expand(*nextRun); > - // Skip the merged run. > - ++i; > + continousContent.append(*trailingRun);
Maybe the canMergeRuns call could be done in ContinousContent too? Like instead of append do something like continousContent.mergeIfNeeded(*m_inlineItemRuns[i], m_inlineItemRuns[i + 1]);
alan
Comment 4
2019-11-22 08:08:40 PST
(In reply to Antti Koivisto from
comment #3
)
> Comment on
attachment 384150
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=384150&action=review
> > > Source/WebCore/layout/inlineformatting/InlineLine.cpp:315 > > + auto& trailingRun = m_inlineItemRuns[i + 1]; > > + if (!ContinousContent::canMergeRuns(*m_inlineItemRuns[i], *trailingRun)) > > break; > > - runList.last().expand(*nextRun); > > - // Skip the merged run. > > - ++i; > > + continousContent.append(*trailingRun); > > Maybe the canMergeRuns call could be done in ContinousContent too? Like > instead of append do something like > > continousContent.mergeIfNeeded(*m_inlineItemRuns[i], m_inlineItemRuns[i + > 1]);
good idea!
alan
Comment 5
2019-11-22 13:06:37 PST
Created
attachment 384189
[details]
Patch
WebKit Commit Bot
Comment 6
2019-11-22 15:06:09 PST
Comment on
attachment 384189
[details]
Patch Clearing flags on attachment: 384189 Committed
r252807
: <
https://trac.webkit.org/changeset/252807
>
WebKit Commit Bot
Comment 7
2019-11-22 15:06:11 PST
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