| 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 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "config.h" | 25 #include "config.h" |
| 26 | 26 |
| 27 #include "core/svg/SVGAnimationElement.h" | 27 #include "core/svg/SVGAnimationElement.h" |
| 28 | 28 |
| 29 #include "CSSPropertyNames.h" | 29 #include "CSSPropertyNames.h" |
| 30 #include "SVGNames.h" | 30 #include "SVGNames.h" |
| 31 #include "core/css/CSSComputedStyleDeclaration.h" | 31 #include "core/css/CSSComputedStyleDeclaration.h" |
| 32 #include "core/css/CSSParser.h" | 32 #include "core/css/CSSParser.h" |
| 33 #include "core/dom/Attribute.h" | |
| 34 #include "core/dom/Document.h" | |
| 35 #include "core/platform/FloatConversion.h" | 33 #include "core/platform/FloatConversion.h" |
| 36 #include "core/rendering/RenderObject.h" | |
| 37 #include "core/svg/SVGAnimateElement.h" | 34 #include "core/svg/SVGAnimateElement.h" |
| 38 #include "core/svg/SVGElementInstance.h" | |
| 39 #include "core/svg/SVGParserUtilities.h" | 35 #include "core/svg/SVGParserUtilities.h" |
| 40 #include "core/svg/SVGStyledElement.h" | 36 #include "core/svg/SVGStyledElement.h" |
| 41 #include <wtf/MathExtras.h> | 37 #include <wtf/MathExtras.h> |
| 42 | 38 |
| 43 namespace WebCore { | 39 namespace WebCore { |
| 44 | 40 |
| 45 // Animated property definitions | 41 // Animated property definitions |
| 46 DEFINE_ANIMATED_BOOLEAN(SVGAnimationElement, SVGNames::externalResourcesRequired
Attr, ExternalResourcesRequired, externalResourcesRequired) | 42 DEFINE_ANIMATED_BOOLEAN(SVGAnimationElement, SVGNames::externalResourcesRequired
Attr, ExternalResourcesRequired, externalResourcesRequired) |
| 47 | 43 |
| 48 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAnimationElement) | 44 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAnimationElement) |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 SVGSMILElement::setAttributeName(attributeName); | 688 SVGSMILElement::setAttributeName(attributeName); |
| 693 checkInvalidCSSAttributeType(targetElement()); | 689 checkInvalidCSSAttributeType(targetElement()); |
| 694 } | 690 } |
| 695 | 691 |
| 696 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) | 692 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) |
| 697 { | 693 { |
| 698 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); | 694 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); |
| 699 } | 695 } |
| 700 | 696 |
| 701 } | 697 } |
| OLD | NEW |