Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a7912e41074f1b8198d89c91cb8e3f1171810b91
      
https://github.com/WebKit/WebKit/commit/a7912e41074f1b8198d89c91cb8e3f1171810b91
  Author: Antti Koivisto <[email protected]>
  Date:   2025-03-11 (Tue, 11 Mar 2025)

  Changed paths:
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/style/StyleScope.cpp
    M Source/WebCore/style/StyleTreeResolver.cpp
    M Source/WebCore/style/StyleTreeResolver.h

  Log Message:
  -----------
  [css-anchor-position-1] Use single bit for anchor and container interleaving
https://bugs.webkit.org/show_bug.cgi?id=289526
rdar://146753606

Reviewed by Alan Baradlay.

Replace hasUnresolvedQueryContainers and hasUnresolvedAnchorPositionedElements 
with a single
needsInterleavedLayout bit in TreeResolver and Document.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::resolveStyle):
* Source/WebCore/dom/Document.h:
(WebCore::Document::isInStyleInterleavedLayout const):
(WebCore::Document::isResolvingContainerQueries const): Deleted.
* Source/WebCore/style/StyleScope.cpp:
(WebCore::Style::Scope::invalidateForAnchorDependencies):
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolveComposedTree):
(WebCore::Style::TreeResolver::updateStateForQueryContainer):

Also unify the return enum for interleaving functions.

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

Also ensure container query invalidation is done only once per container.

(WebCore::Style::TreeResolver::updateAnchorPositioningState):
* Source/WebCore/style/StyleTreeResolver.h:
(WebCore::Style::TreeResolver::needsInterleavedLayout const):
(WebCore::Style::TreeResolver::hasUnresolvedQueryContainers const): Deleted.
(WebCore::Style::TreeResolver::hasUnresolvedAnchorPositionedElements const): 
Deleted.

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