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 14 matching lines...) Expand all Loading... |
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/InvalidatableInterpolation.h" |
| 35 #include "core/animation/KeyframeEffectReadOnly.h" |
35 #include "core/css/CSSCursorImageValue.h" | 36 #include "core/css/CSSCursorImageValue.h" |
36 #include "core/css/resolver/StyleResolver.h" | 37 #include "core/css/resolver/StyleResolver.h" |
37 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
38 #include "core/dom/ElementTraversal.h" | 39 #include "core/dom/ElementTraversal.h" |
39 #include "core/dom/shadow/ShadowRoot.h" | 40 #include "core/dom/shadow/ShadowRoot.h" |
40 #include "core/events/Event.h" | 41 #include "core/events/Event.h" |
41 #include "core/frame/Settings.h" | 42 #include "core/frame/Settings.h" |
42 #include "core/html/HTMLElement.h" | 43 #include "core/html/HTMLElement.h" |
43 #include "core/layout/LayoutObject.h" | 44 #include "core/layout/LayoutObject.h" |
44 #include "core/layout/svg/LayoutSVGResourceContainer.h" | 45 #include "core/layout/svg/LayoutSVGResourceContainer.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 221 } |
221 | 222 |
222 static bool isSVGAttributeHandle(const PropertyHandle& propertyHandle) | 223 static bool isSVGAttributeHandle(const PropertyHandle& propertyHandle) |
223 { | 224 { |
224 return propertyHandle.isSVGAttribute(); | 225 return propertyHandle.isSVGAttribute(); |
225 } | 226 } |
226 | 227 |
227 void SVGElement::applyActiveWebAnimations() | 228 void SVGElement::applyActiveWebAnimations() |
228 { | 229 { |
229 ActiveInterpolationsMap activeInterpolationsMap = AnimationStack::activeInte
rpolations( | 230 ActiveInterpolationsMap activeInterpolationsMap = AnimationStack::activeInte
rpolations( |
230 &elementAnimations()->animationStack(), nullptr, nullptr, KeyframeEffect
::DefaultPriority, isSVGAttributeHandle); | 231 &elementAnimations()->animationStack(), nullptr, nullptr, KeyframeEffect
ReadOnly::DefaultPriority, isSVGAttributeHandle); |
231 for (auto& entry : activeInterpolationsMap) { | 232 for (auto& entry : activeInterpolationsMap) { |
232 const QualifiedName& attribute = entry.key.svgAttribute(); | 233 const QualifiedName& attribute = entry.key.svgAttribute(); |
233 InterpolationEnvironment environment(*this, propertyFromAttribute(attrib
ute)->baseValueBase()); | 234 InterpolationEnvironment environment(*this, propertyFromAttribute(attrib
ute)->baseValueBase()); |
234 InvalidatableInterpolation::applyStack(entry.value, environment); | 235 InvalidatableInterpolation::applyStack(entry.value, environment); |
235 } | 236 } |
236 svgRareData()->setWebAnimatedAttributesDirty(false); | 237 svgRareData()->setWebAnimatedAttributesDirty(false); |
237 } | 238 } |
238 | 239 |
239 static inline void notifyAnimValChanged(SVGElement* targetElement, const Qualifi
edName& attributeName) | 240 static inline void notifyAnimValChanged(SVGElement* targetElement, const Qualifi
edName& attributeName) |
240 { | 241 { |
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 Element::trace(visitor); | 1209 Element::trace(visitor); |
1209 } | 1210 } |
1210 | 1211 |
1211 const AtomicString& SVGElement::eventParameterName() | 1212 const AtomicString& SVGElement::eventParameterName() |
1212 { | 1213 { |
1213 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); | 1214 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
1214 return evtString; | 1215 return evtString; |
1215 } | 1216 } |
1216 | 1217 |
1217 } // namespace blink | 1218 } // namespace blink |
OLD | NEW |