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

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

Issue 1408533002: Turn on verbose flag for compiling file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address review comments. Created 5 years, 2 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
Index: ui/file_manager/gallery/js/image_editor/image_transform.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_transform.js b/ui/file_manager/gallery/js/image_editor/image_transform.js
index 47d9110dea1ac46e715e2ffd62c01999d1a6523a..f3ffd425489478f1e355df543c9cf58c981e8712 100644
--- a/ui/file_manager/gallery/js/image_editor/image_transform.js
+++ b/ui/file_manager/gallery/js/image_editor/image_transform.js
@@ -82,31 +82,33 @@ ImageEditor.Mode.Crop.prototype.setUp = function() {
var container = this.getImageView().container_;
var doc = container.ownerDocument;
- this.domOverlay_ = doc.createElement('div');
+ this.domOverlay_ = assertInstanceof(doc.createElement('div'), HTMLDivElement);
Dan Beam 2015/10/20 00:33:38 just change these to HTMLElement instead
fukino 2015/10/20 04:13:08 Done.
this.domOverlay_.className = 'crop-overlay';
container.appendChild(this.domOverlay_);
- this.shadowTop_ = doc.createElement('div');
+ this.shadowTop_ = assertInstanceof(doc.createElement('div'), HTMLDivElement);
this.shadowTop_.className = 'shadow';
this.domOverlay_.appendChild(this.shadowTop_);
- this.middleBox_ = doc.createElement('div');
+ this.middleBox_ = assertInstanceof(doc.createElement('div'), HTMLDivElement);
this.middleBox_.className = 'middle-box';
this.domOverlay_.appendChild(this.middleBox_);
- this.shadowLeft_ = doc.createElement('div');
+ this.shadowLeft_ = assertInstanceof(doc.createElement('div'), HTMLDivElement);
this.shadowLeft_.className = 'shadow';
this.middleBox_.appendChild(this.shadowLeft_);
- this.cropFrame_ = doc.createElement('div');
+ this.cropFrame_ = assertInstanceof(doc.createElement('div'), HTMLDivElement);
this.cropFrame_.className = 'crop-frame';
this.middleBox_.appendChild(this.cropFrame_);
- this.shadowRight_ = doc.createElement('div');
+ this.shadowRight_ = assertInstanceof(doc.createElement('div'),
+ HTMLDivElement);
this.shadowRight_.className = 'shadow';
this.middleBox_.appendChild(this.shadowRight_);
- this.shadowBottom_ = doc.createElement('div');
+ this.shadowBottom_ = assertInstanceof(doc.createElement('div'),
+ HTMLDivElement);
this.shadowBottom_.className = 'shadow';
this.domOverlay_.appendChild(this.shadowBottom_);

Powered by Google App Engine
This is Rietveld 408576698