Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0d2b43ab1c60c786cc0c09b4b25392be804e06c0
      
https://github.com/WebKit/WebKit/commit/0d2b43ab1c60c786cc0c09b4b25392be804e06c0
  Author: Alan Baradlay <[email protected]>
  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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to