| Index: third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
|
| index de6e9ec4ff408fbbe1808d91da72d759099766d8..5af954d40313b9ca606638abaa1b3dde9c4562b8 100644
|
| --- a/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
|
| @@ -114,11 +114,12 @@ void SVGImageChromeClient::AnimationTimerFired(TimerBase*) {
|
|
|
| // The SVGImageChromeClient object's lifetime is dependent on
|
| // the ImageObserver (an ImageResourceContent) of its image. Should it
|
| - // be dead and about to be lazily swept out, do not proceed.
|
| + // be dead and about to be lazily swept out, then GetImageObserver()
|
| + // becomes null and we do not proceed.
|
| //
|
| // TODO(Oilpan): move (SVG)Image to the Oilpan heap, and avoid
|
| // this explicit lifetime check.
|
| - if (ThreadHeap::WillObjectBeLazilySwept(image_->GetImageObserver()))
|
| + if (!image_->GetImageObserver())
|
| return;
|
|
|
| image_->ServiceAnimations(MonotonicallyIncreasingTime());
|
|
|