New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 650456 link

Starred by 14 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Center downloaded images vertically and horizontally in CCT

Project Member Reported by dah...@chromium.org, Sep 26 2016

Issue description

Per UI review, we should center all images vertically and horizontally in the media consumption CCT.

This is a non-blocking bug for M55.


 
Labels: M-55
Actually marking M-55.
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 14 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8512a83031e6531c976f4af85a28dbeef58bd635

commit 8512a83031e6531c976f4af85a28dbeef58bd635
Author: dfalcantara <dfalcantara@chromium.org>
Date: Fri Oct 14 19:53:13 2016

[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

Review-Url: https://codereview.chromium.org/2376163002
Cr-Commit-Position: refs/heads/master@{#425440}

[modify] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/LayoutTests/TestExpectations
[modify] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/LayoutTests/fast/images/exif-orientation-height-image-document-expected.png
[modify] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/LayoutTests/fast/images/exif-orientation-height-image-document-expected.txt
[modify] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/LayoutTests/fast/images/image-click-scale-restore-zoomed-image-expected.txt
[modify] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/LayoutTests/fast/images/image-zoom-to-25-expected.txt
[modify] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/image-document-default-src-none-expected.txt
[add] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/LayoutTests/platform/android/fast/images/image-click-scale-restore-zoomed-image-expected.txt
[add] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/LayoutTests/platform/android/http/tests/security/contentSecurityPolicy/image-document-default-src-none-expected.txt
[modify] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/LayoutTests/svg/custom/anchor-on-use-expected.svg
[modify] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/Source/core/html/ImageDocument.cpp
[modify] https://crrev.com/8512a83031e6531c976f4af85a28dbeef58bd635/third_party/WebKit/Source/core/html/ImageDocument.h

This CL seems to have stuck; I accidentally noticed it working in Canary on desktop and thought "geez, that looks swell".
Status: Fixed (was: Assigned)

Comment 6 by dhw@chromium.org, Feb 15 2017

Cc: nyerramilli@chromium.org ainslie@chromium.org bettes@chromium.org
 Issue 249272  has been merged into this issue.
Cc: pkasting@chromium.org schenney@chromium.org
 Issue 118636  has been merged into this issue.

Comment 8 by noel@chromium.org, Nov 6 2017

Status: Assigned (was: Fixed)
Images with orientation are not handled correctly with the changes above.

For example, load http://fredericiana.com/media/2013/monalisa.jpg and resize to see odd effects with light box being off-center ... example attached.




Screen Shot 2017-11-06 at 1.24.59 PM.png
1.2 MB View Download

Comment 9 by noel@chromium.org, Nov 6 2017

^^^ Tested with Version 64.0.3253.3 (Official Build) dev (64-bit) Mac OSX.
Cc: -nyerramilli@chromium.org
Components: -UI>Browser>Downloads Blink>Image
Owner: ----
Status: Available (was: Assigned)
Cc: dtrainor@chromium.org
Components: UI>Browser>Downloads
Labels: -M-55
Status: Untriaged (was: Available)
Marking as untriaged, so it comes up in our weekly triage queue

Comment 12 by noel@chromium.org, Nov 6 2017

Labels: OS-Mac

Comment 13 by sdy@chromium.org, Nov 7 2017

Cc: ccameron@chromium.org
Those effects may related to color correction. +ccameron@.
The background is supposed to be sRGB 0.05,0.05,0.05

There shouldn't be a lightbox -- the black there should should match the background (they go through different paths) -- it's "acceptable" for the color values to be off by 1/255, but that seems like quite a bit. Could you upload that monitor's color profile.

Comment 15 by noel@chromium.org, Nov 7 2017

According to System Preferences -> Displays, the screen I recorded on is using the ./System/Library/ColorSync/Profiles/DCI(P3) RGB.icc profile.  FWIW, I see the same issue if I use the ./System/Library/ColorSync/Profiles/AdobeRGB1998.icc profile.

Using dev-tools show "Layer borders" feature, I notice the "off-center light box" is exactly correlated with compositing tile boundaries.

DCI(P3) RGB.icc
548 bytes Download
Components: -UI>Browser>Downloads
Owner: ccameron@chromium.org
Status: Assigned (was: Untriaged)

Sign in to add a comment