diff options
author | davve <davve@opera.com> | 2015-11-06 00:47:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-06 08:48:10 +0000 |
commit | 3059b983258e55aeacef6e0b04bdd35a72436d3b (patch) | |
tree | 551f7e22db394b23f89800579436c424c16018de /third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp | |
parent | ce8363056d9bd861fd768ad026104ddd0be544e9 (diff) | |
download | chromium_src-3059b983258e55aeacef6e0b04bdd35a72436d3b.zip chromium_src-3059b983258e55aeacef6e0b04bdd35a72436d3b.tar.gz chromium_src-3059b983258e55aeacef6e0b04bdd35a72436d3b.tar.bz2 |
Make LayoutImageResource::image() parameter explicit
It makes the code more explicit and easier to read. No functional
change expected.
BUG=551419
Review URL: https://codereview.chromium.org/1411693006
Cr-Commit-Position: refs/heads/master@{#358287}
Diffstat (limited to 'third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp')
-rw-r--r-- | third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp index aff05ff..12c68f3 100644 --- a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp +++ b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp @@ -61,12 +61,12 @@ void LayoutImageResourceStyleImage::shutdown() 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) |