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 0eeb5bb14664187b58e582eeb290f1cd9947ccf1..e42aefb82e73ac564c804e62a3afb9a0b371d455 100644 |
--- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp |
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp |
@@ -80,7 +80,7 @@ PassRefPtrWillBeRawPtr<CSSValue> StyleFetchedImageSet::computedCSSValue() const |
bool StyleFetchedImageSet::canRender() const |
{ |
- return m_bestFitImage->canRender(); |
+ return !m_bestFitImage->errorOccurred() && !m_bestFitImage->image()->isNull(); |
} |
bool StyleFetchedImageSet::isLoaded() const |