[webkit-changes] [WebKit/WebKit] 0d2b43: [Cleanup] RenderBox::availableLogicalWidthForLine ...

Alan Baradlay noreply at github.com
Mon Dec 30 16:31:12 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0d2b43ab1c60c786cc0c09b4b25392be804e06c0
      https://github.com/WebKit/WebKit/commit/0d2b43ab1c60c786cc0c09b4b25392be804e06c0
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2024-12-30 (Mon, 30 Dec 2024)

  Changed paths:
    M Source/WebCore/rendering/LegacyRootInlineBox.cpp
    M Source/WebCore/rendering/RenderBlock.h
    M Source/WebCore/rendering/RenderBlockFlow.cpp
    M Source/WebCore/rendering/RenderBox.cpp

  Log Message:
  -----------
  [Cleanup] RenderBox::availableLogicalWidthForLine should not check for fragmentation
https://bugs.webkit.org/show_bug.cgi?id=285199

Reviewed by Antti Koivisto.

All callers of availableLogicalWidthForLineInFragment pass in nullptr fragment.

1. Move all callsites of availableLogicalWidthForLine (there are only 2) to use availableLogicalWidthForLineInFragment and pass in the current fragment.
2. Previous availableLogicalWidthForLineInFragment call availableLogicalWidthForLine where
availableLogicalWidthForLine does not check for fragment.

* Source/WebCore/rendering/LegacyRootInlineBox.cpp:
(WebCore::LegacyRootInlineBox::lineBoxWidth const):
* Source/WebCore/rendering/RenderBlock.h:
(WebCore::RenderBlock::availableLogicalWidthForLine const):
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::getClearDelta):
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::shrinkLogicalWidthToAvoidFloats const):
(WebCore::RenderBox::containingBlockAvailableLineWidth const):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list