| 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);
|
| 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_);
|
|
|
|
|