Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.cpp

Issue 2394993002: Move Priority enum/field to KeyframeEffectReadOnly (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 226
227 static bool isSVGAttributeHandle(const PropertyHandle& propertyHandle) { 227 static bool isSVGAttributeHandle(const PropertyHandle& propertyHandle) {
228 return propertyHandle.isSVGAttribute(); 228 return propertyHandle.isSVGAttribute();
229 } 229 }
230 230
231 void SVGElement::applyActiveWebAnimations() { 231 void SVGElement::applyActiveWebAnimations() {
232 ActiveInterpolationsMap activeInterpolationsMap = 232 ActiveInterpolationsMap activeInterpolationsMap =
233 AnimationStack::activeInterpolations( 233 AnimationStack::activeInterpolations(
234 &elementAnimations()->animationStack(), nullptr, nullptr, 234 &elementAnimations()->animationStack(), nullptr, nullptr,
235 KeyframeEffect::DefaultPriority, isSVGAttributeHandle); 235 KeyframeEffectReadOnly::DefaultPriority, isSVGAttributeHandle);
236 for (auto& entry : activeInterpolationsMap) { 236 for (auto& entry : activeInterpolationsMap) {
237 const QualifiedName& attribute = entry.key.svgAttribute(); 237 const QualifiedName& attribute = entry.key.svgAttribute();
238 InterpolationEnvironment environment( 238 InterpolationEnvironment environment(
239 *this, propertyFromAttribute(attribute)->baseValueBase()); 239 *this, propertyFromAttribute(attribute)->baseValueBase());
240 InvalidatableInterpolation::applyStack(entry.value, environment); 240 InvalidatableInterpolation::applyStack(entry.value, environment);
241 } 241 }
242 svgRareData()->setWebAnimatedAttributesDirty(false); 242 svgRareData()->setWebAnimatedAttributesDirty(false);
243 } 243 }
244 244
245 static inline void notifyAnimValChanged(SVGElement* targetElement, 245 static inline void notifyAnimValChanged(SVGElement* targetElement,
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 visitor->trace(m_className); 1230 visitor->trace(m_className);
1231 Element::trace(visitor); 1231 Element::trace(visitor);
1232 } 1232 }
1233 1233
1234 const AtomicString& SVGElement::eventParameterName() { 1234 const AtomicString& SVGElement::eventParameterName() {
1235 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); 1235 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt"));
1236 return evtString; 1236 return evtString;
1237 } 1237 }
1238 1238
1239 } // namespace blink 1239 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698