Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Invalidate animation keyframes using container units on when containe…
…r size changes https://bugs.webkit.org/show_bug.cgi?id=241546 Reviewed by Antoine Quint. Container size change also changes the interpretation of container units used in keyframes. * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-units-animation-expected.txt: * Source/WebCore/dom/Element.cpp: (WebCore::Element::invalidateForQueryContainerSizeChange): (WebCore::Element::needsUpdateQueryContainerDependentStyle const): (WebCore::Element::clearNeedsUpdateQueryContainerDependentStyle): (WebCore::Element::invalidateForQueryContainerChange): Deleted. Add a new bit that tells when a container has been resized. * Source/WebCore/dom/Element.h: * Source/WebCore/dom/Node.h: * Source/WebCore/rendering/style/KeyframeList.cpp: (WebCore::KeyframeList::usesContainerUnits const): Check for container unit use. * Source/WebCore/rendering/style/KeyframeList.h: * Source/WebCore/style/StyleScope.cpp: (WebCore::Style::Scope::updateQueryContainerState): * Source/WebCore/style/StyleTreeResolver.cpp: (WebCore::Style::TreeResolver::createAnimatedElementUpdate): Invalidate the keyframes if needed when computing the style. (WebCore::Style::TreeResolver::pushParent): Track if the subtree is withing a resized container. * Source/WebCore/style/StyleTreeResolver.h: * Source/WebCore/style/Styleable.cpp: (WebCore::Styleable::queryContainerDidChange const): * Source/WebCore/style/Styleable.h: Canonical link: https://commits.webkit.org/251574@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
11 changed files
with
65 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,14 +1,14 @@ | ||
|
|
||
| PASS Animation using cqw unit | ||
| FAIL Animation using cqw unit responds to changing container size assert_equals: expected "90px" but got "60px" | ||
| PASS Animation using cqw unit responds to changing container size | ||
| PASS Animation using cqh unit | ||
| FAIL Animation using cqh unit responds to changing container size assert_equals: expected "90px" but got "60px" | ||
| PASS Animation using cqh unit responds to changing container size | ||
| PASS Animation using cqi unit | ||
| FAIL Animation using cqi unit responds to changing container size assert_equals: expected "90px" but got "60px" | ||
| PASS Animation using cqi unit responds to changing container size | ||
| PASS Animation using cqb unit | ||
| FAIL Animation using cqb unit responds to changing container size assert_equals: expected "90px" but got "60px" | ||
| PASS Animation using cqb unit responds to changing container size | ||
| PASS Animation using cqmin unit | ||
| FAIL Animation using cqmin unit responds to changing container size assert_equals: expected "90px" but got "60px" | ||
| PASS Animation using cqmin unit responds to changing container size | ||
| PASS Animation using cqmax unit | ||
| FAIL Animation using cqmax unit responds to changing container size assert_equals: expected "90px" but got "60px" | ||
| PASS Animation using cqmax unit responds to changing container size | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters