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

Unified Diff: ui/file_manager/image_loader/request.js

Issue 2634213003: Compile image loader in v2 syntax. (Closed)
Patch Set: Fix a unit test. Created 3 years, 11 months 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 | « ui/file_manager/image_loader/image_loader_util.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/image_loader/request.js
diff --git a/ui/file_manager/image_loader/request.js b/ui/file_manager/image_loader/request.js
index 848f192901e2f2edbbf705e05ca357e2d8796421..0f55e1a65838ad7edaebdbfb7f04bbd9d980bd15 100644
--- a/ui/file_manager/image_loader/request.js
+++ b/ui/file_manager/image_loader/request.js
@@ -533,11 +533,11 @@ ImageRequest.prototype.onImageLoad_ = function() {
// Perform processing if the url is not a data url, or if there are some
// operations requested.
if (!this.request_.url.match(/^data/) ||
- ImageLoader.shouldProcess(this.image_.width,
- this.image_.height,
- this.request_)) {
- ImageLoader.resizeAndCrop(this.image_, this.canvas_, this.request_);
- ImageLoader.convertColorSpace(
+ ImageLoaderUtil.shouldProcess(this.image_.width,
+ this.image_.height,
+ this.request_)) {
+ ImageLoaderUtil.resizeAndCrop(this.image_, this.canvas_, this.request_);
+ ImageLoaderUtil.convertColorSpace(
this.canvas_, this.request_.colorSpace || ColorSpace.SRGB);
this.sendImage_(true); // Image changed.
} else {
« no previous file with comments | « ui/file_manager/image_loader/image_loader_util.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698