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

Issue 2376163002: [Blink] Display images in the center of the screen (Closed)

Created:
4 years, 2 months ago by gone
Modified:
4 years, 2 months ago
Reviewers:
pdr., esprehn
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Blink] Display images in the center of the screen Code was adapted from MediaDocument.cpp. Additions were made to let the image be zoomed to full width on both mobile and desktop. Had to edit TestExpectations to deal with the virtual tests failing to work with the command line rebaselining tool, but some of the suggested changes are included here. Intent to implement: https://docs.google.com/document/d/1wJPz4kn-9mEFs_ZEM0hAwwr-YzBdW-5hdX1-jkt81Ng/edit?usp=sharing Images of proposed changes: https://drive.google.com/drive/folders/0B8k2SmEN8xS3RHJGSVpNZjVtUUE?usp=sharing BUG=650456 Committed: https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635 Cr-Commit-Position: refs/heads/master@{#425440}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Test rebaseline, part 1 #

Patch Set 4 : [Blink] Display images on a black background in the center of the screen #

Patch Set 5 : Wipe out test expectation changes #

Patch Set 6 : Rebasing #

Patch Set 7 : Fix SVG test #

Patch Set 8 : Test expectations #

Patch Set 9 : Virtual tests refusing to work with rebaseline tool #

Patch Set 10 : Yet another attempt at rebaselining #

Total comments: 4

Patch Set 11 : Fixed viewport rendering of large images #

Patch Set 12 : Rebased #

Patch Set 13 : Checkerboard example #

Patch Set 14 : Centering only #

Patch Set 15 : Rebase #

Total comments: 6

Patch Set 16 : Comments #

Patch Set 17 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -17 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/images/exif-orientation-height-image-document-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/fast/images/exif-orientation-height-image-document-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/images/image-click-scale-restore-zoomed-image-expected.txt View 1 2 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/images/image-zoom-to-25-expected.txt View 1 2 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/image-document-default-src-none-expected.txt View 1 2 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/platform/android/fast/images/image-click-scale-restore-zoomed-image-expected.txt View 1 2 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/platform/android/http/tests/security/contentSecurityPolicy/image-document-default-src-none-expected.txt View 1 2 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/ImageDocument.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageDocument.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +69 lines, -11 lines 0 comments Download

Messages

Total messages: 53 (30 generated)
gone
Hey pdr@, do you know who should be reviewing this? Saw you'd been listed as ...
4 years, 2 months ago (2016-10-07 21:59:28 UTC) #14
pdr.
On 2016/10/07 at 21:59:28, dfalcantara wrote: > Hey pdr@, do you know who should be ...
4 years, 2 months ago (2016-10-07 22:12:28 UTC) #16
gone
On 2016/10/07 22:12:28, pdr. wrote: > On 2016/10/07 at 21:59:28, dfalcantara wrote: > > Hey ...
4 years, 2 months ago (2016-10-07 22:40:14 UTC) #17
pdr.
On 2016/10/07 at 22:40:14, dfalcantara wrote: > On 2016/10/07 22:12:28, pdr. wrote: > > On ...
4 years, 2 months ago (2016-10-07 23:34:11 UTC) #18
esprehn
lgtm, thanks for being a product excellence hero! This is an awesome change. https://codereview.chromium.org/2376163002/diff/180001/third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg File ...
4 years, 2 months ago (2016-10-08 03:09:19 UTC) #19
gone
https://chromiumcodereview.appspot.com/2376163002/diff/180001/third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg File third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg (right): https://chromiumcodereview.appspot.com/2376163002/diff/180001/third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg#newcode2 third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg:2: <rect x="0" y="0" width="800" height="600" fill="black" /> On 2016/10/08 ...
4 years, 2 months ago (2016-10-10 22:01:01 UTC) #20
gone
On 2016/10/10 22:01:01, dfalcantara wrote: > https://chromiumcodereview.appspot.com/2376163002/diff/180001/third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg > File third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg > (right): > > https://chromiumcodereview.appspot.com/2376163002/diff/180001/third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg#newcode2 ...
4 years, 2 months ago (2016-10-11 03:22:27 UTC) #21
gone
Think I got it figured out; had to manually change the size of the containing ...
4 years, 2 months ago (2016-10-12 07:06:12 UTC) #26
pdr.
On 2016/10/12 at 07:06:12, dfalcantara wrote: > Think I got it figured out; had to ...
4 years, 2 months ago (2016-10-12 20:21:40 UTC) #27
gone
On 2016/10/12 20:21:40, pdr. wrote: > On 2016/10/12 at 07:06:12, dfalcantara wrote: > > Think ...
4 years, 2 months ago (2016-10-12 20:49:21 UTC) #28
esprehn
Are videos ever transparent? Id suggest we make the IMG element itself have a grey ...
4 years, 2 months ago (2016-10-12 21:04:51 UTC) #29
esprehn
Are videos ever transparent? Id suggest we make the IMG element itself have a grey ...
4 years, 2 months ago (2016-10-12 21:04:51 UTC) #30
gone
On 2016/10/12 21:04:51, esprehn wrote: > Are videos ever transparent? Id suggest we make the ...
4 years, 2 months ago (2016-10-12 21:25:20 UTC) #31
gone
On 2016/10/12 21:25:20, dfalcantara wrote: > On 2016/10/12 21:04:51, esprehn wrote: > > Are videos ...
4 years, 2 months ago (2016-10-12 22:05:08 UTC) #32
pdr.
On 2016/10/12 at 22:05:08, dfalcantara wrote: > On 2016/10/12 21:25:20, dfalcantara wrote: > > On ...
4 years, 2 months ago (2016-10-12 22:26:36 UTC) #33
gone
On 2016/10/12 22:26:36, pdr. wrote: > On 2016/10/12 at 22:05:08, dfalcantara wrote: > > On ...
4 years, 2 months ago (2016-10-13 00:31:53 UTC) #34
gone
On 2016/10/13 00:31:53, dfalcantara wrote: > On 2016/10/12 22:26:36, pdr. wrote: > > On 2016/10/12 ...
4 years, 2 months ago (2016-10-13 18:39:57 UTC) #35
pdr.
On 2016/10/13 at 18:39:57, dfalcantara wrote: > I'm expecting show churn on that UX thread. ...
4 years, 2 months ago (2016-10-13 18:49:10 UTC) #36
esprehn
Plz fix comments before landing, otherwise this is fine to start. https://codereview.chromium.org/2376163002/diff/280001/third_party/WebKit/Source/core/html/ImageDocument.cpp File third_party/WebKit/Source/core/html/ImageDocument.cpp (right): ...
4 years, 2 months ago (2016-10-13 22:27:23 UTC) #38
gone
Comments addressed; waiting on the bots to rebaseline. Thanks! https://codereview.chromium.org/2376163002/diff/280001/third_party/WebKit/Source/core/html/ImageDocument.cpp File third_party/WebKit/Source/core/html/ImageDocument.cpp (right): https://codereview.chromium.org/2376163002/diff/280001/third_party/WebKit/Source/core/html/ImageDocument.cpp#newcode225 third_party/WebKit/Source/core/html/ImageDocument.cpp:225: ...
4 years, 2 months ago (2016-10-13 22:45:50 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2376163002/320001
4 years, 2 months ago (2016-10-14 19:00:59 UTC) #49
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 2 months ago (2016-10-14 19:53:40 UTC) #51
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 19:56:54 UTC) #53
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635
Cr-Commit-Position: refs/heads/master@{#425440}

Powered by Google App Engine
This is Rietveld 408576698