OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef InterpolationEnvironment_h | 5 #ifndef InterpolationEnvironment_h |
6 #define InterpolationEnvironment_h | 6 #define InterpolationEnvironment_h |
7 | 7 |
| 8 #include "core/svg/SVGElement.h" |
| 9 #include "core/svg/properties/SVGProperty.h" |
8 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
9 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
10 | 12 |
11 namespace blink { | 13 namespace blink { |
12 | 14 |
13 class StyleResolverState; | 15 class StyleResolverState; |
14 class SVGPropertyBase; | |
15 class SVGElement; | |
16 | 16 |
17 class InterpolationEnvironment { | 17 class InterpolationEnvironment { |
18 STACK_ALLOCATED(); | 18 STACK_ALLOCATED(); |
19 public: | 19 public: |
20 explicit InterpolationEnvironment(StyleResolverState& state) | 20 explicit InterpolationEnvironment(StyleResolverState& state) |
21 : m_state(&state) | 21 : m_state(&state) |
22 , m_svgElement(nullptr) | 22 , m_svgElement(nullptr) |
23 , m_svgBaseValue(nullptr) | 23 , m_svgBaseValue(nullptr) |
24 { } | 24 { } |
25 | 25 |
(...skipping 13 matching lines...) Expand all Loading... |
39 | 39 |
40 private: | 40 private: |
41 StyleResolverState* m_state; | 41 StyleResolverState* m_state; |
42 RawPtrWillBeMember<SVGElement> m_svgElement; | 42 RawPtrWillBeMember<SVGElement> m_svgElement; |
43 RawPtrWillBeMember<const SVGPropertyBase> m_svgBaseValue; | 43 RawPtrWillBeMember<const SVGPropertyBase> m_svgBaseValue; |
44 }; | 44 }; |
45 | 45 |
46 } // namespace blink | 46 } // namespace blink |
47 | 47 |
48 #endif // InterpolationEnvironment_h | 48 #endif // InterpolationEnvironment_h |
OLD | NEW |