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

Unified Diff: ui/file_manager/gallery/js/image_editor/commands.js

Issue 398263002: Gallery: Random fixes for the Viewport class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 5 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 | « no previous file | ui/file_manager/gallery/js/image_editor/image_editor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/image_editor/commands.js
diff --git a/ui/file_manager/gallery/js/image_editor/commands.js b/ui/file_manager/gallery/js/image_editor/commands.js
index e67907d04ecd9d778ba01ea948b6c748bbd5c953..17aac5abb6382b300fa07febcbf13e669e5351f7 100644
--- a/ui/file_manager/gallery/js/image_editor/commands.js
+++ b/ui/file_manager/gallery/js/image_editor/commands.js
@@ -415,9 +415,7 @@ Command.Filter.prototype = { __proto__: Command.prototype };
Command.Filter.prototype.execute = function(
document, srcCanvas, callback, uiContext) {
var result = this.createCanvas_(document, srcCanvas);
-
var self = this;
-
var previousRow = 0;
function onProgressVisible(updatedRow, rowCount) {
@@ -438,8 +436,7 @@ Command.Filter.prototype.execute = function(
screenStrip.height =
Math.round(viewport.imageToScreenY(updatedRow)) - screenStrip.top;
- uiContext.imageView.paintDeviceRect(
- viewport.screenToDeviceRect(screenStrip), result, imageStrip);
+ uiContext.imageView.paintDeviceRect(result, imageStrip);
previousRow = updatedRow;
}
}
« no previous file with comments | « no previous file | ui/file_manager/gallery/js/image_editor/image_editor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698