Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f2ad1fd561f549178be70a475893351d43eb6139
https://github.com/WebKit/WebKit/commit/f2ad1fd561f549178be70a475893351d43eb6139
Author: Alan Baradlay <[email protected]>
Date: 2023-02-06 (Mon, 06 Feb 2023)
Changed paths:
M Source/WebCore/layout/floats/FloatingState.cpp
M Source/WebCore/layout/floats/FloatingState.h
M Source/WebCore/layout/formattingContexts/block/BlockFormattingState.cpp
M Source/WebCore/layout/formattingContexts/block/BlockFormattingState.h
M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
Log Message:
-----------
FloatingState::m_floats wastes 30KB of vector capacity
https://bugs.webkit.org/show_bug.cgi?id=251725
<rdar://problem/105025457>
Reviewed by Antti Koivisto.
Introduce shrinkToFit to BlockFormattingState (which we already have on
InlineFormattingState).
* Source/WebCore/layout/floats/FloatingState.cpp:
(WebCore::Layout::FloatingState::shrinkToFit):
* Source/WebCore/layout/floats/FloatingState.h:
* Source/WebCore/layout/formattingContexts/block/BlockFormattingState.cpp:
(WebCore::Layout::BlockFormattingState::shrinkToFit):
* Source/WebCore/layout/formattingContexts/block/BlockFormattingState.h:
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::constructContent):
Canonical link: https://commits.webkit.org/259909@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes