Chromium Code Reviews| Index: Source/core/rendering/style/StylePendingImage.h |
| diff --git a/Source/core/rendering/style/StylePendingImage.h b/Source/core/rendering/style/StylePendingImage.h |
| index 38b59799408cc0e75cef92a309d08a6ff7b71713..4a6ae619907f6c6eca765039ea968e53650e923a 100644 |
| --- a/Source/core/rendering/style/StylePendingImage.h |
| +++ b/Source/core/rendering/style/StylePendingImage.h |
| @@ -43,7 +43,7 @@ class StylePendingImage : public StyleImage { |
| public: |
| static PassRefPtr<StylePendingImage> create(CSSValue* value) { return adoptRef(new StylePendingImage(value)); } |
| - virtual WrappedImagePtr data() const { return toCSSImageValue(m_value); } |
| + virtual WrappedImagePtr data() const { return m_value && m_value->isImageValue() ? toCSSImageValue(m_value) : m_value; } |
|
Julien - ping for review
2013/08/09 16:02:49
Why not just return m_value all the time?
|
| virtual PassRefPtr<CSSValue> cssValue() const { return m_value; } |
| CSSImageValue* cssImageValue() const { return m_value->isImageValue() ? toCSSImageValue(m_value) : 0; } |