Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 29f4978a079e082afba0cf3afd783cbd5a40dceb
      
https://github.com/WebKit/WebKit/commit/29f4978a079e082afba0cf3afd783cbd5a40dceb
  Author: Antti Koivisto <[email protected]>
  Date:   2025-06-04 (Wed, 04 Jun 2025)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderBoxModelObject.cpp
    M Source/WebCore/style/AnchorPositionEvaluator.cpp
    M Source/WebCore/style/AnchorPositionEvaluator.h

  Log Message:
  -----------
  [css-anchor-position-1] Inline box anchor fails to register after name 
mutation
https://bugs.webkit.org/show_bug.cgi?id=294016
rdar://152570856

Reviewed by Alan Baradlay.

The previous fix for this (in RenderBox) missed the inline box (<span>) case.

* LayoutTests/TestExpectations:
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::styleWillChange):

Testing in RenderBoxModelObject is sufficient.

* Source/WebCore/rendering/RenderBoxModelObject.cpp:

Test for anchor status correctly.

(WebCore::RenderBoxModelObject::styleWillChange):
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::AnchorPositionEvaluator::isAnchor):
* Source/WebCore/style/AnchorPositionEvaluator.h:

Factor into a function.

Canonical link: https://commits.webkit.org/295810@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