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

Side by Side Diff: third_party/WebKit/Source/core/animation/SampledEffect.cpp

Issue 1607633003: Code cleanup: Remove SVGInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused assertion variable to make release compile Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/SampledEffect.h" 5 #include "core/animation/SampledEffect.h"
6 6
7 #include "core/animation/InterpolationEnvironment.h"
8 #include "core/animation/InvalidatableInterpolation.h"
9 #include "core/animation/SVGInterpolation.h"
10 #include "core/svg/SVGElement.h"
11
12 namespace blink { 7 namespace blink {
13 8
14 SampledEffect::SampledEffect(KeyframeEffect* effect) 9 SampledEffect::SampledEffect(KeyframeEffect* effect)
15 : m_effect(effect) 10 : m_effect(effect)
16 , m_animation(effect->animation()) 11 , m_animation(effect->animation())
17 , m_sequenceNumber(effect->animation()->sequenceNumber()) 12 , m_sequenceNumber(effect->animation()->sequenceNumber())
18 , m_priority(effect->priority()) 13 , m_priority(effect->priority())
19 { 14 {
20 } 15 }
21 16
22 void SampledEffect::clear() 17 void SampledEffect::clear()
23 { 18 {
24 m_effect = nullptr; 19 m_effect = nullptr;
25 m_animation = nullptr; 20 m_animation = nullptr;
26 m_interpolations.clear(); 21 m_interpolations.clear();
27 } 22 }
28 23
29 DEFINE_TRACE(SampledEffect) 24 DEFINE_TRACE(SampledEffect)
30 { 25 {
31 visitor->trace(m_effect); 26 visitor->trace(m_effect);
32 visitor->trace(m_animation); 27 visitor->trace(m_animation);
33 } 28 }
34 29
35 } // namespace blink 30 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698