| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. |
| 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 switch (m_type) { | 98 switch (m_type) { |
| 99 case AnimatedColor: | 99 case AnimatedColor: |
| 100 return SVGColorProperty::create(value.isEmpty() ? StyleColor::currentCol
or() : CSSParser::colorFromRGBColorString(value)); | 100 return SVGColorProperty::create(value.isEmpty() ? StyleColor::currentCol
or() : CSSParser::colorFromRGBColorString(value)); |
| 101 case AnimatedNumber: { | 101 case AnimatedNumber: { |
| 102 RefPtrWillBeRawPtr<SVGNumber> property = SVGNumber::create(); | 102 RefPtrWillBeRawPtr<SVGNumber> property = SVGNumber::create(); |
| 103 property->setValueAsString(value, IGNORE_EXCEPTION); | 103 property->setValueAsString(value, IGNORE_EXCEPTION); |
| 104 return property.release(); | 104 return property.release(); |
| 105 } | 105 } |
| 106 case AnimatedLength: { | 106 case AnimatedLength: { |
| 107 RefPtrWillBeRawPtr<SVGLength> property = SVGLength::create(LengthModeOth
er); | 107 RefPtrWillBeRawPtr<SVGLength> property = SVGLength::create(); |
| 108 property->setValueAsString(value, IGNORE_EXCEPTION); | 108 property->setValueAsString(value, IGNORE_EXCEPTION); |
| 109 return property.release(); | 109 return property.release(); |
| 110 } | 110 } |
| 111 case AnimatedLengthList: { | 111 case AnimatedLengthList: { |
| 112 RefPtrWillBeRawPtr<SVGLengthList> property = SVGLengthList::create(Lengt
hModeOther); | 112 RefPtrWillBeRawPtr<SVGLengthList> property = SVGLengthList::create(); |
| 113 property->setValueAsString(value, IGNORE_EXCEPTION); | 113 property->setValueAsString(value, IGNORE_EXCEPTION); |
| 114 return property.release(); | 114 return property.release(); |
| 115 } | 115 } |
| 116 case AnimatedString: { | 116 case AnimatedString: { |
| 117 RefPtrWillBeRawPtr<SVGString> property = SVGString::create(); | 117 RefPtrWillBeRawPtr<SVGString> property = SVGString::create(); |
| 118 property->setValueAsString(value, IGNORE_EXCEPTION); | 118 property->setValueAsString(value, IGNORE_EXCEPTION); |
| 119 return property.release(); | 119 return property.release(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 // These types don't appear in the table in SVGElement::animatedPropertyType
ForCSSAttribute() and thus don't need support. | 122 // These types don't appear in the table in SVGElement::animatedPropertyType
ForCSSAttribute() and thus don't need support. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 } | 263 } |
| 264 | 264 |
| 265 DEFINE_TRACE(SVGAnimatedTypeAnimator) | 265 DEFINE_TRACE(SVGAnimatedTypeAnimator) |
| 266 { | 266 { |
| 267 visitor->trace(m_animationElement); | 267 visitor->trace(m_animationElement); |
| 268 visitor->trace(m_contextElement); | 268 visitor->trace(m_contextElement); |
| 269 visitor->trace(m_animatedProperty); | 269 visitor->trace(m_animatedProperty); |
| 270 } | 270 } |
| 271 | 271 |
| 272 } | 272 } |
| OLD | NEW |