| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann |
| 3 * <zimmermann@kde.org> | 3 * <zimmermann@kde.org> |
| 4 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
| 5 * Copyright (C) 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 6 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 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 10 matching lines...) Expand all Loading... |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "core/svg/SVGElement.h" | 25 #include "core/svg/SVGElement.h" |
| 26 | 26 |
| 27 #include "bindings/core/v8/ScriptEventListener.h" | 27 #include "bindings/core/v8/ScriptEventListener.h" |
| 28 #include "core/HTMLNames.h" | 28 #include "core/HTMLNames.h" |
| 29 #include "core/SVGNames.h" | 29 #include "core/SVGNames.h" |
| 30 #include "core/XMLNames.h" | 30 #include "core/XMLNames.h" |
| 31 #include "core/animation/AnimationStack.h" | |
| 32 #include "core/animation/DocumentAnimations.h" | 31 #include "core/animation/DocumentAnimations.h" |
| 32 #include "core/animation/EffectStack.h" |
| 33 #include "core/animation/ElementAnimations.h" | 33 #include "core/animation/ElementAnimations.h" |
| 34 #include "core/animation/InterpolationEnvironment.h" | 34 #include "core/animation/InterpolationEnvironment.h" |
| 35 #include "core/animation/InvalidatableInterpolation.h" | 35 #include "core/animation/InvalidatableInterpolation.h" |
| 36 #include "core/css/CSSCursorImageValue.h" | 36 #include "core/css/CSSCursorImageValue.h" |
| 37 #include "core/css/resolver/StyleResolver.h" | 37 #include "core/css/resolver/StyleResolver.h" |
| 38 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
| 39 #include "core/dom/ElementTraversal.h" | 39 #include "core/dom/ElementTraversal.h" |
| 40 #include "core/dom/shadow/ShadowRoot.h" | 40 #include "core/dom/shadow/ShadowRoot.h" |
| 41 #include "core/events/Event.h" | 41 #include "core/events/Event.h" |
| 42 #include "core/frame/Settings.h" | 42 #include "core/frame/Settings.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 ensureSVGRareData()->setWebAnimatedAttributesDirty(true); | 222 ensureSVGRareData()->setWebAnimatedAttributesDirty(true); |
| 223 ensureUniqueElementData().m_animatedSVGAttributesAreDirty = true; | 223 ensureUniqueElementData().m_animatedSVGAttributesAreDirty = true; |
| 224 } | 224 } |
| 225 | 225 |
| 226 static bool isSVGAttributeHandle(const PropertyHandle& propertyHandle) { | 226 static bool isSVGAttributeHandle(const PropertyHandle& propertyHandle) { |
| 227 return propertyHandle.isSVGAttribute(); | 227 return propertyHandle.isSVGAttribute(); |
| 228 } | 228 } |
| 229 | 229 |
| 230 void SVGElement::applyActiveWebAnimations() { | 230 void SVGElement::applyActiveWebAnimations() { |
| 231 ActiveInterpolationsMap activeInterpolationsMap = | 231 ActiveInterpolationsMap activeInterpolationsMap = |
| 232 AnimationStack::activeInterpolations( | 232 EffectStack::activeInterpolations( |
| 233 &elementAnimations()->animationStack(), nullptr, nullptr, | 233 &elementAnimations()->effectStack(), nullptr, nullptr, |
| 234 KeyframeEffectReadOnly::DefaultPriority, isSVGAttributeHandle); | 234 KeyframeEffectReadOnly::DefaultPriority, isSVGAttributeHandle); |
| 235 for (auto& entry : activeInterpolationsMap) { | 235 for (auto& entry : activeInterpolationsMap) { |
| 236 const QualifiedName& attribute = entry.key.svgAttribute(); | 236 const QualifiedName& attribute = entry.key.svgAttribute(); |
| 237 InterpolationEnvironment environment( | 237 InterpolationEnvironment environment( |
| 238 *this, propertyFromAttribute(attribute)->baseValueBase()); | 238 *this, propertyFromAttribute(attribute)->baseValueBase()); |
| 239 InvalidatableInterpolation::applyStack(entry.value, environment); | 239 InvalidatableInterpolation::applyStack(entry.value, environment); |
| 240 } | 240 } |
| 241 svgRareData()->setWebAnimatedAttributesDirty(false); | 241 svgRareData()->setWebAnimatedAttributesDirty(false); |
| 242 } | 242 } |
| 243 | 243 |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 visitor->trace(m_className); | 1244 visitor->trace(m_className); |
| 1245 Element::trace(visitor); | 1245 Element::trace(visitor); |
| 1246 } | 1246 } |
| 1247 | 1247 |
| 1248 const AtomicString& SVGElement::eventParameterName() { | 1248 const AtomicString& SVGElement::eventParameterName() { |
| 1249 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); | 1249 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
| 1250 return evtString; | 1250 return evtString; |
| 1251 } | 1251 } |
| 1252 | 1252 |
| 1253 } // namespace blink | 1253 } // namespace blink |
| OLD | NEW |