Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5ee47e7815f2f81891fc974fa66c1a289b7e8085
      
https://github.com/WebKit/WebKit/commit/5ee47e7815f2f81891fc974fa66c1a289b7e8085
  Author: Alan Baradlay <[email protected]>
  Date:   2025-11-19 (Wed, 19 Nov 2025)

  Changed paths:
    M 
Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp
    M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.h
    M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp
    M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h
    M Source/WebCore/layout/formattingContexts/inline/InlineLayoutState.h
    M Source/WebCore/layout/integration/LayoutIntegrationBoxTreeUpdater.cpp

  Log Message:
  -----------
  [cleanup] Add lineCountForBlockDirectionClamp to InlineLayoutState
https://bugs.webkit.org/show_bug.cgi?id=302757

Reviewed by Antti Koivisto.

Instead of relying on a local stack variable for the contentful line count, we 
should use InlineLayoutState to maintain it. It helps with we need to keep 
track of
lines coming from nested block content (inline-block or block-in-inline).

* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::layout):
(WebCore::Layout::InlineFormattingContext::lineLayout):
(WebCore::Layout::InlineFormattingContext::createDisplayContentForInlineContent):
(WebCore::Layout::InlineFormattingContext::createDisplayContentForLineFromCachedContent):
(WebCore::Layout::InlineFormattingContext::createDisplayContentForEmptyInlineContent):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.h:
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp:
(WebCore::Layout::InlineFormattingUtils::shouldDiscardRemainingContentInBlockDirection
 const):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h:
* Source/WebCore/layout/formattingContexts/inline/InlineLayoutState.h:
(WebCore::Layout::InlineLayoutState::lineCountForBlockDirectionClamp const):
(WebCore::Layout::InlineLayoutState::setLineCountForBlockDirectionClamp):
* Source/WebCore/layout/integration/LayoutIntegrationBoxTreeUpdater.cpp:
(WebCore::LayoutIntegration::showInlineContent):

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



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

Reply via email to