Commit 9d426dfe authored by hirono@chromium.org's avatar hirono@chromium.org

Gallery: Fix the slide show mode.

Recent change (crrev.com/398263002) broke the slide show mode and we cannot
enter the slide show mode from the mosaic view due. The CL adds null check to
fix it.

BUG=245926
TEST=manually

Review URL: https://codereview.chromium.org/403733002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284042 0039d316-1c4b-4281-b951-d872f2087c98
parent ccb34215
...@@ -129,10 +129,12 @@ ImageView.prototype.draw = function() { ...@@ -129,10 +129,12 @@ ImageView.prototype.draw = function() {
* change or offset change) with animation. * change or offset change) with animation.
*/ */
ImageView.prototype.applyViewportChange = function() { ImageView.prototype.applyViewportChange = function() {
this.setTransform( if (this.screenImage_) {
this.screenImage_, this.setTransform(
new ImageView.Effect.None(), this.screenImage_,
ImageView.Effect.DEFAULT_DURATION); new ImageView.Effect.None(),
ImageView.Effect.DEFAULT_DURATION);
}
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment