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

Issue 648413 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
inactive
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Drag and drop: gmail and inbox's drag shadows are enormous

Project Member Reported by hush@chromium.org, Sep 19 2016

Issue description

Steps to reproduce: 
1. enable drag and drop on webview "--enable-touch-drag-drop"
2. open an email thread in gmail
3. long press to select some text
4. long press the same text to start drag and drop
5. observe that the shadow image is way bigger than the text.
 

Comment 1 by hush@chromium.org, Sep 19 2016

gmail.png
1.0 MB View Download

Comment 2 by hush@chromium.org, Sep 20 2016

Cc: ppolise...@chromium.org
Labels: M-54
We didn't apply the page scale when producing the bitmap.
The WebView in gmail app has a page scale of 0.42, while my own drag and drop test app has a page scale of 1.

I will have a fix out in a brief moment.

ppolisetty: could you add this case into your test plan? 
Basically, make sure the drag shadow image is the same as what you drag in gmail and inbox.
hush@, thanks, sure I'll add it.

Comment 4 by hush@chromium.org, Sep 20 2016

Cc: krav...@chromium.org
Labels: ReleaseBlock-Stable
Hello kravula@:
This problem is reproducible on Clank too. 
You just need to go to chrome Settings->Accessiblity-> Check the box for "Force Enable Zoom"
Then go to a site and zoom in on the page.
You will see that the drag shadow image is too small.

Comment 5 by hush@chromium.org, Sep 20 2016

kravula@:
Please add this test case to chrome's test plan too. 

Labels: -Pri-2 Pri-1

Comment 7 by hush@chromium.org, Sep 20 2016

FYI fix is in code review: https://codereview.chromium.org/2352773003/

Comment 8 by hush@chromium.org, Sep 20 2016

Cc: dcheng@chromium.org
Labels: OS-Chrome
The bug is reproducible on ChromeOS as well. I tried on kaznacheev@'s chromebook.
This is not surprising because the blink code that generates the image does not consider page scale factor.
Project Member

Comment 9 by bugdroid1@chromium.org, Sep 22 2016

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

commit adba2165f4c6e1c7d4a78179d6e066aa8e37f938
Author: hush <hush@chromium.org>
Date: Thu Sep 22 02:26:58 2016

Fix the scale of Drag and Drop shadow image.

Physical Pixel = CSS pixel * DIP scale * page scale.
In the case of our bitmap shadow image, page scale is not applied to it.

BUG= 648413 

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

[modify] https://crrev.com/adba2165f4c6e1c7d4a78179d6e066aa8e37f938/third_party/WebKit/Source/core/frame/LocalFrame.cpp
[modify] https://crrev.com/adba2165f4c6e1c7d4a78179d6e066aa8e37f938/third_party/WebKit/Source/core/frame/LocalFrameTest.cpp

Comment 10 by hush@chromium.org, Sep 22 2016

Labels: Merge-Request-54

Comment 11 by dimu@chromium.org, Sep 22 2016

Labels: -Merge-Request-54 Merge-Approved-54 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M54 (branch: 2840)
Project Member

Comment 12 by bugdroid1@chromium.org, Sep 22 2016

Labels: -merge-approved-54 merge-merged-2840
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b7cafe4f263044ed309cabf89b0333827199c864

commit b7cafe4f263044ed309cabf89b0333827199c864
Author: Hui Shu <hush@google.com>
Date: Thu Sep 22 02:55:06 2016

Fix the scale of Drag and Drop shadow image.

Physical Pixel = CSS pixel * DIP scale * page scale.
In the case of our bitmap shadow image, page scale is not applied to it.

BUG= 648413 

Review-Url: https://codereview.chromium.org/2352773003
Cr-Commit-Position: refs/heads/master@{#420243}
(cherry picked from commit adba2165f4c6e1c7d4a78179d6e066aa8e37f938)

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

Cr-Commit-Position: refs/branch-heads/2840@{#485}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/b7cafe4f263044ed309cabf89b0333827199c864/third_party/WebKit/Source/core/frame/LocalFrame.cpp
[modify] https://crrev.com/b7cafe4f263044ed309cabf89b0333827199c864/third_party/WebKit/Source/core/frame/LocalFrameTest.cpp

Comment 13 by hush@chromium.org, Sep 22 2016

Status: Fixed (was: Assigned)
Fix verified on Pixel C/NRD91M, seed/NRD91M, Monochrome: 54.0.2840.42
"Chrome on Android" ->Verified in M54-54.0.2840.42 build on Nexus 9/NRD91M
Fix verified on Nexus6/NRD91N, Monochrome: 55.0.2882.3
Status: Verified (was: Fixed)
Checked on M55 ChromeOS dev on minnie.
The text is bigger but not not enormous 
Project Member

Comment 18 by bugdroid1@chromium.org, Oct 27 2016

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

commit b7cafe4f263044ed309cabf89b0333827199c864
Author: Hui Shu <hush@google.com>
Date: Thu Sep 22 02:55:06 2016

Fix the scale of Drag and Drop shadow image.

Physical Pixel = CSS pixel * DIP scale * page scale.
In the case of our bitmap shadow image, page scale is not applied to it.

BUG= 648413 

Review-Url: https://codereview.chromium.org/2352773003
Cr-Commit-Position: refs/heads/master@{#420243}
(cherry picked from commit adba2165f4c6e1c7d4a78179d6e066aa8e37f938)

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

Cr-Commit-Position: refs/branch-heads/2840@{#485}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/b7cafe4f263044ed309cabf89b0333827199c864/third_party/WebKit/Source/core/frame/LocalFrame.cpp
[modify] https://crrev.com/b7cafe4f263044ed309cabf89b0333827199c864/third_party/WebKit/Source/core/frame/LocalFrameTest.cpp

Sign in to add a comment