[webkit-changes] [WebKit/WebKit] 0d691e: [SVG] Interval should not be created if a value in...
Ahmad Saleem
noreply at github.com
Sat May 27 16:46:02 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0d691ef763d7d68ec4d4e3d795145b8b20325343
https://github.com/WebKit/WebKit/commit/0d691ef763d7d68ec4d4e3d795145b8b20325343
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2023-05-27 (Sat, 27 May 2023)
Changed paths:
A LayoutTests/resources/SVGAnimationTestCase-testharness.js
A LayoutTests/svg/animations/animate-no-matching-end-value-expected.txt
A LayoutTests/svg/animations/animate-no-matching-end-value.html
M Source/WebCore/svg/animation/SVGSMILElement.cpp
M Source/WebCore/svg/animation/SVGSMILElement.h
Log Message:
-----------
[SVG] Interval should not be created if a value in begin-value-list doesn't have a matching value in end-value-list
https://bugs.webkit.org/show_bug.cgi?id=257105
Reviewed by Simon Fraser.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
Merge: https://src.chromium.org/viewvc/blink?view=revision&revision=157739
Here http://www.w3.org/TR/SMIL3/smil-timing.html#q90 , it says
that if all ends are before the current begin, then it is a bad interval
and current begin will be discarded.
Existing code is treating it as a valid interval with end as indefinite.
Modified the logic to be in line with the pseudo code.
* Source/WebCore/svg/animation/SVGSMILElement.cpp:
(SVGSMILElement::findInstanceTime): change 'return' value
(SVGSMILElement::resolveNextInterval): Change to 'bool'
(SVGSMILElement::seekToIntervalCorrespondingToTime): Modify 'resolveNextInterval' in 'if' condition
* Source/WebCore/svg/animation/SVGSMILElement.h: 'resolveNextInterval' to bool
* LayoutTests/resources/SVGAnimationTestCase-testharness.js: Move this to 'resource' folder as well
* LayoutTests/svg/animations/animate-no-matching-end-value.html: Add Test Case
* LayoutTests/svg/animations/animate-no-matching-end-value-expected.txt: Add Test Case Expectation
Canonical link: https://commits.webkit.org/264635@main
More information about the webkit-changes
mailing list