OLD | NEW |
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 "config.h" | 5 #include "config.h" |
6 #include "core/svg/SVGElementRareData.h" | 6 #include "core/svg/SVGElementRareData.h" |
7 | 7 |
8 #include "core/css/CSSCursorImageValue.h" | 8 #include "core/css/CSSCursorImageValue.h" |
9 #include "core/css/resolver/StyleResolver.h" | 9 #include "core/css/resolver/StyleResolver.h" |
10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
11 #include "core/svg/SVGCursorElement.h" | 11 #include "core/svg/SVGCursorElement.h" |
| 12 #include "platform/transforms/AffineTransform.h" |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 | 15 |
15 MutableStylePropertySet* SVGElementRareData::ensureAnimatedSMILStyleProperties() | 16 MutableStylePropertySet* SVGElementRareData::ensureAnimatedSMILStyleProperties() |
16 { | 17 { |
17 if (!m_animatedSMILStyleProperties) | 18 if (!m_animatedSMILStyleProperties) |
18 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttri
buteMode); | 19 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttri
buteMode); |
19 return m_animatedSMILStyleProperties.get(); | 20 return m_animatedSMILStyleProperties.get(); |
20 } | 21 } |
21 | 22 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 m_cursorElement->removeReferencedElement(m_owner); | 61 m_cursorElement->removeReferencedElement(m_owner); |
61 m_cursorElement = nullptr; | 62 m_cursorElement = nullptr; |
62 } | 63 } |
63 m_cursorImageValue = nullptr; | 64 m_cursorImageValue = nullptr; |
64 } | 65 } |
65 ASSERT(!m_cursorElement || visitor->isAlive(m_cursorElement)); | 66 ASSERT(!m_cursorElement || visitor->isAlive(m_cursorElement)); |
66 ASSERT(!m_cursorImageValue || visitor->isAlive(m_cursorImageValue)); | 67 ASSERT(!m_cursorImageValue || visitor->isAlive(m_cursorImageValue)); |
67 #endif | 68 #endif |
68 } | 69 } |
69 | 70 |
| 71 AffineTransform* SVGElementRareData::animateMotionTransform() |
| 72 { |
| 73 if (!m_animateMotionTransform) |
| 74 m_animateMotionTransform = adoptPtr(new AffineTransform); |
| 75 return m_animateMotionTransform.get(); |
| 76 } |
70 | 77 |
71 } | 78 } |
OLD | NEW |