| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "config.h" | 23 #include "config.h" |
| 24 | 24 |
| 25 #include "core/svg/SVGAnimateTransformElement.h" | 25 #include "core/svg/SVGAnimateTransformElement.h" |
| 26 | 26 |
| 27 #include "SVGNames.h" | 27 #include "SVGNames.h" |
| 28 #include "core/svg/SVGParserUtilities.h" | 28 #include "core/svg/SVGParserUtilities.h" |
| 29 #include "core/svg/SVGTransform.h" | 29 #include "core/svg/SVGTransform.h" |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 inline SVGAnimateTransformElement::SVGAnimateTransformElement(const QualifiedNam
e& tagName, Document& document) | 33 inline SVGAnimateTransformElement::SVGAnimateTransformElement(Document& document
) |
| 34 : SVGAnimateElement(tagName, document) | 34 : SVGAnimateElement(SVGNames::animateTransformTag, document) |
| 35 , m_type(SVGTransform::SVG_TRANSFORM_UNKNOWN) | 35 , m_type(SVGTransform::SVG_TRANSFORM_UNKNOWN) |
| 36 { | 36 { |
| 37 ASSERT(hasTagName(SVGNames::animateTransformTag)); | |
| 38 ScriptWrappable::init(this); | 37 ScriptWrappable::init(this); |
| 39 } | 38 } |
| 40 | 39 |
| 41 PassRefPtr<SVGAnimateTransformElement> SVGAnimateTransformElement::create(const
QualifiedName& tagName, Document& document) | 40 PassRefPtr<SVGAnimateTransformElement> SVGAnimateTransformElement::create(Docume
nt& document) |
| 42 { | 41 { |
| 43 return adoptRef(new SVGAnimateTransformElement(tagName, document)); | 42 return adoptRef(new SVGAnimateTransformElement(document)); |
| 44 } | 43 } |
| 45 | 44 |
| 46 bool SVGAnimateTransformElement::hasValidAttributeType() | 45 bool SVGAnimateTransformElement::hasValidAttributeType() |
| 47 { | 46 { |
| 48 SVGElement* targetElement = this->targetElement(); | 47 SVGElement* targetElement = this->targetElement(); |
| 49 if (!targetElement) | 48 if (!targetElement) |
| 50 return false; | 49 return false; |
| 51 | 50 |
| 52 if (attributeType() == AttributeTypeCSS) | 51 if (attributeType() == AttributeTypeCSS) |
| 53 return false; | 52 return false; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 74 m_type = parseTransformType(value); | 73 m_type = parseTransformType(value); |
| 75 if (m_type == SVGTransform::SVG_TRANSFORM_MATRIX) | 74 if (m_type == SVGTransform::SVG_TRANSFORM_MATRIX) |
| 76 m_type = SVGTransform::SVG_TRANSFORM_UNKNOWN; | 75 m_type = SVGTransform::SVG_TRANSFORM_UNKNOWN; |
| 77 return; | 76 return; |
| 78 } | 77 } |
| 79 | 78 |
| 80 ASSERT_NOT_REACHED(); | 79 ASSERT_NOT_REACHED(); |
| 81 } | 80 } |
| 82 | 81 |
| 83 } | 82 } |
| OLD | NEW |