[webkit-changes] [WebKit/WebKit] 230485: [LFC][Integration] Remove LayoutState::m_viewportSize

Alan Baradlay noreply at github.com
Sat Jul 15 06:20:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2304858eec12b0c3eeb705cde2dc315c3f055407
      https://github.com/WebKit/WebKit/commit/2304858eec12b0c3eeb705cde2dc315c3f055407
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-07-15 (Sat, 15 Jul 2023)

  Changed paths:
    M Source/WebCore/layout/LayoutState.cpp
    M Source/WebCore/layout/LayoutState.h
    M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp
    M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.h
    M Source/WebCore/layout/integration/flex/LayoutIntegrationFlexLayout.cpp
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
    M Source/WebCore/rendering/RenderView.cpp
    M Source/WebCore/rendering/RenderView.h

  Log Message:
  -----------
  [LFC][Integration] Remove LayoutState::m_viewportSize
https://bugs.webkit.org/show_bug.cgi?id=258771

Reviewed by Antti Koivisto.

Now that initial containing block is always constructed (even for the integration codepath),
we can remove this "hack" to provide ICB geometry for stroke overflow.

* Source/WebCore/layout/LayoutState.cpp:
(WebCore::Layout::LayoutState::setViewportSize): Deleted.
(WebCore::Layout::LayoutState::viewportSize const): Deleted.
* Source/WebCore/layout/LayoutState.h:
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::InlineDisplayContentBuilder::InlineDisplayContentBuilder):
(WebCore::Layout::InlineDisplayContentBuilder::appendTextDisplayBox):
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.h:
* Source/WebCore/layout/integration/flex/LayoutIntegrationFlexLayout.cpp:
(WebCore::LayoutIntegration::FlexLayout::FlexLayout):
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::LineLayout):
* Source/WebCore/rendering/RenderView.cpp:
(WebCore::RenderView::RenderView):
(WebCore::RenderView::layout):
(WebCore::RenderView::updateQuirksMode):
(WebCore::RenderView::updateInitialContainingBlockSize):
(WebCore::RenderView::ensureLayoutState): Deleted.
* Source/WebCore/rendering/RenderView.h:

Canonical link: https://commits.webkit.org/266083@main




More information about the webkit-changes mailing list