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

Issue 1138053003: Gallery: Takes into account target canvas size when calculating view port. (Closed)

Created:
5 years, 7 months ago by hirono
Modified:
5 years, 7 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Gallery: Takes into account target canvas size when calculating view port. Gallery applies viewport both screen size cache, and full resolution image. To handle the different size of two images, it used to set CSS 'width' and 'height' style to the full resolution image so that the full resolution image can be regarded as the same size of screen cache image. But ImageView.Effect class, which is used for playing edit animation, does not update the CSS properties. It causes wrong layout during the edit animation. The CL removes the trick of CSS property, and let ImageView.Effect take into account of the size of target canvas. BUG=487129 TEST=Do and undo cropping and rotaiton. Committed: https://crrev.com/171777f7e0ef8be56f2c60fe7e62dd2480bc7fd3 Cr-Commit-Position: refs/heads/master@{#329793}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed comments. #

Total comments: 4

Patch Set 3 : Fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -113 lines) Patch
M ui/file_manager/gallery/js/image_editor/image_view.js View 6 chunks +15 lines, -11 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/viewport.js View 1 2 8 chunks +136 lines, -102 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
hirono
PTAL, thanks!
5 years, 7 months ago (2015-05-13 09:14:27 UTC) #2
mtomasz
I'll get a closer look tomorrow morning. https://codereview.chromium.org/1138053003/diff/1/ui/file_manager/gallery/js/image_editor/viewport.js File ui/file_manager/gallery/js/image_editor/viewport.js (right): https://codereview.chromium.org/1138053003/diff/1/ui/file_manager/gallery/js/image_editor/viewport.js#newcode283 ui/file_manager/gallery/js/image_editor/viewport.js:283: assert(this.imageElementBoundsOnScreen_); nit: ...
5 years, 7 months ago (2015-05-13 10:27:10 UTC) #3
mtomasz
https://codereview.chromium.org/1138053003/diff/1/ui/file_manager/gallery/js/image_editor/viewport.js File ui/file_manager/gallery/js/image_editor/viewport.js (right): https://codereview.chromium.org/1138053003/diff/1/ui/file_manager/gallery/js/image_editor/viewport.js#newcode196 ui/file_manager/gallery/js/image_editor/viewport.js:196: * ni: Please update jsdoc. https://codereview.chromium.org/1138053003/diff/1/ui/file_manager/gallery/js/image_editor/viewport.js#newcode479 ui/file_manager/gallery/js/image_editor/viewport.js:479: Viewport.prototype.getScreenRectTransformation = ...
5 years, 7 months ago (2015-05-14 00:32:32 UTC) #4
hirono
Thanks! https://codereview.chromium.org/1138053003/diff/1/ui/file_manager/gallery/js/image_editor/viewport.js File ui/file_manager/gallery/js/image_editor/viewport.js (right): https://codereview.chromium.org/1138053003/diff/1/ui/file_manager/gallery/js/image_editor/viewport.js#newcode196 ui/file_manager/gallery/js/image_editor/viewport.js:196: * On 2015/05/14 00:32:32, mtomasz wrote: > ni: ...
5 years, 7 months ago (2015-05-14 01:57:21 UTC) #5
mtomasz
lgtm with nits https://codereview.chromium.org/1138053003/diff/20001/ui/file_manager/gallery/js/image_editor/viewport.js File ui/file_manager/gallery/js/image_editor/viewport.js (right): https://codereview.chromium.org/1138053003/diff/20001/ui/file_manager/gallery/js/image_editor/viewport.js#newcode603 ui/file_manager/gallery/js/image_editor/viewport.js:603: var d = formatString( nit: Per ...
5 years, 7 months ago (2015-05-14 02:27:55 UTC) #6
hirono
Thank you! https://codereview.chromium.org/1138053003/diff/20001/ui/file_manager/gallery/js/image_editor/viewport.js File ui/file_manager/gallery/js/image_editor/viewport.js (right): https://codereview.chromium.org/1138053003/diff/20001/ui/file_manager/gallery/js/image_editor/viewport.js#newcode603 ui/file_manager/gallery/js/image_editor/viewport.js:603: var d = formatString( On 2015/05/14 02:27:55, ...
5 years, 7 months ago (2015-05-14 03:08:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138053003/40001
5 years, 7 months ago (2015-05-14 03:08:19 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-14 03:35:40 UTC) #11
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 03:36:36 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/171777f7e0ef8be56f2c60fe7e62dd2480bc7fd3
Cr-Commit-Position: refs/heads/master@{#329793}

Powered by Google App Engine
This is Rietveld 408576698