Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
| index 85e24d61d56493228c2276e38b94076d114c9807..f9c89bb8b50d7bef2d106847f15eb0d7044a0e52 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
| @@ -83,7 +83,7 @@ void LayoutImageResource::resetAnimation() |
| if (!m_cachedImage) |
| return; |
| - image()->resetAnimation(); |
| + m_cachedImage->image()->resetAnimation(); |
| m_layoutObject->setShouldDoFullPaintInvalidation(); |
| } |
| @@ -105,4 +105,10 @@ LayoutSize LayoutImageResource::getImageSize(float multiplier, ImageResource::Si |
| return size; |
| } |
| +bool LayoutImageResource::maybeAnimated() const |
| +{ |
| + RefPtr<Image> image = m_cachedImage ? m_cachedImage->image() : Image::nullImage(); |
|
fs
2015/11/05 15:05:54
Nit: This could be just Image* (to avoid churning
davve
2015/11/06 07:36:12
I'm probably a bit bug 315842 damaged. But with th
|
| + return image->maybeAnimated(); |
| +} |
| + |
| } // namespace blink |