WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
205362
[LFC][IFC] Add lastInlineItemWithContent to LineBreaker::Content::isAtSoftWrapOpportunity
https://bugs.webkit.org/show_bug.cgi?id=205362
Summary
[LFC][IFC] Add lastInlineItemWithContent to LineBreaker::Content::isAtSoftWra...
zalan
Reported
2019-12-17 16:04:23 PST
This is in preparation for LineBreaker::Content::isAtSoftWrapOpportunity being able to return a previous run index as soft wrap opportunity.
Attachments
Patch
(5.13 KB, patch)
2019-12-17 16:07 PST
,
zalan
koivisto
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-12-17 16:04:56 PST
<
rdar://problem/58025349
>
zalan
Comment 2
2019-12-17 16:07:09 PST
Created
attachment 385927
[details]
Patch
Antti Koivisto
Comment 3
2019-12-18 06:58:53 PST
Comment on
attachment 385927
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=385927&action=review
> Source/WebCore/layout/inlineformatting/InlineLineBreaker.cpp:299 > + for (auto i = priorContent.size(); i--;) { > + auto& previousInlineItem = runs[i].inlineItem;
This could uses range for and WTF::makeReversedRange
> Source/WebCore/layout/inlineformatting/InlineLineBreaker.cpp:304 > + ASSERT_NOT_REACHED();
I still prefer for loops looping over the main body.
zalan
Comment 4
2019-12-18 06:59:47 PST
(In reply to Antti Koivisto from
comment #3
)
> Comment on
attachment 385927
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=385927&action=review
> > > Source/WebCore/layout/inlineformatting/InlineLineBreaker.cpp:299 > > + for (auto i = priorContent.size(); i--;) { > > + auto& previousInlineItem = runs[i].inlineItem; > > This could uses range for and WTF::makeReversedRange > > > Source/WebCore/layout/inlineformatting/InlineLineBreaker.cpp:304 > > + ASSERT_NOT_REACHED(); > > I still prefer for loops looping over the main body.
oops, my bad.
zalan
Comment 5
2019-12-18 07:34:53 PST
Committed
r253681
: <
https://trac.webkit.org/changeset/253681
>
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