Bug 272372 - Optimize RenderBox::contentBoxRect()
Summary: Optimize RenderBox::contentBoxRect()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-04-08 21:43 PDT by Simon Fraser (smfr)
Modified: 2024-04-09 09:35 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2024-04-08 21:43:53 PDT
RenderBox::contentBoxRect() is fairly hot in some profiles, and costly because contentWidth() and contentHeight() both fan out to multiple calls that checking scrollbarGutter() and checking for scrollbars.
Comment 1 Radar WebKit Bug Importer 2024-04-08 21:44:06 PDT
<rdar://problem/126114704>
Comment 2 Simon Fraser (smfr) 2024-04-08 21:46:53 PDT
Pull request: https://github.com/WebKit/WebKit/pull/27011
Comment 3 EWS 2024-04-09 09:35:19 PDT
Committed 277251@main (9ab862354f2a): <https://commits.webkit.org/277251@main>

Reviewed commits have been landed. Closing PR #27011 and removing active labels.