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

Unified Diff: Source/core/rendering/RenderScrollbar.cpp

Issue 869323003: Oilpan: move RenderObjects off heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review-induced improvements Created 5 years, 10 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
« no previous file with comments | « Source/core/rendering/RenderScrollbar.h ('k') | Source/core/rendering/RenderTextFragment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderScrollbar.cpp
diff --git a/Source/core/rendering/RenderScrollbar.cpp b/Source/core/rendering/RenderScrollbar.cpp
index 9aefc446e99dc92bd6175ed8be3186c838979535..0a9afc05481a7bbb848da3e8dedae1b2720141d7 100644
--- a/Source/core/rendering/RenderScrollbar.cpp
+++ b/Source/core/rendering/RenderScrollbar.cpp
@@ -64,22 +64,10 @@ RenderScrollbar::RenderScrollbar(ScrollableArea* scrollableArea, ScrollbarOrient
setFrameRect(rect);
-#if ENABLE(OILPAN)
- ThreadState::current()->registerPreFinalizer(*this);
-#endif
}
RenderScrollbar::~RenderScrollbar()
{
- // Oilpan: to be able to access the hash map that's
- // also on the heap, a pre-destruction finalizer is used.
-#if !ENABLE(OILPAN)
- destroyParts();
-#endif
-}
-
-void RenderScrollbar::destroyParts()
-{
if (m_parts.isEmpty())
return;
@@ -97,7 +85,6 @@ void RenderScrollbar::trace(Visitor* visitor)
#if ENABLE(OILPAN)
visitor->trace(m_owner);
visitor->trace(m_owningFrame);
- visitor->trace(m_parts);
#endif
Scrollbar::trace(visitor);
}
« no previous file with comments | « Source/core/rendering/RenderScrollbar.h ('k') | Source/core/rendering/RenderTextFragment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698