Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2e762d0b3dbe3b07783143537646a3cee73c58ec
      
https://github.com/WebKit/WebKit/commit/2e762d0b3dbe3b07783143537646a3cee73c58ec
  Author: Antti Koivisto <an...@apple.com>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-001-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-default-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-eval-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/popover-anchor-backdrop-transition-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-initial-transition-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-transition-flip-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/after-change-style-inherited-try-fallback-expected.txt
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/style/StyleTreeResolver.cpp
    M Source/WebCore/style/StyleTreeResolver.h

  Log Message:
  -----------
  [css-anchor-position-1] Support transitions with anchor functions
https://bugs.webkit.org/show_bug.cgi?id=289464
rdar://146663067

Reviewed by Alan Baradlay.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-001-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-default-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-transition-eval-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/popover-anchor-backdrop-transition-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-initial-transition-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-transition-flip-expected.txt:
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::renderOrDisplayContentsStyle const):

Remove an unncesary branch, ::before and ::after can be found from the parent 
style like the rest of the pseudo elements.

* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::createAnimatedElementUpdate):

Use the style as it was before the first layout interleaving round as the 
transition starting style.
Don't resolve transitions and animations until anchors are fully resolved.

(WebCore::Style::TreeResolver::resolve):

Save the original render tree style before entering interleaving so we can look 
it up later.
Interleaving commits a temporary style to the render tree so we lose it 
otherwise.

(WebCore::Style::TreeResolver::updateAnchorPositioningState):
(WebCore::Style::TreeResolver::generatePositionOptionsIfNeeded):
(WebCore::Style::TreeResolver::beforeResolutionStyle):
(WebCore::Style::TreeResolver::saveBeforeResolutionStyleForInterleaving):
(WebCore::Style::TreeResolver::hasUnresolvedAnchorPosition const):

Add a helper.

* Source/WebCore/style/StyleTreeResolver.h:

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