Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scroll-animations] implement parsing support for scroll-timeline and…
… its longhand properties https://bugs.webkit.org/show_bug.cgi?id=265302 rdar://118783919 Reviewed by Tim Nguyen. Add parsing support for the `scroll-timeline` shorthand and its two coordinating list base property longhands `scroll-timeline-name` and `scroll-timeline-axis` as specified in https://drafts.csswg.org/scroll-animations-1/#scroll-timelines-named. Two WPT failures remain for `scroll-timeline` parsing and a WPT issue has been filed to determine whether the test is correct: web-platform-tests/wpt#43336. * LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/scroll-timeline-axis-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/scroll-timeline-axis-parsing-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/scroll-timeline-name-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/scroll-timeline-name-parsing-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/scroll-animations/css/scroll-timeline-shorthand-expected.txt: * LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt: * LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * Source/WebCore/Headers.cmake: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * Source/WebCore/animation/ScrollTimeline.cpp: (WebCore::ScrollTimeline::create): (WebCore::ScrollTimeline::ScrollTimeline): * Source/WebCore/animation/ScrollTimeline.h: * Source/WebCore/css/CSSPrimitiveValueMappings.h: * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/ComputedStyleExtractor.cpp: (WebCore::valueForScrollTimelineAxis): (WebCore::valueForScrollTimelineName): (WebCore::scrollTimelineShorthandValue): (WebCore::ComputedStyleExtractor::valueForPropertyInStyle const): * Source/WebCore/css/ShorthandSerializer.cpp: (WebCore::ShorthandSerializer::serialize): (WebCore::ShorthandSerializer::serializeLayered const): * Source/WebCore/css/parser/CSSPropertyParser.cpp: (WebCore::initialValueForLonghand): (WebCore::CSSPropertyParser::consumeScrollTimelineShorthand): (WebCore::CSSPropertyParser::parseShorthand): * Source/WebCore/css/parser/CSSPropertyParser.h: * Source/WebCore/rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::adjustScrollTimelines): * Source/WebCore/rendering/style/RenderStyle.h: (WebCore::RenderStyle::initialScrollTimelineAxes): (WebCore::RenderStyle::initialScrollTimelineNames): * Source/WebCore/rendering/style/RenderStyleInlines.h: (WebCore::RenderStyle::scrollTimelines const): (WebCore::RenderStyle::scrollTimelineAxes const): (WebCore::RenderStyle::scrollTimelineNames const): * Source/WebCore/rendering/style/RenderStyleSetters.h: (WebCore::RenderStyle::setScrollTimelineAxes): (WebCore::RenderStyle::setScrollTimelineNames): * Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator== const): * Source/WebCore/rendering/style/StyleRareNonInheritedData.h: * Source/WebCore/style/StyleAdjuster.cpp: (WebCore::Style::Adjuster::adjust const): * Source/WebCore/style/StyleBuilderConverter.h: (WebCore::Style::BuilderConverter::convertScrollTimelineName): (WebCore::Style::BuilderConverter::convertScrollTimelineAxis): Canonical link: https://commits.webkit.org/271189@main
- Loading branch information