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
235391
[LFC][IFC] Add LineContent::inlineBaseDirection to support line based inline direction
https://bugs.webkit.org/show_bug.cgi?id=235391
Summary
[LFC][IFC] Add LineContent::inlineBaseDirection to support line based inline ...
alan
Reported
2022-01-19 19:58:02 PST
and not just block based.
Attachments
Patch
(10.36 KB, patch)
2022-01-19 20:08 PST
,
alan
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(10.36 KB, patch)
2022-01-19 20:19 PST
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(10.73 KB, patch)
2022-01-20 08:48 PST
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(10.73 KB, patch)
2022-01-20 08:51 PST
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(11.91 KB, patch)
2022-01-20 14:06 PST
,
alan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
alan
Comment 1
2022-01-19 20:08:05 PST
Created
attachment 449546
[details]
Patch
alan
Comment 2
2022-01-19 20:19:20 PST
Created
attachment 449547
[details]
Patch
alan
Comment 3
2022-01-20 08:48:12 PST
Created
attachment 449583
[details]
Patch
alan
Comment 4
2022-01-20 08:51:58 PST
Created
attachment 449584
[details]
Patch
Antti Koivisto
Comment 5
2022-01-20 08:57:50 PST
Comment on
attachment 449584
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=449584&action=review
> Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:53 > + // FIXME: We could try to reuse the content builder in InlineItemsBuilder if this turns out to be a perf bottleneck. > + StringBuilder lineContentBuilder; > + for (auto& run : runs) { > + if (!run.isText()) > + continue; > + auto& textContent = run.textContent(); > + lineContentBuilder.append(downcast<InlineTextBox>(run.layoutBox()).content().substring(textContent->start, textContent->length)); > + }
Wonder if copying could be avoided in some common cases and a stringview to content() string scanned directly
alan
Comment 6
2022-01-20 14:06:35 PST
Created
attachment 449610
[details]
Patch
EWS
Comment 7
2022-01-20 16:18:55 PST
Committed
r288332
(
246240@main
): <
https://commits.webkit.org/246240@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 449610
[details]
.
Radar WebKit Bug Importer
Comment 8
2022-01-20 16:19:19 PST
<
rdar://problem/87855803
>
alan
Comment 9
2022-01-20 17:07:01 PST
(In reply to Antti Koivisto from
comment #5
)
> Comment on
attachment 449584
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=449584&action=review
> > > Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:53 > > + // FIXME: We could try to reuse the content builder in InlineItemsBuilder if this turns out to be a perf bottleneck. > > + StringBuilder lineContentBuilder; > > + for (auto& run : runs) { > > + if (!run.isText()) > > + continue; > > + auto& textContent = run.textContent(); > > + lineContentBuilder.append(downcast<InlineTextBox>(run.layoutBox()).content().substring(textContent->start, textContent->length)); > > + } > > Wonder if copying could be avoided in some common cases and a stringview to > content() string scanned directly
Yeah, I think we could add a fast path like that.
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