Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fb8200366c4f2e4ee2e0b56ae8eda953703198cc
      
https://github.com/WebKit/WebKit/commit/fb8200366c4f2e4ee2e0b56ae8eda953703198cc
  Author: Kiet Ho <[email protected]>
  Date:   2026-04-07 (Tue, 07 Apr 2026)

  Changed paths:
    M Source/WebCore/style/AnchorPositionEvaluator.cpp
    M Source/WebCore/style/AnchorPositionEvaluator.h
    M Source/WebCore/style/StyleTreeResolver.cpp

  Log Message:
  -----------
  [css-anchor-position-1] Use UniqueRef in AnchorPositionedStates
rdar://174179610
https://bugs.webkit.org/show_bug.cgi?id=311583

Reviewed by Antti Koivisto.

AnchorPositionedStates holds std::unique_ptr<AnchorPositionedState>. The
pointers are guaranteed to be non-null, so switch to using UniqueRef instead.

Simple refactoring, tested by existing anchor positioning tests.

* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::AnchorPositionEvaluator::findAnchorForAnchorFunctionAndAttemptResolution):
(WebCore::Style::AnchorPositionEvaluator::updateAnchorPositioningStatesAfterInterleavedLayout):
* Source/WebCore/style/AnchorPositionEvaluator.h:
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolve):

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



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

Reply via email to