Index: third_party/WebKit/Source/core/layout/LayoutImage.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImage.cpp |
index 8e8ecfc4efdcdef3d600ced56feedc4b4b1c6769..81810151bf3ef564658fbe8d077bf6425da70581 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp |
@@ -185,7 +185,7 @@ |
updateInnerContentRect(); |
} |
- if (imageResource() && imageResource()->maybeAnimated()) |
+ if (imageResource() && imageResource()->image() && imageResource()->image()->maybeAnimated()) |
setShouldDoFullPaintInvalidation(PaintInvalidationDelayedFull); |
else |
setShouldDoFullPaintInvalidation(PaintInvalidationFull); |