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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElementRareData.cpp

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp b/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
index 6dcd4470dc6a51b95471efd68b0a369e15506585..6600fca52f0e64af0277c3db4b8d0ea9e0fb92aa 100644
--- a/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
@@ -49,10 +49,10 @@ void SVGElementRareData::processWeakMembers(Visitor* visitor)
{
#if ENABLE(OILPAN)
ASSERT(m_owner);
- if (!Heap::isHeapObjectAlive(m_cursorElement))
+ if (!ThreadHeap::isHeapObjectAlive(m_cursorElement))
m_cursorElement = nullptr;
- if (!Heap::isHeapObjectAlive(m_cursorImageValue)) {
+ if (!ThreadHeap::isHeapObjectAlive(m_cursorImageValue)) {
// The owning SVGElement is still alive and if it is pointing to an SVGCursorElement
// we unregister it when the CSSCursorImageValue dies.
if (m_cursorElement) {
@@ -61,8 +61,8 @@ void SVGElementRareData::processWeakMembers(Visitor* visitor)
}
m_cursorImageValue = nullptr;
}
- ASSERT(!m_cursorElement || Heap::isHeapObjectAlive(m_cursorElement));
- ASSERT(!m_cursorImageValue || Heap::isHeapObjectAlive(m_cursorImageValue));
+ ASSERT(!m_cursorElement || ThreadHeap::isHeapObjectAlive(m_cursorElement));
+ ASSERT(!m_cursorImageValue || ThreadHeap::isHeapObjectAlive(m_cursorImageValue));
#endif
}

Powered by Google App Engine
This is Rietveld 408576698