Index: third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp |
index aff05ffbcc9fc7ce4c7579dc2e3f7cc3fe793700..12c68f3da4ebaa6283d8fb409af357ea2b24e4cf 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp |
@@ -61,12 +61,12 @@ |
m_cachedImage = 0; |
} |
-PassRefPtr<Image> LayoutImageResourceStyleImage::image(int width, int height) const |
+PassRefPtr<Image> LayoutImageResourceStyleImage::image(const IntSize& size) const |
{ |
// Generated content may trigger calls to image() while we're still pending, don't assert but gracefully exit. |
if (m_styleImage->isPendingImage()) |
return nullptr; |
- return m_styleImage->image(m_layoutObject, IntSize(width, height)); |
+ return m_styleImage->image(m_layoutObject, size); |
} |
void LayoutImageResourceStyleImage::setContainerSizeForLayoutObject(const IntSize& size) |