Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove allocations in NGInlineLayoutAlgorithm
This creates a single `cached_line_items_` which is used instead of MakeGarbageCollected in NGInlineLayoutAlgorithm. Hopefully this should improve performance on DCHECK builds where ::CheckBoxStates() is called very frequently, but it may be very marginal as we haven't profiled this. Bug: 1380588 Change-Id: I4ced6f630cc25f36504cb45396e2dd7b521d61ca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4113878 Reviewed-by: Koji Ishii <kojii@chromium.org> Auto-Submit: Peter Boström <pbos@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1084692}
- Loading branch information
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters