| 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 13 matching lines...) Expand all Loading... |
| 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/DocumentAnimations.h" | 31 #include "core/animation/DocumentAnimations.h" |
| 32 #include "core/animation/EffectStack.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" | |
| 35 #include "core/animation/InvalidatableInterpolation.h" | 34 #include "core/animation/InvalidatableInterpolation.h" |
| 35 #include "core/animation/SVGInterpolationEnvironment.h" |
| 36 #include "core/animation/SVGInterpolationTypesMap.h" | 36 #include "core/animation/SVGInterpolationTypesMap.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" |
| 43 #include "core/frame/csp/ContentSecurityPolicy.h" | 43 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 44 #include "core/html/HTMLElement.h" | 44 #include "core/html/HTMLElement.h" |
| 45 #include "core/inspector/ConsoleMessage.h" | 45 #include "core/inspector/ConsoleMessage.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 } | 207 } |
| 208 | 208 |
| 209 void SVGElement::ApplyActiveWebAnimations() { | 209 void SVGElement::ApplyActiveWebAnimations() { |
| 210 ActiveInterpolationsMap active_interpolations_map = | 210 ActiveInterpolationsMap active_interpolations_map = |
| 211 EffectStack::ActiveInterpolations( | 211 EffectStack::ActiveInterpolations( |
| 212 &GetElementAnimations()->GetEffectStack(), nullptr, nullptr, | 212 &GetElementAnimations()->GetEffectStack(), nullptr, nullptr, |
| 213 KeyframeEffectReadOnly::kDefaultPriority, IsSVGAttributeHandle); | 213 KeyframeEffectReadOnly::kDefaultPriority, IsSVGAttributeHandle); |
| 214 for (auto& entry : active_interpolations_map) { | 214 for (auto& entry : active_interpolations_map) { |
| 215 const QualifiedName& attribute = entry.key.SvgAttribute(); | 215 const QualifiedName& attribute = entry.key.SvgAttribute(); |
| 216 SVGInterpolationTypesMap map; | 216 SVGInterpolationTypesMap map; |
| 217 InterpolationEnvironment environment( | 217 SVGInterpolationEnvironment environment( |
| 218 map, *this, PropertyFromAttribute(attribute)->BaseValueBase()); | 218 map, *this, PropertyFromAttribute(attribute)->BaseValueBase()); |
| 219 InvalidatableInterpolation::ApplyStack(entry.value, environment); | 219 InvalidatableInterpolation::ApplyStack(entry.value, environment); |
| 220 } | 220 } |
| 221 if (!HasSVGRareData()) | 221 if (!HasSVGRareData()) |
| 222 return; | 222 return; |
| 223 SvgRareData()->SetWebAnimatedAttributesDirty(false); | 223 SvgRareData()->SetWebAnimatedAttributesDirty(false); |
| 224 } | 224 } |
| 225 | 225 |
| 226 static inline void NotifyAnimValChanged(SVGElement* target_element, | 226 static inline void NotifyAnimValChanged(SVGElement* target_element, |
| 227 const QualifiedName& attribute_name) { | 227 const QualifiedName& attribute_name) { |
| (...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 visitor->Trace(class_name_); | 1350 visitor->Trace(class_name_); |
| 1351 Element::Trace(visitor); | 1351 Element::Trace(visitor); |
| 1352 } | 1352 } |
| 1353 | 1353 |
| 1354 const AtomicString& SVGElement::EventParameterName() { | 1354 const AtomicString& SVGElement::EventParameterName() { |
| 1355 DEFINE_STATIC_LOCAL(const AtomicString, evt_string, ("evt")); | 1355 DEFINE_STATIC_LOCAL(const AtomicString, evt_string, ("evt")); |
| 1356 return evt_string; | 1356 return evt_string; |
| 1357 } | 1357 } |
| 1358 | 1358 |
| 1359 } // namespace blink | 1359 } // namespace blink |
| OLD | NEW |