Commit 2b3335c3 authored by andreas.kling@nokia.com's avatar andreas.kling@nokia.com
Browse files

2011-02-16 Andreas Kling <kling@webkit.org>

        Reviewed by Dirk Schulze.

        SVGAnimateElement incorrectly uses Color::nameForRenderTreeAsText()
        https://bugs.webkit.org/show_bug.cgi?id=54547

        * svg/SVGAnimateElement.cpp:
        (WebCore::SVGAnimateElement::applyResultsToTarget):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2ac7b19b
2011-02-16 Andreas Kling <kling@webkit.org>
Reviewed by Dirk Schulze.
SVGAnimateElement incorrectly uses Color::nameForRenderTreeAsText()
https://bugs.webkit.org/show_bug.cgi?id=54547
* svg/SVGAnimateElement.cpp:
(WebCore::SVGAnimateElement::applyResultsToTarget):
2011-02-14 Mikhail Naganov <mnaganov@chromium.org>
 
Reviewed by Pavel Feldman.
......@@ -429,10 +429,9 @@ void SVGAnimateElement::resetToBaseValue(const String& baseString)
void SVGAnimateElement::applyResultsToTarget()
{
String valueToApply;
if (m_propertyType == ColorProperty) {
// FIXME: Use Color::serialized() instead.
valueToApply = m_animatedColor.nameForRenderTreeAsText();
} else if (m_propertyType == NumberProperty)
if (m_propertyType == ColorProperty)
valueToApply = m_animatedColor.serialized();
else if (m_propertyType == NumberProperty)
valueToApply = String::number(m_animatedNumber) + m_numberUnit;
else if (m_propertyType == PathProperty) {
if (!m_animatedPathPointer || m_animatedPathPointer->isEmpty())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment