OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "core/svg/SVGElement.h" | 24 #include "core/svg/SVGElement.h" |
25 | 25 |
26 #include "bindings/core/v8/ScriptEventListener.h" | 26 #include "bindings/core/v8/ScriptEventListener.h" |
27 #include "core/HTMLNames.h" | 27 #include "core/HTMLNames.h" |
28 #include "core/SVGNames.h" | 28 #include "core/SVGNames.h" |
29 #include "core/XMLNames.h" | 29 #include "core/XMLNames.h" |
30 #include "core/animation/AnimationStack.h" | 30 #include "core/animation/AnimationStack.h" |
31 #include "core/animation/DocumentAnimations.h" | 31 #include "core/animation/DocumentAnimations.h" |
32 #include "core/animation/ElementAnimations.h" | 32 #include "core/animation/ElementAnimations.h" |
33 #include "core/animation/InterpolationEnvironment.h" | 33 #include "core/animation/InterpolationEnvironment.h" |
34 #include "core/animation/InvalidatableInterpolation.h" | 34 #include "core/animation/StackableInterpolation.h" |
35 #include "core/css/CSSCursorImageValue.h" | 35 #include "core/css/CSSCursorImageValue.h" |
36 #include "core/css/resolver/StyleResolver.h" | 36 #include "core/css/resolver/StyleResolver.h" |
37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
38 #include "core/dom/ElementTraversal.h" | 38 #include "core/dom/ElementTraversal.h" |
39 #include "core/dom/shadow/ShadowRoot.h" | 39 #include "core/dom/shadow/ShadowRoot.h" |
40 #include "core/events/Event.h" | 40 #include "core/events/Event.h" |
41 #include "core/frame/Settings.h" | 41 #include "core/frame/Settings.h" |
42 #include "core/html/HTMLElement.h" | 42 #include "core/html/HTMLElement.h" |
43 #include "core/layout/LayoutObject.h" | 43 #include "core/layout/LayoutObject.h" |
44 #include "core/layout/svg/LayoutSVGResourceContainer.h" | 44 #include "core/layout/svg/LayoutSVGResourceContainer.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 return propertyHandle.isSVGAttribute(); | 225 return propertyHandle.isSVGAttribute(); |
226 } | 226 } |
227 | 227 |
228 void SVGElement::applyActiveWebAnimations() | 228 void SVGElement::applyActiveWebAnimations() |
229 { | 229 { |
230 ActiveInterpolationsMap activeInterpolationsMap = AnimationStack::activeInte
rpolations( | 230 ActiveInterpolationsMap activeInterpolationsMap = AnimationStack::activeInte
rpolations( |
231 &elementAnimations()->animationStack(), nullptr, nullptr, KeyframeEffect
::DefaultPriority, isSVGAttributeHandle); | 231 &elementAnimations()->animationStack(), nullptr, nullptr, KeyframeEffect
::DefaultPriority, isSVGAttributeHandle); |
232 for (auto& entry : activeInterpolationsMap) { | 232 for (auto& entry : activeInterpolationsMap) { |
233 const QualifiedName& attribute = entry.key.svgAttribute(); | 233 const QualifiedName& attribute = entry.key.svgAttribute(); |
234 InterpolationEnvironment environment(*this, propertyFromAttribute(attrib
ute)->baseValueBase()); | 234 InterpolationEnvironment environment(*this, propertyFromAttribute(attrib
ute)->baseValueBase()); |
235 InvalidatableInterpolation::applyStack(entry.value, environment); | 235 StackableInterpolation::applyStack(entry.value, environment); |
236 } | 236 } |
237 svgRareData()->setWebAnimatedAttributesDirty(false); | 237 svgRareData()->setWebAnimatedAttributesDirty(false); |
238 } | 238 } |
239 | 239 |
240 template<typename T> | 240 template<typename T> |
241 static void updateInstancesAnimatedAttribute(SVGElement* element, const Qualifie
dName& attribute, T callback) | 241 static void updateInstancesAnimatedAttribute(SVGElement* element, const Qualifie
dName& attribute, T callback) |
242 { | 242 { |
243 SVGElement::InstanceUpdateBlocker blocker(element); | 243 SVGElement::InstanceUpdateBlocker blocker(element); |
244 for (SVGElement* instance : SVGAnimateElement::findElementInstances(element)
) { | 244 for (SVGElement* instance : SVGAnimateElement::findElementInstances(element)
) { |
245 if (SVGAnimatedPropertyBase* animatedProperty = instance->propertyFromAt
tribute(attribute)) { | 245 if (SVGAnimatedPropertyBase* animatedProperty = instance->propertyFromAt
tribute(attribute)) { |
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 Element::trace(visitor); | 1169 Element::trace(visitor); |
1170 } | 1170 } |
1171 | 1171 |
1172 const AtomicString& SVGElement::eventParameterName() | 1172 const AtomicString& SVGElement::eventParameterName() |
1173 { | 1173 { |
1174 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); | 1174 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
1175 return evtString; | 1175 return evtString; |
1176 } | 1176 } |
1177 | 1177 |
1178 } // namespace blink | 1178 } // namespace blink |
OLD | NEW |