haikuwebkit/LayoutTests/svg/animations/svglengthlist-animation-3-e...

35 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Test animations of attributes with type SVGLengthList. * svg/animations/script-tests/svglengthlist-animation-1.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-2.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-3.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-4.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/svglengthlist-animation-1-expected.txt: Added. * svg/animations/svglengthlist-animation-1.html: Added. * svg/animations/svglengthlist-animation-2-expected.txt: Added. * svg/animations/svglengthlist-animation-2.html: Added. * svg/animations/svglengthlist-animation-3-expected.txt: Added. * svg/animations/svglengthlist-animation-3.html: Added. * svg/animations/svglengthlist-animation-4-expected.txt: Added. * svg/animations/svglengthlist-animation-4.html: Added. 2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Follow up of "SVGAnimation should use direct unit animation for SVGLength": https://bugs.webkit.org/show_bug.cgi?id=61368 This patch continues the conversion to the new concept of SVGAnimatorFactory with SVGAnimatedLengthList. Interpolated animations of glyph positions are possible now. Tests: svg/animations/svglengthlist-animation-1.html svg/animations/svglengthlist-animation-2.html svg/animations/svglengthlist-animation-3.html svg/animations/svglengthlist-animation-4.html * CMakeLists.txt: Add new file to build system. * GNUmakefile.list.am: Ditto. * WebCore.gypi: Ditto. * WebCore.pro: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * svg/SVGAllInOne.cpp: Ditto. * svg/SVGAnimateElement.cpp: Make use of AnimatedLengthList. (WebCore::SVGAnimateElement::determineAnimatedAttributeType): (WebCore::SVGAnimateElement::calculateAnimatedValue): (WebCore::SVGAnimateElement::calculateFromAndToValues): (WebCore::SVGAnimateElement::calculateFromAndByValues): (WebCore::SVGAnimateElement::resetToBaseValue): (WebCore::SVGAnimateElement::applyResultsToTarget): (WebCore::SVGAnimateElement::calculateDistance): * svg/SVGAnimatedLengthList.cpp: Added. New animator for SVGLengthList. (WebCore::SVGAnimatedLengthListAnimator::SVGAnimatedLengthListAnimator): (WebCore::SVGAnimatedLengthListAnimator::constructFromString): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndToValues): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndByValues): (WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue): (WebCore::SVGAnimatedLengthListAnimator::calculateDistance): * svg/SVGAnimatedLengthList.h: (WebCore::SVGAnimatedLengthListAnimator::~SVGAnimatedLengthListAnimator): * svg/SVGAnimatedType.cpp: Add SVGLengthList. (WebCore::SVGAnimatedType::~SVGAnimatedType): (WebCore::SVGAnimatedType::createLengthList): (WebCore::SVGAnimatedType::lengthList): (WebCore::SVGAnimatedType::valueAsString): (WebCore::SVGAnimatedType::setValueAsString): * svg/SVGAnimatedType.h: * svg/SVGAnimatorFactory.h: (WebCore::SVGAnimatorFactory::create): * svg/SVGLength.cpp: Add new constructor with LengthType, LengthMode and value. (WebCore::SVGLength::SVGLength): * svg/SVGLength.h: Canonical link: https://commits.webkit.org/79079@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@89783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-06-27 06:16:05 +00:00
SVG 1.1 dynamic animation tests
ABCD
Test 'to' animation of SVGLengthList with different count of items.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS text.x.animVal.numberOfItems is 1
PASS text.x.animVal.getItem(0).value is 50
Enable animVal support for SVGLengthList https://bugs.webkit.org/show_bug.cgi?id=80750 Reviewed by Zoltan Herczeg. Source/WebCore: Introduce animVal support for generic SVGList types. This aligns SVGListProperty with SVGProperty in terms of animVal/baseVal support. Use this to turn on animVal support for SVGLengthList. Extend all existing SVGLengthList tests to correctly differentiate between baseVal/animVal. * svg/SVGAnimateElement.cpp: (WebCore::SVGAnimateElement::calculateAnimatedValue): * svg/SVGAnimateTransformElement.cpp: (WebCore::SVGAnimateTransformElement::resetToBaseValue): (WebCore::SVGAnimateTransformElement::calculateAnimatedValue): (WebCore::SVGAnimateTransformElement::applyResultsToTarget): * svg/SVGAnimatedLengthList.cpp: (WebCore::SVGAnimatedLengthListAnimator::constructFromCopy): (WebCore): * svg/SVGAnimatedLengthList.h: (WebCore): (SVGAnimatedLengthListAnimator): * svg/SVGAnimatedType.cpp: (WebCore::SVGAnimatedType::supportsAnimVal): (WebCore::SVGAnimatedType::setVariantValue): * svg/SVGAnimatedType.h: * svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::applyAnimatedValue): * svg/properties/SVGAnimatedListPropertyTearOff.h: (SVGAnimatedListPropertyTearOff): (WebCore::SVGAnimatedListPropertyTearOff::baseVal): (WebCore::SVGAnimatedListPropertyTearOff::animVal): (WebCore::SVGAnimatedListPropertyTearOff::removeItemFromList): (WebCore::SVGAnimatedListPropertyTearOff::detachListWrappers): (WebCore::SVGAnimatedListPropertyTearOff::currentAnimatedValue): (WebCore::SVGAnimatedListPropertyTearOff::currentBaseValue): (WebCore::SVGAnimatedListPropertyTearOff::animationStarted): (WebCore::SVGAnimatedListPropertyTearOff::animationEnded): (WebCore::SVGAnimatedListPropertyTearOff::synchronizeWrappersIfNeeded): (WebCore::SVGAnimatedListPropertyTearOff::animationValueWillChange): (WebCore::SVGAnimatedListPropertyTearOff::animationValueDidChange): * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h: (WebCore::SVGAnimatedPathSegListPropertyTearOff::baseVal): (WebCore::SVGAnimatedPathSegListPropertyTearOff::animVal): * svg/properties/SVGAnimatedProperty.h: (WebCore::SVGAnimatedProperty::isAnimating): (SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::animationValueWillChange): (WebCore::SVGAnimatedProperty::animationValueDidChange): (WebCore::SVGAnimatedProperty::~SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::SVGAnimatedProperty): * svg/properties/SVGAnimatedPropertyTearOff.h: (SVGAnimatedPropertyTearOff): (WebCore::SVGAnimatedPropertyTearOff::baseVal): (WebCore::SVGAnimatedPropertyTearOff::animVal): (WebCore::SVGAnimatedPropertyTearOff::currentAnimatedValue): (WebCore::SVGAnimatedPropertyTearOff::animationStarted): (WebCore::SVGAnimatedPropertyTearOff::animationEnded): (WebCore::SVGAnimatedPropertyTearOff::animationValueWillChange): (WebCore::SVGAnimatedPropertyTearOff::animationValueDidChange): (WebCore::SVGAnimatedPropertyTearOff::SVGAnimatedPropertyTearOff): * svg/properties/SVGAnimatedTransformListPropertyTearOff.h: (WebCore::SVGAnimatedTransformListPropertyTearOff::baseVal): (WebCore::SVGAnimatedTransformListPropertyTearOff::animVal): * svg/properties/SVGListProperty.h: (WebCore::SVGListProperty::detachListWrappers): (SVGListProperty): (WebCore::SVGListProperty::setValuesAndWrappers): (WebCore::SVGListProperty::clearValues): (WebCore::SVGListProperty::clearValuesAndWrappers): (WebCore::SVGListProperty::numberOfItems): (WebCore::SVGListProperty::initializeValues): (WebCore::SVGListProperty::initializeValuesAndWrappers): (WebCore::SVGListProperty::canGetItem): (WebCore::SVGListProperty::getItemValues): (WebCore::SVGListProperty::getItemValuesAndWrappers): (WebCore::SVGListProperty::insertItemBeforeValues): (WebCore::SVGListProperty::insertItemBeforeValuesAndWrappers): (WebCore::SVGListProperty::canReplaceItem): (WebCore::SVGListProperty::replaceItemValues): (WebCore::SVGListProperty::replaceItemValuesAndWrappers): (WebCore::SVGListProperty::canRemoveItem): (WebCore::SVGListProperty::removeItemValues): (WebCore::SVGListProperty::removeItemValuesAndWrappers): (WebCore::SVGListProperty::appendItemValues): (WebCore::SVGListProperty::appendItemValuesAndWrappers): (WebCore::SVGListProperty::values): (WebCore::SVGListProperty::wrappers): (WebCore::SVGListProperty::SVGListProperty): * svg/properties/SVGListPropertyTearOff.h: (SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::create): (WebCore::SVGListPropertyTearOff::removeItemFromList): (WebCore::SVGListPropertyTearOff::clear): (WebCore::SVGListPropertyTearOff::initialize): (WebCore::SVGListPropertyTearOff::insertItemBefore): (WebCore::SVGListPropertyTearOff::replaceItem): (WebCore::SVGListPropertyTearOff::appendItem): (WebCore::SVGListPropertyTearOff::SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::commitChange): * svg/properties/SVGPathSegListPropertyTearOff.cpp: (WebCore::SVGPathSegListPropertyTearOff::clear): (WebCore::SVGPathSegListPropertyTearOff::getItem): (WebCore::SVGPathSegListPropertyTearOff::removeItem): * svg/properties/SVGPathSegListPropertyTearOff.h: (WebCore::SVGPathSegListPropertyTearOff::create): (WebCore::SVGPathSegListPropertyTearOff::removeItemFromList): (SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::initialize): (WebCore::SVGPathSegListPropertyTearOff::insertItemBefore): (WebCore::SVGPathSegListPropertyTearOff::replaceItem): (WebCore::SVGPathSegListPropertyTearOff::appendItem): (WebCore::SVGPathSegListPropertyTearOff::SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::commitChange): * svg/properties/SVGPropertyInfo.h: * svg/properties/SVGStaticListPropertyTearOff.h: (SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::clear): (WebCore::SVGStaticListPropertyTearOff::initialize): (WebCore::SVGStaticListPropertyTearOff::getItem): (WebCore::SVGStaticListPropertyTearOff::insertItemBefore): (WebCore::SVGStaticListPropertyTearOff::replaceItem): (WebCore::SVGStaticListPropertyTearOff::removeItem): (WebCore::SVGStaticListPropertyTearOff::appendItem): (WebCore::SVGStaticListPropertyTearOff::SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::commitChange): * svg/properties/SVGTransformListPropertyTearOff.h: (WebCore::SVGTransformListPropertyTearOff::create): (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix): (WebCore::SVGTransformListPropertyTearOff::consolidate): (WebCore::SVGTransformListPropertyTearOff::SVGTransformListPropertyTearOff): LayoutTests: Update test expectations after turning on animVal support for SVGLengthList. * svg/animations/script-tests/svglengthlist-animation-1.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-2.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-3.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-4.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-5.js: (sample1): (sample2): (sample3): * svg/animations/svglengthlist-animation-1-expected.txt: * svg/animations/svglengthlist-animation-2-expected.txt: * svg/animations/svglengthlist-animation-3-expected.txt: * svg/animations/svglengthlist-animation-4-expected.txt: * svg/animations/svglengthlist-animation-5-expected.txt: Canonical link: https://commits.webkit.org/98397@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-03-15 10:00:04 +00:00
PASS text.x.baseVal.numberOfItems is 1
PASS text.x.baseVal.getItem(0).value is 50
2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Test animations of attributes with type SVGLengthList. * svg/animations/script-tests/svglengthlist-animation-1.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-2.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-3.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-4.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/svglengthlist-animation-1-expected.txt: Added. * svg/animations/svglengthlist-animation-1.html: Added. * svg/animations/svglengthlist-animation-2-expected.txt: Added. * svg/animations/svglengthlist-animation-2.html: Added. * svg/animations/svglengthlist-animation-3-expected.txt: Added. * svg/animations/svglengthlist-animation-3.html: Added. * svg/animations/svglengthlist-animation-4-expected.txt: Added. * svg/animations/svglengthlist-animation-4.html: Added. 2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Follow up of "SVGAnimation should use direct unit animation for SVGLength": https://bugs.webkit.org/show_bug.cgi?id=61368 This patch continues the conversion to the new concept of SVGAnimatorFactory with SVGAnimatedLengthList. Interpolated animations of glyph positions are possible now. Tests: svg/animations/svglengthlist-animation-1.html svg/animations/svglengthlist-animation-2.html svg/animations/svglengthlist-animation-3.html svg/animations/svglengthlist-animation-4.html * CMakeLists.txt: Add new file to build system. * GNUmakefile.list.am: Ditto. * WebCore.gypi: Ditto. * WebCore.pro: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * svg/SVGAllInOne.cpp: Ditto. * svg/SVGAnimateElement.cpp: Make use of AnimatedLengthList. (WebCore::SVGAnimateElement::determineAnimatedAttributeType): (WebCore::SVGAnimateElement::calculateAnimatedValue): (WebCore::SVGAnimateElement::calculateFromAndToValues): (WebCore::SVGAnimateElement::calculateFromAndByValues): (WebCore::SVGAnimateElement::resetToBaseValue): (WebCore::SVGAnimateElement::applyResultsToTarget): (WebCore::SVGAnimateElement::calculateDistance): * svg/SVGAnimatedLengthList.cpp: Added. New animator for SVGLengthList. (WebCore::SVGAnimatedLengthListAnimator::SVGAnimatedLengthListAnimator): (WebCore::SVGAnimatedLengthListAnimator::constructFromString): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndToValues): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndByValues): (WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue): (WebCore::SVGAnimatedLengthListAnimator::calculateDistance): * svg/SVGAnimatedLengthList.h: (WebCore::SVGAnimatedLengthListAnimator::~SVGAnimatedLengthListAnimator): * svg/SVGAnimatedType.cpp: Add SVGLengthList. (WebCore::SVGAnimatedType::~SVGAnimatedType): (WebCore::SVGAnimatedType::createLengthList): (WebCore::SVGAnimatedType::lengthList): (WebCore::SVGAnimatedType::valueAsString): (WebCore::SVGAnimatedType::setValueAsString): * svg/SVGAnimatedType.h: * svg/SVGAnimatorFactory.h: (WebCore::SVGAnimatorFactory::create): * svg/SVGLength.cpp: Add new constructor with LengthType, LengthMode and value. (WebCore::SVGLength::SVGLength): * svg/SVGLength.h: Canonical link: https://commits.webkit.org/79079@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@89783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-06-27 06:16:05 +00:00
PASS text.x.animVal.numberOfItems is 4
PASS text.x.animVal.getItem(0).value is 70
PASS text.x.animVal.getItem(1).value is 80
PASS text.x.animVal.getItem(2).value is 90
PASS text.x.animVal.getItem(3).value is 110
Enable animVal support for SVGLengthList https://bugs.webkit.org/show_bug.cgi?id=80750 Reviewed by Zoltan Herczeg. Source/WebCore: Introduce animVal support for generic SVGList types. This aligns SVGListProperty with SVGProperty in terms of animVal/baseVal support. Use this to turn on animVal support for SVGLengthList. Extend all existing SVGLengthList tests to correctly differentiate between baseVal/animVal. * svg/SVGAnimateElement.cpp: (WebCore::SVGAnimateElement::calculateAnimatedValue): * svg/SVGAnimateTransformElement.cpp: (WebCore::SVGAnimateTransformElement::resetToBaseValue): (WebCore::SVGAnimateTransformElement::calculateAnimatedValue): (WebCore::SVGAnimateTransformElement::applyResultsToTarget): * svg/SVGAnimatedLengthList.cpp: (WebCore::SVGAnimatedLengthListAnimator::constructFromCopy): (WebCore): * svg/SVGAnimatedLengthList.h: (WebCore): (SVGAnimatedLengthListAnimator): * svg/SVGAnimatedType.cpp: (WebCore::SVGAnimatedType::supportsAnimVal): (WebCore::SVGAnimatedType::setVariantValue): * svg/SVGAnimatedType.h: * svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::applyAnimatedValue): * svg/properties/SVGAnimatedListPropertyTearOff.h: (SVGAnimatedListPropertyTearOff): (WebCore::SVGAnimatedListPropertyTearOff::baseVal): (WebCore::SVGAnimatedListPropertyTearOff::animVal): (WebCore::SVGAnimatedListPropertyTearOff::removeItemFromList): (WebCore::SVGAnimatedListPropertyTearOff::detachListWrappers): (WebCore::SVGAnimatedListPropertyTearOff::currentAnimatedValue): (WebCore::SVGAnimatedListPropertyTearOff::currentBaseValue): (WebCore::SVGAnimatedListPropertyTearOff::animationStarted): (WebCore::SVGAnimatedListPropertyTearOff::animationEnded): (WebCore::SVGAnimatedListPropertyTearOff::synchronizeWrappersIfNeeded): (WebCore::SVGAnimatedListPropertyTearOff::animationValueWillChange): (WebCore::SVGAnimatedListPropertyTearOff::animationValueDidChange): * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h: (WebCore::SVGAnimatedPathSegListPropertyTearOff::baseVal): (WebCore::SVGAnimatedPathSegListPropertyTearOff::animVal): * svg/properties/SVGAnimatedProperty.h: (WebCore::SVGAnimatedProperty::isAnimating): (SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::animationValueWillChange): (WebCore::SVGAnimatedProperty::animationValueDidChange): (WebCore::SVGAnimatedProperty::~SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::SVGAnimatedProperty): * svg/properties/SVGAnimatedPropertyTearOff.h: (SVGAnimatedPropertyTearOff): (WebCore::SVGAnimatedPropertyTearOff::baseVal): (WebCore::SVGAnimatedPropertyTearOff::animVal): (WebCore::SVGAnimatedPropertyTearOff::currentAnimatedValue): (WebCore::SVGAnimatedPropertyTearOff::animationStarted): (WebCore::SVGAnimatedPropertyTearOff::animationEnded): (WebCore::SVGAnimatedPropertyTearOff::animationValueWillChange): (WebCore::SVGAnimatedPropertyTearOff::animationValueDidChange): (WebCore::SVGAnimatedPropertyTearOff::SVGAnimatedPropertyTearOff): * svg/properties/SVGAnimatedTransformListPropertyTearOff.h: (WebCore::SVGAnimatedTransformListPropertyTearOff::baseVal): (WebCore::SVGAnimatedTransformListPropertyTearOff::animVal): * svg/properties/SVGListProperty.h: (WebCore::SVGListProperty::detachListWrappers): (SVGListProperty): (WebCore::SVGListProperty::setValuesAndWrappers): (WebCore::SVGListProperty::clearValues): (WebCore::SVGListProperty::clearValuesAndWrappers): (WebCore::SVGListProperty::numberOfItems): (WebCore::SVGListProperty::initializeValues): (WebCore::SVGListProperty::initializeValuesAndWrappers): (WebCore::SVGListProperty::canGetItem): (WebCore::SVGListProperty::getItemValues): (WebCore::SVGListProperty::getItemValuesAndWrappers): (WebCore::SVGListProperty::insertItemBeforeValues): (WebCore::SVGListProperty::insertItemBeforeValuesAndWrappers): (WebCore::SVGListProperty::canReplaceItem): (WebCore::SVGListProperty::replaceItemValues): (WebCore::SVGListProperty::replaceItemValuesAndWrappers): (WebCore::SVGListProperty::canRemoveItem): (WebCore::SVGListProperty::removeItemValues): (WebCore::SVGListProperty::removeItemValuesAndWrappers): (WebCore::SVGListProperty::appendItemValues): (WebCore::SVGListProperty::appendItemValuesAndWrappers): (WebCore::SVGListProperty::values): (WebCore::SVGListProperty::wrappers): (WebCore::SVGListProperty::SVGListProperty): * svg/properties/SVGListPropertyTearOff.h: (SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::create): (WebCore::SVGListPropertyTearOff::removeItemFromList): (WebCore::SVGListPropertyTearOff::clear): (WebCore::SVGListPropertyTearOff::initialize): (WebCore::SVGListPropertyTearOff::insertItemBefore): (WebCore::SVGListPropertyTearOff::replaceItem): (WebCore::SVGListPropertyTearOff::appendItem): (WebCore::SVGListPropertyTearOff::SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::commitChange): * svg/properties/SVGPathSegListPropertyTearOff.cpp: (WebCore::SVGPathSegListPropertyTearOff::clear): (WebCore::SVGPathSegListPropertyTearOff::getItem): (WebCore::SVGPathSegListPropertyTearOff::removeItem): * svg/properties/SVGPathSegListPropertyTearOff.h: (WebCore::SVGPathSegListPropertyTearOff::create): (WebCore::SVGPathSegListPropertyTearOff::removeItemFromList): (SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::initialize): (WebCore::SVGPathSegListPropertyTearOff::insertItemBefore): (WebCore::SVGPathSegListPropertyTearOff::replaceItem): (WebCore::SVGPathSegListPropertyTearOff::appendItem): (WebCore::SVGPathSegListPropertyTearOff::SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::commitChange): * svg/properties/SVGPropertyInfo.h: * svg/properties/SVGStaticListPropertyTearOff.h: (SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::clear): (WebCore::SVGStaticListPropertyTearOff::initialize): (WebCore::SVGStaticListPropertyTearOff::getItem): (WebCore::SVGStaticListPropertyTearOff::insertItemBefore): (WebCore::SVGStaticListPropertyTearOff::replaceItem): (WebCore::SVGStaticListPropertyTearOff::removeItem): (WebCore::SVGStaticListPropertyTearOff::appendItem): (WebCore::SVGStaticListPropertyTearOff::SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::commitChange): * svg/properties/SVGTransformListPropertyTearOff.h: (WebCore::SVGTransformListPropertyTearOff::create): (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix): (WebCore::SVGTransformListPropertyTearOff::consolidate): (WebCore::SVGTransformListPropertyTearOff::SVGTransformListPropertyTearOff): LayoutTests: Update test expectations after turning on animVal support for SVGLengthList. * svg/animations/script-tests/svglengthlist-animation-1.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-2.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-3.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-4.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-5.js: (sample1): (sample2): (sample3): * svg/animations/svglengthlist-animation-1-expected.txt: * svg/animations/svglengthlist-animation-2-expected.txt: * svg/animations/svglengthlist-animation-3-expected.txt: * svg/animations/svglengthlist-animation-4-expected.txt: * svg/animations/svglengthlist-animation-5-expected.txt: Canonical link: https://commits.webkit.org/98397@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-03-15 10:00:04 +00:00
PASS text.x.baseVal.numberOfItems is 1
PASS text.x.baseVal.getItem(0).value is 50
2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Test animations of attributes with type SVGLengthList. * svg/animations/script-tests/svglengthlist-animation-1.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-2.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-3.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-4.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/svglengthlist-animation-1-expected.txt: Added. * svg/animations/svglengthlist-animation-1.html: Added. * svg/animations/svglengthlist-animation-2-expected.txt: Added. * svg/animations/svglengthlist-animation-2.html: Added. * svg/animations/svglengthlist-animation-3-expected.txt: Added. * svg/animations/svglengthlist-animation-3.html: Added. * svg/animations/svglengthlist-animation-4-expected.txt: Added. * svg/animations/svglengthlist-animation-4.html: Added. 2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Follow up of "SVGAnimation should use direct unit animation for SVGLength": https://bugs.webkit.org/show_bug.cgi?id=61368 This patch continues the conversion to the new concept of SVGAnimatorFactory with SVGAnimatedLengthList. Interpolated animations of glyph positions are possible now. Tests: svg/animations/svglengthlist-animation-1.html svg/animations/svglengthlist-animation-2.html svg/animations/svglengthlist-animation-3.html svg/animations/svglengthlist-animation-4.html * CMakeLists.txt: Add new file to build system. * GNUmakefile.list.am: Ditto. * WebCore.gypi: Ditto. * WebCore.pro: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * svg/SVGAllInOne.cpp: Ditto. * svg/SVGAnimateElement.cpp: Make use of AnimatedLengthList. (WebCore::SVGAnimateElement::determineAnimatedAttributeType): (WebCore::SVGAnimateElement::calculateAnimatedValue): (WebCore::SVGAnimateElement::calculateFromAndToValues): (WebCore::SVGAnimateElement::calculateFromAndByValues): (WebCore::SVGAnimateElement::resetToBaseValue): (WebCore::SVGAnimateElement::applyResultsToTarget): (WebCore::SVGAnimateElement::calculateDistance): * svg/SVGAnimatedLengthList.cpp: Added. New animator for SVGLengthList. (WebCore::SVGAnimatedLengthListAnimator::SVGAnimatedLengthListAnimator): (WebCore::SVGAnimatedLengthListAnimator::constructFromString): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndToValues): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndByValues): (WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue): (WebCore::SVGAnimatedLengthListAnimator::calculateDistance): * svg/SVGAnimatedLengthList.h: (WebCore::SVGAnimatedLengthListAnimator::~SVGAnimatedLengthListAnimator): * svg/SVGAnimatedType.cpp: Add SVGLengthList. (WebCore::SVGAnimatedType::~SVGAnimatedType): (WebCore::SVGAnimatedType::createLengthList): (WebCore::SVGAnimatedType::lengthList): (WebCore::SVGAnimatedType::valueAsString): (WebCore::SVGAnimatedType::setValueAsString): * svg/SVGAnimatedType.h: * svg/SVGAnimatorFactory.h: (WebCore::SVGAnimatorFactory::create): * svg/SVGLength.cpp: Add new constructor with LengthType, LengthMode and value. (WebCore::SVGLength::SVGLength): * svg/SVGLength.h: Canonical link: https://commits.webkit.org/79079@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@89783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-06-27 06:16:05 +00:00
PASS text.x.animVal.numberOfItems is 4
PASS text.x.animVal.getItem(0).value is 70
PASS text.x.animVal.getItem(1).value is 80
PASS text.x.animVal.getItem(2).value is 90
PASS text.x.animVal.getItem(3).value is 110
Enable animVal support for SVGLengthList https://bugs.webkit.org/show_bug.cgi?id=80750 Reviewed by Zoltan Herczeg. Source/WebCore: Introduce animVal support for generic SVGList types. This aligns SVGListProperty with SVGProperty in terms of animVal/baseVal support. Use this to turn on animVal support for SVGLengthList. Extend all existing SVGLengthList tests to correctly differentiate between baseVal/animVal. * svg/SVGAnimateElement.cpp: (WebCore::SVGAnimateElement::calculateAnimatedValue): * svg/SVGAnimateTransformElement.cpp: (WebCore::SVGAnimateTransformElement::resetToBaseValue): (WebCore::SVGAnimateTransformElement::calculateAnimatedValue): (WebCore::SVGAnimateTransformElement::applyResultsToTarget): * svg/SVGAnimatedLengthList.cpp: (WebCore::SVGAnimatedLengthListAnimator::constructFromCopy): (WebCore): * svg/SVGAnimatedLengthList.h: (WebCore): (SVGAnimatedLengthListAnimator): * svg/SVGAnimatedType.cpp: (WebCore::SVGAnimatedType::supportsAnimVal): (WebCore::SVGAnimatedType::setVariantValue): * svg/SVGAnimatedType.h: * svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::applyAnimatedValue): * svg/properties/SVGAnimatedListPropertyTearOff.h: (SVGAnimatedListPropertyTearOff): (WebCore::SVGAnimatedListPropertyTearOff::baseVal): (WebCore::SVGAnimatedListPropertyTearOff::animVal): (WebCore::SVGAnimatedListPropertyTearOff::removeItemFromList): (WebCore::SVGAnimatedListPropertyTearOff::detachListWrappers): (WebCore::SVGAnimatedListPropertyTearOff::currentAnimatedValue): (WebCore::SVGAnimatedListPropertyTearOff::currentBaseValue): (WebCore::SVGAnimatedListPropertyTearOff::animationStarted): (WebCore::SVGAnimatedListPropertyTearOff::animationEnded): (WebCore::SVGAnimatedListPropertyTearOff::synchronizeWrappersIfNeeded): (WebCore::SVGAnimatedListPropertyTearOff::animationValueWillChange): (WebCore::SVGAnimatedListPropertyTearOff::animationValueDidChange): * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h: (WebCore::SVGAnimatedPathSegListPropertyTearOff::baseVal): (WebCore::SVGAnimatedPathSegListPropertyTearOff::animVal): * svg/properties/SVGAnimatedProperty.h: (WebCore::SVGAnimatedProperty::isAnimating): (SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::animationValueWillChange): (WebCore::SVGAnimatedProperty::animationValueDidChange): (WebCore::SVGAnimatedProperty::~SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::SVGAnimatedProperty): * svg/properties/SVGAnimatedPropertyTearOff.h: (SVGAnimatedPropertyTearOff): (WebCore::SVGAnimatedPropertyTearOff::baseVal): (WebCore::SVGAnimatedPropertyTearOff::animVal): (WebCore::SVGAnimatedPropertyTearOff::currentAnimatedValue): (WebCore::SVGAnimatedPropertyTearOff::animationStarted): (WebCore::SVGAnimatedPropertyTearOff::animationEnded): (WebCore::SVGAnimatedPropertyTearOff::animationValueWillChange): (WebCore::SVGAnimatedPropertyTearOff::animationValueDidChange): (WebCore::SVGAnimatedPropertyTearOff::SVGAnimatedPropertyTearOff): * svg/properties/SVGAnimatedTransformListPropertyTearOff.h: (WebCore::SVGAnimatedTransformListPropertyTearOff::baseVal): (WebCore::SVGAnimatedTransformListPropertyTearOff::animVal): * svg/properties/SVGListProperty.h: (WebCore::SVGListProperty::detachListWrappers): (SVGListProperty): (WebCore::SVGListProperty::setValuesAndWrappers): (WebCore::SVGListProperty::clearValues): (WebCore::SVGListProperty::clearValuesAndWrappers): (WebCore::SVGListProperty::numberOfItems): (WebCore::SVGListProperty::initializeValues): (WebCore::SVGListProperty::initializeValuesAndWrappers): (WebCore::SVGListProperty::canGetItem): (WebCore::SVGListProperty::getItemValues): (WebCore::SVGListProperty::getItemValuesAndWrappers): (WebCore::SVGListProperty::insertItemBeforeValues): (WebCore::SVGListProperty::insertItemBeforeValuesAndWrappers): (WebCore::SVGListProperty::canReplaceItem): (WebCore::SVGListProperty::replaceItemValues): (WebCore::SVGListProperty::replaceItemValuesAndWrappers): (WebCore::SVGListProperty::canRemoveItem): (WebCore::SVGListProperty::removeItemValues): (WebCore::SVGListProperty::removeItemValuesAndWrappers): (WebCore::SVGListProperty::appendItemValues): (WebCore::SVGListProperty::appendItemValuesAndWrappers): (WebCore::SVGListProperty::values): (WebCore::SVGListProperty::wrappers): (WebCore::SVGListProperty::SVGListProperty): * svg/properties/SVGListPropertyTearOff.h: (SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::create): (WebCore::SVGListPropertyTearOff::removeItemFromList): (WebCore::SVGListPropertyTearOff::clear): (WebCore::SVGListPropertyTearOff::initialize): (WebCore::SVGListPropertyTearOff::insertItemBefore): (WebCore::SVGListPropertyTearOff::replaceItem): (WebCore::SVGListPropertyTearOff::appendItem): (WebCore::SVGListPropertyTearOff::SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::commitChange): * svg/properties/SVGPathSegListPropertyTearOff.cpp: (WebCore::SVGPathSegListPropertyTearOff::clear): (WebCore::SVGPathSegListPropertyTearOff::getItem): (WebCore::SVGPathSegListPropertyTearOff::removeItem): * svg/properties/SVGPathSegListPropertyTearOff.h: (WebCore::SVGPathSegListPropertyTearOff::create): (WebCore::SVGPathSegListPropertyTearOff::removeItemFromList): (SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::initialize): (WebCore::SVGPathSegListPropertyTearOff::insertItemBefore): (WebCore::SVGPathSegListPropertyTearOff::replaceItem): (WebCore::SVGPathSegListPropertyTearOff::appendItem): (WebCore::SVGPathSegListPropertyTearOff::SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::commitChange): * svg/properties/SVGPropertyInfo.h: * svg/properties/SVGStaticListPropertyTearOff.h: (SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::clear): (WebCore::SVGStaticListPropertyTearOff::initialize): (WebCore::SVGStaticListPropertyTearOff::getItem): (WebCore::SVGStaticListPropertyTearOff::insertItemBefore): (WebCore::SVGStaticListPropertyTearOff::replaceItem): (WebCore::SVGStaticListPropertyTearOff::removeItem): (WebCore::SVGStaticListPropertyTearOff::appendItem): (WebCore::SVGStaticListPropertyTearOff::SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::commitChange): * svg/properties/SVGTransformListPropertyTearOff.h: (WebCore::SVGTransformListPropertyTearOff::create): (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix): (WebCore::SVGTransformListPropertyTearOff::consolidate): (WebCore::SVGTransformListPropertyTearOff::SVGTransformListPropertyTearOff): LayoutTests: Update test expectations after turning on animVal support for SVGLengthList. * svg/animations/script-tests/svglengthlist-animation-1.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-2.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-3.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-4.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-5.js: (sample1): (sample2): (sample3): * svg/animations/svglengthlist-animation-1-expected.txt: * svg/animations/svglengthlist-animation-2-expected.txt: * svg/animations/svglengthlist-animation-3-expected.txt: * svg/animations/svglengthlist-animation-4-expected.txt: * svg/animations/svglengthlist-animation-5-expected.txt: Canonical link: https://commits.webkit.org/98397@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-03-15 10:00:04 +00:00
PASS text.x.baseVal.numberOfItems is 1
PASS text.x.baseVal.getItem(0).value is 50
2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Test animations of attributes with type SVGLengthList. * svg/animations/script-tests/svglengthlist-animation-1.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-2.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-3.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-4.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/svglengthlist-animation-1-expected.txt: Added. * svg/animations/svglengthlist-animation-1.html: Added. * svg/animations/svglengthlist-animation-2-expected.txt: Added. * svg/animations/svglengthlist-animation-2.html: Added. * svg/animations/svglengthlist-animation-3-expected.txt: Added. * svg/animations/svglengthlist-animation-3.html: Added. * svg/animations/svglengthlist-animation-4-expected.txt: Added. * svg/animations/svglengthlist-animation-4.html: Added. 2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Follow up of "SVGAnimation should use direct unit animation for SVGLength": https://bugs.webkit.org/show_bug.cgi?id=61368 This patch continues the conversion to the new concept of SVGAnimatorFactory with SVGAnimatedLengthList. Interpolated animations of glyph positions are possible now. Tests: svg/animations/svglengthlist-animation-1.html svg/animations/svglengthlist-animation-2.html svg/animations/svglengthlist-animation-3.html svg/animations/svglengthlist-animation-4.html * CMakeLists.txt: Add new file to build system. * GNUmakefile.list.am: Ditto. * WebCore.gypi: Ditto. * WebCore.pro: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * svg/SVGAllInOne.cpp: Ditto. * svg/SVGAnimateElement.cpp: Make use of AnimatedLengthList. (WebCore::SVGAnimateElement::determineAnimatedAttributeType): (WebCore::SVGAnimateElement::calculateAnimatedValue): (WebCore::SVGAnimateElement::calculateFromAndToValues): (WebCore::SVGAnimateElement::calculateFromAndByValues): (WebCore::SVGAnimateElement::resetToBaseValue): (WebCore::SVGAnimateElement::applyResultsToTarget): (WebCore::SVGAnimateElement::calculateDistance): * svg/SVGAnimatedLengthList.cpp: Added. New animator for SVGLengthList. (WebCore::SVGAnimatedLengthListAnimator::SVGAnimatedLengthListAnimator): (WebCore::SVGAnimatedLengthListAnimator::constructFromString): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndToValues): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndByValues): (WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue): (WebCore::SVGAnimatedLengthListAnimator::calculateDistance): * svg/SVGAnimatedLengthList.h: (WebCore::SVGAnimatedLengthListAnimator::~SVGAnimatedLengthListAnimator): * svg/SVGAnimatedType.cpp: Add SVGLengthList. (WebCore::SVGAnimatedType::~SVGAnimatedType): (WebCore::SVGAnimatedType::createLengthList): (WebCore::SVGAnimatedType::lengthList): (WebCore::SVGAnimatedType::valueAsString): (WebCore::SVGAnimatedType::setValueAsString): * svg/SVGAnimatedType.h: * svg/SVGAnimatorFactory.h: (WebCore::SVGAnimatorFactory::create): * svg/SVGLength.cpp: Add new constructor with LengthType, LengthMode and value. (WebCore::SVGLength::SVGLength): * svg/SVGLength.h: Canonical link: https://commits.webkit.org/79079@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@89783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-06-27 06:16:05 +00:00
PASS text.x.animVal.numberOfItems is 1
PASS text.x.animVal.getItem(0).value is 50
Enable animVal support for SVGLengthList https://bugs.webkit.org/show_bug.cgi?id=80750 Reviewed by Zoltan Herczeg. Source/WebCore: Introduce animVal support for generic SVGList types. This aligns SVGListProperty with SVGProperty in terms of animVal/baseVal support. Use this to turn on animVal support for SVGLengthList. Extend all existing SVGLengthList tests to correctly differentiate between baseVal/animVal. * svg/SVGAnimateElement.cpp: (WebCore::SVGAnimateElement::calculateAnimatedValue): * svg/SVGAnimateTransformElement.cpp: (WebCore::SVGAnimateTransformElement::resetToBaseValue): (WebCore::SVGAnimateTransformElement::calculateAnimatedValue): (WebCore::SVGAnimateTransformElement::applyResultsToTarget): * svg/SVGAnimatedLengthList.cpp: (WebCore::SVGAnimatedLengthListAnimator::constructFromCopy): (WebCore): * svg/SVGAnimatedLengthList.h: (WebCore): (SVGAnimatedLengthListAnimator): * svg/SVGAnimatedType.cpp: (WebCore::SVGAnimatedType::supportsAnimVal): (WebCore::SVGAnimatedType::setVariantValue): * svg/SVGAnimatedType.h: * svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::applyAnimatedValue): * svg/properties/SVGAnimatedListPropertyTearOff.h: (SVGAnimatedListPropertyTearOff): (WebCore::SVGAnimatedListPropertyTearOff::baseVal): (WebCore::SVGAnimatedListPropertyTearOff::animVal): (WebCore::SVGAnimatedListPropertyTearOff::removeItemFromList): (WebCore::SVGAnimatedListPropertyTearOff::detachListWrappers): (WebCore::SVGAnimatedListPropertyTearOff::currentAnimatedValue): (WebCore::SVGAnimatedListPropertyTearOff::currentBaseValue): (WebCore::SVGAnimatedListPropertyTearOff::animationStarted): (WebCore::SVGAnimatedListPropertyTearOff::animationEnded): (WebCore::SVGAnimatedListPropertyTearOff::synchronizeWrappersIfNeeded): (WebCore::SVGAnimatedListPropertyTearOff::animationValueWillChange): (WebCore::SVGAnimatedListPropertyTearOff::animationValueDidChange): * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h: (WebCore::SVGAnimatedPathSegListPropertyTearOff::baseVal): (WebCore::SVGAnimatedPathSegListPropertyTearOff::animVal): * svg/properties/SVGAnimatedProperty.h: (WebCore::SVGAnimatedProperty::isAnimating): (SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::animationValueWillChange): (WebCore::SVGAnimatedProperty::animationValueDidChange): (WebCore::SVGAnimatedProperty::~SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::SVGAnimatedProperty): * svg/properties/SVGAnimatedPropertyTearOff.h: (SVGAnimatedPropertyTearOff): (WebCore::SVGAnimatedPropertyTearOff::baseVal): (WebCore::SVGAnimatedPropertyTearOff::animVal): (WebCore::SVGAnimatedPropertyTearOff::currentAnimatedValue): (WebCore::SVGAnimatedPropertyTearOff::animationStarted): (WebCore::SVGAnimatedPropertyTearOff::animationEnded): (WebCore::SVGAnimatedPropertyTearOff::animationValueWillChange): (WebCore::SVGAnimatedPropertyTearOff::animationValueDidChange): (WebCore::SVGAnimatedPropertyTearOff::SVGAnimatedPropertyTearOff): * svg/properties/SVGAnimatedTransformListPropertyTearOff.h: (WebCore::SVGAnimatedTransformListPropertyTearOff::baseVal): (WebCore::SVGAnimatedTransformListPropertyTearOff::animVal): * svg/properties/SVGListProperty.h: (WebCore::SVGListProperty::detachListWrappers): (SVGListProperty): (WebCore::SVGListProperty::setValuesAndWrappers): (WebCore::SVGListProperty::clearValues): (WebCore::SVGListProperty::clearValuesAndWrappers): (WebCore::SVGListProperty::numberOfItems): (WebCore::SVGListProperty::initializeValues): (WebCore::SVGListProperty::initializeValuesAndWrappers): (WebCore::SVGListProperty::canGetItem): (WebCore::SVGListProperty::getItemValues): (WebCore::SVGListProperty::getItemValuesAndWrappers): (WebCore::SVGListProperty::insertItemBeforeValues): (WebCore::SVGListProperty::insertItemBeforeValuesAndWrappers): (WebCore::SVGListProperty::canReplaceItem): (WebCore::SVGListProperty::replaceItemValues): (WebCore::SVGListProperty::replaceItemValuesAndWrappers): (WebCore::SVGListProperty::canRemoveItem): (WebCore::SVGListProperty::removeItemValues): (WebCore::SVGListProperty::removeItemValuesAndWrappers): (WebCore::SVGListProperty::appendItemValues): (WebCore::SVGListProperty::appendItemValuesAndWrappers): (WebCore::SVGListProperty::values): (WebCore::SVGListProperty::wrappers): (WebCore::SVGListProperty::SVGListProperty): * svg/properties/SVGListPropertyTearOff.h: (SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::create): (WebCore::SVGListPropertyTearOff::removeItemFromList): (WebCore::SVGListPropertyTearOff::clear): (WebCore::SVGListPropertyTearOff::initialize): (WebCore::SVGListPropertyTearOff::insertItemBefore): (WebCore::SVGListPropertyTearOff::replaceItem): (WebCore::SVGListPropertyTearOff::appendItem): (WebCore::SVGListPropertyTearOff::SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::commitChange): * svg/properties/SVGPathSegListPropertyTearOff.cpp: (WebCore::SVGPathSegListPropertyTearOff::clear): (WebCore::SVGPathSegListPropertyTearOff::getItem): (WebCore::SVGPathSegListPropertyTearOff::removeItem): * svg/properties/SVGPathSegListPropertyTearOff.h: (WebCore::SVGPathSegListPropertyTearOff::create): (WebCore::SVGPathSegListPropertyTearOff::removeItemFromList): (SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::initialize): (WebCore::SVGPathSegListPropertyTearOff::insertItemBefore): (WebCore::SVGPathSegListPropertyTearOff::replaceItem): (WebCore::SVGPathSegListPropertyTearOff::appendItem): (WebCore::SVGPathSegListPropertyTearOff::SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::commitChange): * svg/properties/SVGPropertyInfo.h: * svg/properties/SVGStaticListPropertyTearOff.h: (SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::clear): (WebCore::SVGStaticListPropertyTearOff::initialize): (WebCore::SVGStaticListPropertyTearOff::getItem): (WebCore::SVGStaticListPropertyTearOff::insertItemBefore): (WebCore::SVGStaticListPropertyTearOff::replaceItem): (WebCore::SVGStaticListPropertyTearOff::removeItem): (WebCore::SVGStaticListPropertyTearOff::appendItem): (WebCore::SVGStaticListPropertyTearOff::SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::commitChange): * svg/properties/SVGTransformListPropertyTearOff.h: (WebCore::SVGTransformListPropertyTearOff::create): (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix): (WebCore::SVGTransformListPropertyTearOff::consolidate): (WebCore::SVGTransformListPropertyTearOff::SVGTransformListPropertyTearOff): LayoutTests: Update test expectations after turning on animVal support for SVGLengthList. * svg/animations/script-tests/svglengthlist-animation-1.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-2.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-3.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-4.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/svglengthlist-animation-5.js: (sample1): (sample2): (sample3): * svg/animations/svglengthlist-animation-1-expected.txt: * svg/animations/svglengthlist-animation-2-expected.txt: * svg/animations/svglengthlist-animation-3-expected.txt: * svg/animations/svglengthlist-animation-4-expected.txt: * svg/animations/svglengthlist-animation-5-expected.txt: Canonical link: https://commits.webkit.org/98397@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-03-15 10:00:04 +00:00
PASS text.x.baseVal.numberOfItems is 1
PASS text.x.baseVal.getItem(0).value is 50
2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Test animations of attributes with type SVGLengthList. * svg/animations/script-tests/svglengthlist-animation-1.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-2.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-3.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/script-tests/svglengthlist-animation-4.js: Added. (sample1): (sample2): (sample3): (executeTest): * svg/animations/svglengthlist-animation-1-expected.txt: Added. * svg/animations/svglengthlist-animation-1.html: Added. * svg/animations/svglengthlist-animation-2-expected.txt: Added. * svg/animations/svglengthlist-animation-2.html: Added. * svg/animations/svglengthlist-animation-3-expected.txt: Added. * svg/animations/svglengthlist-animation-3.html: Added. * svg/animations/svglengthlist-animation-4-expected.txt: Added. * svg/animations/svglengthlist-animation-4.html: Added. 2011-06-26 Dirk Schulze <krit@webkit.org> Reviewed by Nikolas Zimmermann. SVGAnimatedType should support SVGLengthList animation https://bugs.webkit.org/show_bug.cgi?id=63399 Follow up of "SVGAnimation should use direct unit animation for SVGLength": https://bugs.webkit.org/show_bug.cgi?id=61368 This patch continues the conversion to the new concept of SVGAnimatorFactory with SVGAnimatedLengthList. Interpolated animations of glyph positions are possible now. Tests: svg/animations/svglengthlist-animation-1.html svg/animations/svglengthlist-animation-2.html svg/animations/svglengthlist-animation-3.html svg/animations/svglengthlist-animation-4.html * CMakeLists.txt: Add new file to build system. * GNUmakefile.list.am: Ditto. * WebCore.gypi: Ditto. * WebCore.pro: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * svg/SVGAllInOne.cpp: Ditto. * svg/SVGAnimateElement.cpp: Make use of AnimatedLengthList. (WebCore::SVGAnimateElement::determineAnimatedAttributeType): (WebCore::SVGAnimateElement::calculateAnimatedValue): (WebCore::SVGAnimateElement::calculateFromAndToValues): (WebCore::SVGAnimateElement::calculateFromAndByValues): (WebCore::SVGAnimateElement::resetToBaseValue): (WebCore::SVGAnimateElement::applyResultsToTarget): (WebCore::SVGAnimateElement::calculateDistance): * svg/SVGAnimatedLengthList.cpp: Added. New animator for SVGLengthList. (WebCore::SVGAnimatedLengthListAnimator::SVGAnimatedLengthListAnimator): (WebCore::SVGAnimatedLengthListAnimator::constructFromString): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndToValues): (WebCore::SVGAnimatedLengthListAnimator::calculateFromAndByValues): (WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue): (WebCore::SVGAnimatedLengthListAnimator::calculateDistance): * svg/SVGAnimatedLengthList.h: (WebCore::SVGAnimatedLengthListAnimator::~SVGAnimatedLengthListAnimator): * svg/SVGAnimatedType.cpp: Add SVGLengthList. (WebCore::SVGAnimatedType::~SVGAnimatedType): (WebCore::SVGAnimatedType::createLengthList): (WebCore::SVGAnimatedType::lengthList): (WebCore::SVGAnimatedType::valueAsString): (WebCore::SVGAnimatedType::setValueAsString): * svg/SVGAnimatedType.h: * svg/SVGAnimatorFactory.h: (WebCore::SVGAnimatorFactory::create): * svg/SVGLength.cpp: Add new constructor with LengthType, LengthMode and value. (WebCore::SVGLength::SVGLength): * svg/SVGLength.h: Canonical link: https://commits.webkit.org/79079@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@89783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-06-27 06:16:05 +00:00
PASS successfullyParsed is true
TEST COMPLETE