| 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" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 m_overrideComputedStyle = element->document().ensureStyleResolver().styl
eForElement(element, parentStyle, DisallowStyleSharing, MatchAllRulesExcludingSM
IL); | 30 m_overrideComputedStyle = element->document().ensureStyleResolver().styl
eForElement(element, parentStyle, DisallowStyleSharing, MatchAllRulesExcludingSM
IL); |
| 31 m_needsOverrideComputedStyleUpdate = false; | 31 m_needsOverrideComputedStyleUpdate = false; |
| 32 } | 32 } |
| 33 ASSERT(m_overrideComputedStyle); | 33 ASSERT(m_overrideComputedStyle); |
| 34 return m_overrideComputedStyle.get(); | 34 return m_overrideComputedStyle.get(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 DEFINE_TRACE(SVGElementRareData) | 37 DEFINE_TRACE(SVGElementRareData) |
| 38 { | 38 { |
| 39 #if ENABLE(OILPAN) | 39 #if ENABLE(OILPAN) |
| 40 visitor->trace(m_owner); |
| 40 visitor->trace(m_outgoingReferences); | 41 visitor->trace(m_outgoingReferences); |
| 41 visitor->trace(m_incomingReferences); | 42 visitor->trace(m_incomingReferences); |
| 43 visitor->trace(m_elementInstances); |
| 44 visitor->trace(m_cursorElement); |
| 45 visitor->trace(m_cursorImageValue); |
| 46 visitor->trace(m_correspondingElement); |
| 42 visitor->trace(m_animatedSMILStyleProperties); | 47 visitor->trace(m_animatedSMILStyleProperties); |
| 43 visitor->trace(m_elementInstances); | |
| 44 visitor->trace(m_correspondingElement); | |
| 45 visitor->trace(m_owner); | |
| 46 visitor->template registerWeakMembers<SVGElementRareData, &SVGElementRareDat
a::processWeakMembers>(this); | 48 visitor->template registerWeakMembers<SVGElementRareData, &SVGElementRareDat
a::processWeakMembers>(this); |
| 47 #endif | 49 #endif |
| 48 } | 50 } |
| 49 | 51 |
| 50 void SVGElementRareData::processWeakMembers(Visitor* visitor) | 52 void SVGElementRareData::processWeakMembers(Visitor* visitor) |
| 51 { | 53 { |
| 52 #if ENABLE(OILPAN) | 54 #if ENABLE(OILPAN) |
| 53 ASSERT(m_owner); | 55 ASSERT(m_owner); |
| 54 if (!visitor->isAlive(m_cursorElement)) | 56 if (!visitor->isAlive(m_cursorElement)) |
| 55 m_cursorElement = nullptr; | 57 m_cursorElement = nullptr; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 69 } | 71 } |
| 70 | 72 |
| 71 AffineTransform* SVGElementRareData::animateMotionTransform() | 73 AffineTransform* SVGElementRareData::animateMotionTransform() |
| 72 { | 74 { |
| 73 if (!m_animateMotionTransform) | 75 if (!m_animateMotionTransform) |
| 74 m_animateMotionTransform = adoptPtr(new AffineTransform); | 76 m_animateMotionTransform = adoptPtr(new AffineTransform); |
| 75 return m_animateMotionTransform.get(); | 77 return m_animateMotionTransform.get(); |
| 76 } | 78 } |
| 77 | 79 |
| 78 } | 80 } |
| OLD | NEW |