| 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
|
|
|