Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElementRareData.cpp

Issue 1884083002: Revert of Rename Heap to ThreadHeap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "core/svg/SVGElementRareData.h" 5 #include "core/svg/SVGElementRareData.h"
6 6
7 #include "core/css/CSSCursorImageValue.h" 7 #include "core/css/CSSCursorImageValue.h"
8 #include "core/css/resolver/StyleResolver.h" 8 #include "core/css/resolver/StyleResolver.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/svg/SVGCursorElement.h" 10 #include "core/svg/SVGCursorElement.h"
(...skipping 28 matching lines...) Expand all
39 visitor->trace(m_animatedSMILStyleProperties); 39 visitor->trace(m_animatedSMILStyleProperties);
40 visitor->trace(m_elementInstances); 40 visitor->trace(m_elementInstances);
41 visitor->trace(m_correspondingElement); 41 visitor->trace(m_correspondingElement);
42 visitor->trace(m_owner); 42 visitor->trace(m_owner);
43 visitor->template registerWeakMembers<SVGElementRareData, &SVGElementRareDat a::processWeakMembers>(this); 43 visitor->template registerWeakMembers<SVGElementRareData, &SVGElementRareDat a::processWeakMembers>(this);
44 } 44 }
45 45
46 void SVGElementRareData::processWeakMembers(Visitor* visitor) 46 void SVGElementRareData::processWeakMembers(Visitor* visitor)
47 { 47 {
48 ASSERT(m_owner); 48 ASSERT(m_owner);
49 if (!ThreadHeap::isHeapObjectAlive(m_cursorElement)) 49 if (!Heap::isHeapObjectAlive(m_cursorElement))
50 m_cursorElement = nullptr; 50 m_cursorElement = nullptr;
51 51
52 if (!ThreadHeap::isHeapObjectAlive(m_cursorImageValue)) { 52 if (!Heap::isHeapObjectAlive(m_cursorImageValue)) {
53 // The owning SVGElement is still alive and if it is pointing to an SVGC ursorElement 53 // The owning SVGElement is still alive and if it is pointing to an SVGC ursorElement
54 // we unregister it when the CSSCursorImageValue dies. 54 // we unregister it when the CSSCursorImageValue dies.
55 if (m_cursorElement) { 55 if (m_cursorElement) {
56 m_cursorElement->removeReferencedElement(m_owner); 56 m_cursorElement->removeReferencedElement(m_owner);
57 m_cursorElement = nullptr; 57 m_cursorElement = nullptr;
58 } 58 }
59 m_cursorImageValue = nullptr; 59 m_cursorImageValue = nullptr;
60 } 60 }
61 ASSERT(!m_cursorElement || ThreadHeap::isHeapObjectAlive(m_cursorElement)); 61 ASSERT(!m_cursorElement || Heap::isHeapObjectAlive(m_cursorElement));
62 ASSERT(!m_cursorImageValue || ThreadHeap::isHeapObjectAlive(m_cursorImageVal ue)); 62 ASSERT(!m_cursorImageValue || Heap::isHeapObjectAlive(m_cursorImageValue));
63 } 63 }
64 64
65 AffineTransform* SVGElementRareData::animateMotionTransform() 65 AffineTransform* SVGElementRareData::animateMotionTransform()
66 { 66 {
67 return &m_animateMotionTransform; 67 return &m_animateMotionTransform;
68 } 68 }
69 69
70 } // namespace blink 70 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698