summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
diff options
context:
space:
mode:
authordavve <davve@opera.com>2015-11-21 09:19:49 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-21 17:20:47 +0000
commitfec9b1244e99826e0c070c320d1babf09630bbc1 (patch)
tree2acb94ffc1915c9cdd1f7d4d97938a5cc56eebe5 /third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
parenta22a72fad19dd5deff2af11416470a8d0675f279 (diff)
downloadchromium_src-fec9b1244e99826e0c070c320d1babf09630bbc1.zip
chromium_src-fec9b1244e99826e0c070c320d1babf09630bbc1.tar.gz
chromium_src-fec9b1244e99826e0c070c320d1babf09630bbc1.tar.bz2
Simplify ImageResource::canRender()
Assume that neither image rotation nor scale can affect the image size emptiness. This makes it easier to further simplify imageSizeForLayoutObject later. BUG=559131 Review URL: https://codereview.chromium.org/1463793002 Cr-Commit-Position: refs/heads/master@{#361025}
Diffstat (limited to 'third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp')
-rw-r--r--third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp b/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
index d4875fa..6afcd5a 100644
--- a/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
@@ -88,9 +88,7 @@ static Image* renderableImageForCSSValue(CSSValue* value, const LayoutObject* la
{
ImageResource* cachedImage = cachedImageForCSSValue(value, &layoutObject->document());
- // If the image can be rendered at 1 zoom it will have non-empty dimension
- // and should be able to render at other scales as well.
- if (!cachedImage || !cachedImage->canRender(*layoutObject, 1))
+ if (!cachedImage || !cachedImage->canRender())
return nullptr;
return cachedImage->image();