Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: feb8e0dbf2cc3b8cbd9e8bd3740440d4cfdbe08d
      
https://github.com/WebKit/WebKit/commit/feb8e0dbf2cc3b8cbd9e8bd3740440d4cfdbe08d
  Author: Alan Baradlay <[email protected]>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/text-overflow-in-anonymous-block-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/text-overflow-in-anonymous-block-ref.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/text-overflow-in-anonymous-block.html
    M 
Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp
    M 
Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp
    M 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.cpp
    M Source/WebCore/layout/integration/LayoutIntegrationBoxTreeUpdater.cpp
    M Source/WebCore/layout/integration/LayoutIntegrationUtils.cpp
    M Source/WebCore/layout/integration/LayoutIntegrationUtils.h

  Log Message:
  -----------
  [IFC] Stop forwarding overflow and text-overflow to anonymous block boxes
https://bugs.webkit.org/show_bug.cgi?id=323818
<rdar://problem/187058237>

Reviewed by Antti Koivisto.

This is preparation for not adjusting computed style for layout boxes.

overflow and text-overflow are not inherited, so an anonymous block box holding
the inline content of a block container gets the initial values while the block
container is the one asking for the truncation.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/text-overflow-in-anonymous-block-expected.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/text-overflow-in-anonymous-block-ref.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/text-overflow-in-anonymous-block.html:
 Added.
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::layout):
(WebCore::Layout::InlineFormattingContext::createDisplayContentForInlineContent):
* Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp:
(WebCore::Layout::TextOnlySimpleLineBuilder::isEligibleForSimplifiedDisplayBuild):
* Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.h:
* 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.cpp:
(WebCore::Layout::InlineDisplayLineBuilder::applyEllipsisIfNeeded):
* 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLineBuilder.h:
* Source/WebCore/layout/integration/LayoutIntegrationBoxTreeUpdater.cpp:
(WebCore::LayoutIntegration::BoxTreeUpdater::adjustStyleIfNeeded):
* Source/WebCore/layout/integration/LayoutIntegrationUtils.cpp:
(WebCore::Layout::IntegrationUtils::styleForLineEndingTruncation):
* Source/WebCore/layout/integration/LayoutIntegrationUtils.h:

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



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

Reply via email to