Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cb80e57398c2e145c8b94651e59f99cb40404cab
      
https://github.com/WebKit/WebKit/commit/cb80e57398c2e145c8b94651e59f99cb40404cab
  Author: Matt Woodrow <mattwood...@apple.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    A LayoutTests/fast/layout/relayout-boundary-inside-flex-expected.html
    A LayoutTests/fast/layout/relayout-boundary-inside-flex.html
    A LayoutTests/fast/layout/relayout-boundary-inside-inline-expected.html
    A LayoutTests/fast/layout/relayout-boundary-inside-inline.html
    M Source/WebCore/rendering/RenderObject.cpp

  Log Message:
  -----------
  objectIsRelayoutBoundary doesn't account for baseline changes across the 
boundary.
https://bugs.webkit.org/show_bug.cgi?id=290359
<rdar://147799932>

Reviewed by Alan Baradlay.

Being an independent formatting context isn't sufficient to be a layout
boundary, as placement within the formatting context can affect the baseline
positioning of things outside.

We need to prevent these being treated as boundaries if they are inside an
formatting context that uses baselines.

Caches the lookup of nearest ancestor baseline formatting context to prevent 
extra
ancestor walks during markContainingBlocksForLayout.

* LayoutTests/fast/layout/relayout-boundary-inside-flex-expected.html: Added.
* LayoutTests/fast/layout/relayout-boundary-inside-flex.html: Added.
* LayoutTests/fast/layout/relayout-boundary-inside-inline-expected.html: Added.
* LayoutTests/fast/layout/relayout-boundary-inside-inline.html: Added.
* Source/WebCore/rendering/RenderObject.cpp:
(WebCore::nearestBaselineContextAncestor):
(WebCore::objectIsRelayoutBoundary):
(WebCore::RenderObject::markContainingBlocksForLayout):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to