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

Unified Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1215973002: Oilpan: improve ScrollableArea handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: clear out animators on DeprecatedPaintLayerScrollableArea dispose Created 5 years, 6 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: Source/core/paint/DeprecatedPaintLayer.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
index a7f62fdf05878ef7e08871febc7ff75416491108..51d8c952813dbff32f5ce2f966e1393d3bb98b95 100644
--- a/Source/core/paint/DeprecatedPaintLayer.cpp
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp
@@ -171,6 +171,9 @@ DeprecatedPaintLayer::~DeprecatedPaintLayer()
if (m_reflectionInfo)
m_reflectionInfo->destroy();
+
+ if (m_scrollableArea)
+ m_scrollableArea->dispose();
}
String DeprecatedPaintLayer::debugName() const
@@ -1442,7 +1445,7 @@ void DeprecatedPaintLayer::updateStackingNode()
void DeprecatedPaintLayer::updateScrollableArea()
{
if (requiresScrollableArea())
- m_scrollableArea = adoptPtr(new DeprecatedPaintLayerScrollableArea(*this));
+ m_scrollableArea = DeprecatedPaintLayerScrollableArea::create(*this);
else
m_scrollableArea = nullptr;
haraken 2015/06/30 10:30:35 To avoid confusion, I'd move m_scrollableArea(null
sof 2015/06/30 11:34:09 Added assert to this and another update*() method
}

Powered by Google App Engine
This is Rietveld 408576698