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

Unified Diff: Source/core/style/StyleFetchedImage.cpp

Issue 1129533002: Oilpan: fix build after r194911. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: adjust position of Document clearing Created 5 years, 7 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/style/StyleFetchedImage.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/StyleFetchedImage.cpp
diff --git a/Source/core/style/StyleFetchedImage.cpp b/Source/core/style/StyleFetchedImage.cpp
index 21ac10bdfb7bea33a3ed68d0965d78ed499a4609..f3cb2756955b44ad6944809baebc468f7276f10d 100644
--- a/Source/core/style/StyleFetchedImage.cpp
+++ b/Source/core/style/StyleFetchedImage.cpp
@@ -106,8 +106,10 @@ void StyleFetchedImage::removeClient(LayoutObject* layoutObject)
void StyleFetchedImage::notifyFinished(Resource* resource)
{
- if (m_image && m_image->image() && m_image->image()->isSVGImage())
+ if (m_document && m_image && m_image->image() && m_image->image()->isSVGImage())
toSVGImage(m_image->image())->updateUseCounters(*m_document);
+ // Oilpan: do not prolong the Document's lifetime.
+ m_document.clear();
}
PassRefPtr<Image> StyleFetchedImage::image(LayoutObject* layoutObject, const IntSize&) const
« no previous file with comments | « Source/core/style/StyleFetchedImage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698