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
223480
Add a fast path for subdivideAndResolveStyle()
https://bugs.webkit.org/show_bug.cgi?id=223480
Summary
Add a fast path for subdivideAndResolveStyle()
Simon Fraser (smfr)
Reported
2021-03-18 14:35:57 PDT
Add a fast path for subdivideAndResolveStyle()
Attachments
Patch
(3.18 KB, patch)
2021-03-18 14:44 PDT
,
Simon Fraser (smfr)
mmaxfield
: review+
Details
Formatted Diff
Diff
Patch
(3.27 KB, patch)
2021-03-18 16:04 PDT
,
Simon Fraser (smfr)
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2021-03-18 14:44:36 PDT
Created
attachment 423661
[details]
Patch
Myles C. Maxfield
Comment 2
2021-03-18 15:11:15 PDT
Comment on
attachment 423661
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=423661&action=review
> Source/WebCore/ChangeLog:9 > + Most of the time, InlineTextBox::paint() will be painting text runs with no marked text, > + so optimize subdivideAndResolveStyle() for this case.
Is the motivation cleanliness or performance? If performance, would be good to validate with a perf test.
> Source/WebCore/rendering/MarkedTextStyle.cpp:157 > + if (textsToCoalesce.size() < 2)
nit: I think 1 is a more obvious sentinel than 2, so I would say "<= 1" instead of "< 2".
Simon Fraser (smfr)
Comment 3
2021-03-18 16:04:48 PDT
Created
attachment 423665
[details]
Patch
Daniel Bates
Comment 4
2021-03-18 18:51:17 PDT
Looks good
Daniel Bates
Comment 5
2021-03-18 18:52:52 PDT
Comment on
attachment 423665
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=423665&action=review
> Source/WebCore/rendering/MarkedTextStyle.cpp:123 > + Vector<StyledMarkedText> frontmostMarkedTexts;
Consider moving this back to avoid allocating inline storage.
EWS
Comment 6
2021-03-18 21:21:40 PDT
Committed
r274700
: <
https://commits.webkit.org/r274700
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 423665
[details]
.
Radar WebKit Bug Importer
Comment 7
2021-03-18 21:22:17 PDT
<
rdar://problem/75605441
>
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