| 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 #include "platform/transforms/AffineTransform.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 SVGCursorElement* SVGElementRareData::cursorElement() const | |
| 17 { | |
| 18 return m_cursorElement; | |
| 19 } | |
| 20 | |
| 21 void SVGElementRareData::setCursorElement(SVGCursorElement* cursorElement) | |
| 22 { | |
| 23 m_cursorElement = cursorElement; | |
| 24 } | |
| 25 | |
| 26 CSSCursorImageValue* SVGElementRareData::cursorImageValue() const | |
| 27 { | |
| 28 return m_cursorImageValue; | |
| 29 } | |
| 30 | |
| 31 void SVGElementRareData::setCursorImageValue(CSSCursorImageValue* cursorImageVal
ue) | |
| 32 { | |
| 33 m_cursorImageValue = cursorImageValue; | |
| 34 } | |
| 35 | |
| 36 MutableStylePropertySet* SVGElementRareData::ensureAnimatedSMILStyleProperties() | 16 MutableStylePropertySet* SVGElementRareData::ensureAnimatedSMILStyleProperties() |
| 37 { | 17 { |
| 38 if (!m_animatedSMILStyleProperties) | 18 if (!m_animatedSMILStyleProperties) |
| 39 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttri
buteMode); | 19 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttri
buteMode); |
| 40 return m_animatedSMILStyleProperties.get(); | 20 return m_animatedSMILStyleProperties.get(); |
| 41 } | 21 } |
| 42 | 22 |
| 43 ComputedStyle* SVGElementRareData::overrideComputedStyle(Element* element, const
ComputedStyle* parentStyle) | 23 ComputedStyle* SVGElementRareData::overrideComputedStyle(Element* element, const
ComputedStyle* parentStyle) |
| 44 { | 24 { |
| 45 ASSERT(element); | 25 ASSERT(element); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 69 } |
| 90 | 70 |
| 91 AffineTransform* SVGElementRareData::animateMotionTransform() | 71 AffineTransform* SVGElementRareData::animateMotionTransform() |
| 92 { | 72 { |
| 93 if (!m_animateMotionTransform) | 73 if (!m_animateMotionTransform) |
| 94 m_animateMotionTransform = adoptPtr(new AffineTransform); | 74 m_animateMotionTransform = adoptPtr(new AffineTransform); |
| 95 return m_animateMotionTransform.get(); | 75 return m_animateMotionTransform.get(); |
| 96 } | 76 } |
| 97 | 77 |
| 98 } | 78 } |
| OLD | NEW |