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..cb16046f7c5bd09cc8f39ffe82cc6200eb116544 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp |
@@ -61,18 +61,12 @@ void LayoutImageResourceStyleImage::shutdown() |
m_cachedImage = 0; |
} |
-PassRefPtr<Image> LayoutImageResourceStyleImage::image(int width, int height) const |
+PassRefPtr<Image> LayoutImageResourceStyleImage::image(const IntSize& containerSize, float zoom, const KURL& url) 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)); |
-} |
- |
-void LayoutImageResourceStyleImage::setContainerSizeForLayoutObject(const IntSize& size) |
-{ |
- ASSERT(m_layoutObject); |
- m_styleImage->setContainerSizeForLayoutObject(m_layoutObject, size, m_layoutObject->style()->effectiveZoom()); |
+ return m_styleImage->image(m_layoutObject, containerSize, zoom, url); |
} |
DEFINE_TRACE(LayoutImageResourceStyleImage) |