| 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 "platform/heap/Handle.h" |
| 8 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 class StyleResolverState; | 13 class StyleResolverState; |
| 13 class SVGPropertyBase; | 14 class SVGPropertyBase; |
| 14 class SVGElement; | 15 class SVGElement; |
| 15 | 16 |
| 16 class InterpolationEnvironment { | 17 class InterpolationEnvironment { |
| 17 STACK_ALLOCATED(); | 18 STACK_ALLOCATED(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 StyleResolverState& state() { ASSERT(m_state); return *m_state; } | 32 StyleResolverState& state() { ASSERT(m_state); return *m_state; } |
| 32 const StyleResolverState& state() const { ASSERT(m_state); return *m_state;
} | 33 const StyleResolverState& state() const { ASSERT(m_state); return *m_state;
} |
| 33 | 34 |
| 34 SVGElement& svgElement() { ASSERT(m_svgElement); return *m_svgElement; } | 35 SVGElement& svgElement() { ASSERT(m_svgElement); return *m_svgElement; } |
| 35 const SVGElement& svgElement() const { ASSERT(m_svgElement); return *m_svgEl
ement; } | 36 const SVGElement& svgElement() const { ASSERT(m_svgElement); return *m_svgEl
ement; } |
| 36 | 37 |
| 37 const SVGPropertyBase& svgBaseValue() const { ASSERT(m_svgBaseValue); return
*m_svgBaseValue; } | 38 const SVGPropertyBase& svgBaseValue() const { ASSERT(m_svgBaseValue); return
*m_svgBaseValue; } |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 StyleResolverState* m_state; | 41 StyleResolverState* m_state; |
| 41 SVGElement* m_svgElement; | 42 RawPtrWillBeMember<SVGElement> m_svgElement; |
| 42 const SVGPropertyBase* m_svgBaseValue; | 43 RawPtrWillBeMember<const SVGPropertyBase> m_svgBaseValue; |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 } // namespace blink | 46 } // namespace blink |
| 46 | 47 |
| 47 #endif // InterpolationEnvironment_h | 48 #endif // InterpolationEnvironment_h |
| OLD | NEW |