| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 } | 196 } |
| 197 | 197 |
| 198 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createPreserveAspectRatio(SVGPreser
veAspectRatio* preserveAspectRatio) | 198 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createPreserveAspectRatio(SVGPreser
veAspectRatio* preserveAspectRatio) |
| 199 { | 199 { |
| 200 ASSERT(preserveAspectRatio); | 200 ASSERT(preserveAspectRatio); |
| 201 OwnPtr<SVGAnimatedType> animatedType = adoptPtr(new SVGAnimatedType(Animated
PreserveAspectRatio)); | 201 OwnPtr<SVGAnimatedType> animatedType = adoptPtr(new SVGAnimatedType(Animated
PreserveAspectRatio)); |
| 202 animatedType->m_data.preserveAspectRatio = preserveAspectRatio; | 202 animatedType->m_data.preserveAspectRatio = preserveAspectRatio; |
| 203 return animatedType.release(); | 203 return animatedType.release(); |
| 204 } | 204 } |
| 205 | 205 |
| 206 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createRect(FloatRect* rect) | 206 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createRect(SVGRect* rect) |
| 207 { | 207 { |
| 208 ASSERT(rect); | 208 ASSERT(rect); |
| 209 OwnPtr<SVGAnimatedType> animatedType = adoptPtr(new SVGAnimatedType(Animated
Rect)); | 209 OwnPtr<SVGAnimatedType> animatedType = adoptPtr(new SVGAnimatedType(Animated
Rect)); |
| 210 animatedType->m_data.rect = rect; | 210 animatedType->m_data.rect = rect; |
| 211 return animatedType.release(); | 211 return animatedType.release(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createString(String* string) | 214 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createString(String* string) |
| 215 { | 215 { |
| 216 ASSERT(string); | 216 ASSERT(string); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 return true; | 321 return true; |
| 322 } | 322 } |
| 323 | 323 |
| 324 bool SVGAnimatedType::supportsAnimVal(AnimatedPropertyType type) | 324 bool SVGAnimatedType::supportsAnimVal(AnimatedPropertyType type) |
| 325 { | 325 { |
| 326 // AnimatedColor is only used for CSS property animations. | 326 // AnimatedColor is only used for CSS property animations. |
| 327 return type != AnimatedUnknown && type != AnimatedColor; | 327 return type != AnimatedUnknown && type != AnimatedColor; |
| 328 } | 328 } |
| 329 | 329 |
| 330 } // namespace WebCore | 330 } // namespace WebCore |
| OLD | NEW |