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

  Changed paths:
    M Source/WebCore/rendering/PositionedLayoutConstraints.cpp
    M Source/WebCore/rendering/PositionedLayoutConstraints.h
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderBoxModelObject.cpp
    M Source/WebCore/rendering/RenderInline.cpp
    M Source/WebCore/rendering/RenderInline.h
    M Source/WebCore/rendering/RenderLayer.cpp
    M Source/WebCore/rendering/RenderLayoutState.cpp

  Log Message:
  -----------
  [cleanup] Move offsetForInFlowPositionedInline off RenderInline and into 
PositionedLayoutConstraints
https://bugs.webkit.org/show_bug.cgi?id=324061
<rdar://problem/187294463>

Reviewed by Antti Koivisto.

offsetForInFlowPositionedInline returns the offset of the _containing_block_ of 
an out-of-flow box
where the out-of-flow box has non-static value
  <span style="position: relative>
    <div style="position: absolute">
 would return 0, 0 as both axes have the values of 'auto'.

* Source/WebCore/rendering/PositionedLayoutConstraints.cpp:
(WebCore::PositionedLayoutConstraints::usesStaticPosition):
(WebCore::PositionedLayoutConstraints::containingBlockOffsetForNonStaticAxes):
* Source/WebCore/rendering/PositionedLayoutConstraints.h:
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::offsetFromContainer const):
(WebCore::RenderBox::computeVisibleRectsInContainer const):
* Source/WebCore/rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::adjustedPositionRelativeToOffsetParent const):
* Source/WebCore/rendering/RenderInline.cpp:
(WebCore::RenderInline::offsetForInFlowPositionedInline const): Deleted.
* Source/WebCore/rendering/RenderInline.h:
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::updateLayerPosition):
* Source/WebCore/rendering/RenderLayoutState.cpp:
(WebCore::RenderLayoutState::computeOffsets):

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



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

Reply via email to