| 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 |
| 16 MutableStylePropertySet* SVGElementRareData::ensureAnimatedSMILStyleProperties() | 36 MutableStylePropertySet* SVGElementRareData::ensureAnimatedSMILStyleProperties() |
| 17 { | 37 { |
| 18 if (!m_animatedSMILStyleProperties) | 38 if (!m_animatedSMILStyleProperties) |
| 19 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttri
buteMode); | 39 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttri
buteMode); |
| 20 return m_animatedSMILStyleProperties.get(); | 40 return m_animatedSMILStyleProperties.get(); |
| 21 } | 41 } |
| 22 | 42 |
| 23 ComputedStyle* SVGElementRareData::overrideComputedStyle(Element* element, const
ComputedStyle* parentStyle) | 43 ComputedStyle* SVGElementRareData::overrideComputedStyle(Element* element, const
ComputedStyle* parentStyle) |
| 24 { | 44 { |
| 25 ASSERT(element); | 45 ASSERT(element); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 89 } |
| 70 | 90 |
| 71 AffineTransform* SVGElementRareData::animateMotionTransform() | 91 AffineTransform* SVGElementRareData::animateMotionTransform() |
| 72 { | 92 { |
| 73 if (!m_animateMotionTransform) | 93 if (!m_animateMotionTransform) |
| 74 m_animateMotionTransform = adoptPtr(new AffineTransform); | 94 m_animateMotionTransform = adoptPtr(new AffineTransform); |
| 75 return m_animateMotionTransform.get(); | 95 return m_animateMotionTransform.get(); |
| 76 } | 96 } |
| 77 | 97 |
| 78 } | 98 } |
| OLD | NEW |