Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp

Issue 1463793002: Simplify ImageResource::canRender() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ImageResource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp b/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
index d4875facc0974b86b19eebea9f1201bfd4d9a890..6afcd5a579456a5a516d126caeecfdf6fdc36f16 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();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ImageResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698