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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatablePath.h

Issue 1473963004: CSS animation for SVG presentation attribute 'd' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Store CSSPathValue Created 5 years 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef AnimatablePath_h
6 #define AnimatablePath_h
7
8 #include "core/CoreExport.h"
9 #include "core/animation/animatable/AnimatableValue.h"
10 #include "core/css/CSSPathValue.h"
11
12 namespace blink {
13
14 class CORE_EXPORT AnimatablePath final : public AnimatableValue {
15 public:
16 ~AnimatablePath() override { }
17 static PassRefPtr<AnimatablePath> create(PassRefPtr<CSSPathValue> pathValue)
fs 2015/12/15 11:52:53 PassRefPtrWillBeRawPtr I think. Same for all the o
Eric Willigers 2015/12/15 22:33:55 Done.
18 {
19 return adoptRef(new AnimatablePath(pathValue));
20 }
21
22 CSSPathValue* pathValue() const { return m_pathValue.get(); }
23
24 protected:
25 PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fra ction) const override;
26 bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
27
28 private:
29 explicit AnimatablePath(PassRefPtr<CSSPathValue> pathValue)
30 : m_pathValue(pathValue)
31 {
32 ASSERT(m_pathValue);
33 }
34 AnimatableType type() const override { return TypePath; }
35 bool equalTo(const AnimatableValue*) const override;
36 const RefPtrWillBePersistent<CSSPathValue> m_pathValue;
37 };
38
39 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatablePath, isPath());
40
41 } // namespace blink
42
43 #endif // AnimatablePath_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698