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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 1657883002: Fix leak PaintLayerReflectionInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 646d3af759cb51a52af0cf605281e262e77abb04..b31f3dbdf56d7bcf88e6b4933676127694c39383 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -203,9 +203,6 @@ PaintLayer::~PaintLayer()
clearCompositedLayerMapping(true);
- if (PaintLayerReflectionInfo* reflectionInfo = this->reflectionInfo())
- reflectionInfo->destroy();
-
if (m_scrollableArea)
m_scrollableArea->dispose();
}
@@ -1419,7 +1416,6 @@ void PaintLayer::updateReflectionInfo(const ComputedStyle* oldStyle)
ensureRareData().reflectionInfo = adoptPtr(new PaintLayerReflectionInfo(*layoutBox()));
m_rareData->reflectionInfo->updateAfterStyleChange(oldStyle);
} else if (m_rareData && m_rareData->reflectionInfo) {
- m_rareData->reflectionInfo->destroy();
m_rareData->reflectionInfo = nullptr;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698