Index: third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h |
index 284bb9322ff631adc0ae5ca846a779a588ce89a5..80bcdbecb450a77306a1e36186b01ca14e87a19b 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h |
@@ -51,7 +51,11 @@ public: |
bool imageHasRelativeSize() const override { return m_styleImage->imageHasRelativeSize(); } |
- LayoutSize imageSize(float multiplier) const override { return m_styleImage->imageSize(m_layoutObject, multiplier); } |
+ LayoutSize imageSize(float multiplier) const override |
+ { |
+ // TODO(davve): Find out the default object size, if any, in this context. |
+ return m_styleImage->imageSize(m_layoutObject, multiplier, LayoutSize()); |
+ } |
WrappedImagePtr imagePtr() const override { return m_styleImage->data(); } |