Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4ee026e4721bce10e22dd5906a4e8002aa9b8e98
https://github.com/WebKit/WebKit/commit/4ee026e4721bce10e22dd5906a4e8002aa9b8e98
Author: Simon Fraser <[email protected]>
Date: 2025-04-26 (Sat, 26 Apr 2025)
Changed paths:
M Source/WebCore/rendering/FlexibleBoxAlgorithm.cpp
M Source/WebCore/rendering/FlexibleBoxAlgorithm.h
M Source/WebCore/rendering/RenderFlexibleBox.cpp
M Source/WebCore/rendering/RenderFlexibleBox.h
Log Message:
-----------
Add some inline capacity in flex layout code
https://bugs.webkit.org/show_bug.cgi?id=292103
rdar://150112732
Reviewed by Alan Baradlay.
Use inline vector capacity in some temporary data structures used for
flex layout, to reduce allocations. Values chosen by running benchmarks
and loading some web pages.
* Source/WebCore/rendering/FlexibleBoxAlgorithm.cpp:
(WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm):
(WebCore::FlexLayoutAlgorithm::computeNextFlexLine):
* Source/WebCore/rendering/FlexibleBoxAlgorithm.h:
* Source/WebCore/rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::freezeViolations):
(WebCore::RenderFlexibleBox::freezeInflexibleItems):
(WebCore::RenderFlexibleBox::resolveFlexibleLengths):
* Source/WebCore/rendering/RenderFlexibleBox.h:
Canonical link: https://commits.webkit.org/294157@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes