[webkit-changes] [WebKit/WebKit] f2ad1f: FloatingState::m_floats wastes 30KB of vector capa...

Alan Baradlay noreply at github.com
Mon Feb 6 12:46:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f2ad1fd561f549178be70a475893351d43eb6139
      https://github.com/WebKit/WebKit/commit/f2ad1fd561f549178be70a475893351d43eb6139
  Author: Alan Baradlay <zalan at apple.com>
  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




More information about the webkit-changes mailing list