| Index: third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
|
| index d34c7c165871b02e167d6992f285dc09303beedd..08971341c336635d36e9a4419ceb15666f0b245e 100644
|
| --- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
|
| +++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
|
| @@ -41,11 +41,20 @@ StyleFetchedImageSet::StyleFetchedImageSet(ImageResource* image, float imageScal
|
| {
|
| m_isImageResourceSet = true;
|
| m_bestFitImage->addClient(this);
|
| +#if ENABLE(OILPAN)
|
| + ThreadState::current()->registerPreFinalizer(this);
|
| +#endif
|
| }
|
|
|
| -
|
| StyleFetchedImageSet::~StyleFetchedImageSet()
|
| {
|
| +#if !ENABLE(OILPAN)
|
| + dispose();
|
| +#endif
|
| +}
|
| +
|
| +void StyleFetchedImageSet::dispose()
|
| +{
|
| m_bestFitImage->removeClient(this);
|
| }
|
|
|
|
|