Drag ghost image is cropped when the dragged element is translated.
Reported by
simon.ve...@gmail.com,
Dec 31 2017
|
||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36 Example URL: https://codepen.io/simonverreydt/pen/opWmNz Steps to reproduce the problem: 1. Scroll to the bottom of the viewport 2. Start dragging the pink square What is the expected behavior? What went wrong? The pink square ghost image is cropped Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 63.0.3239.84 Channel: n/a OS Version: 10.0 Flash Version: The cropping does seems to not happen if : - The CSS transform is removed on #inner OR - The viewport is not scrolled
,
Jan 2 2018
Assigning to Chris since Philip is on vacation.
,
Jan 2 2018
Oddly, I can reproduce this at ToT even with the CL referenced in comment 1 reverted.
,
Jan 3 2018
This doesn't need to block 63, but a fix should be mrged to 64.
,
Jan 3 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/16b3d20c33f49cc89d8f0b0c62cf93fde4675407 commit 16b3d20c33f49cc89d8f0b0c62cf93fde4675407 Author: Chris Harrelson <chrishtr@chromium.org> Date: Wed Jan 03 22:14:33 2018 Clip dragged images before calling CreateDragImageForFrame. Also, pass the paint offset independently of the bounds. The two callsites of CreateDragImageForFrame paint in different coordinate spaces. Also, the callsite in DragController is already clipping. This fixes two issues: that the bounds rect did not match the coordinate space of the clip applied in CreateDragImageForFrame, and that the coordinate space is not necessarily the LayoutView. Bug: 798182 Change-Id: Ie792095806613cd1e6238bbb0d1b8335350ede01 Reviewed-on: https://chromium-review.googlesource.com/848499 Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#526835} [modify] https://crrev.com/16b3d20c33f49cc89d8f0b0c62cf93fde4675407/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp [modify] https://crrev.com/16b3d20c33f49cc89d8f0b0c62cf93fde4675407/third_party/WebKit/Source/core/clipboard/DataTransfer.h [modify] https://crrev.com/16b3d20c33f49cc89d8f0b0c62cf93fde4675407/third_party/WebKit/Source/core/clipboard/DataTransferTest.cpp [modify] https://crrev.com/16b3d20c33f49cc89d8f0b0c62cf93fde4675407/third_party/WebKit/Source/core/page/DragController.cpp
,
Jan 3 2018
,
Jan 4 2018
This bug requires manual review: M64 has already been promoted to the beta branch, so this requires manual review Please contact the milestone owner if you have questions. Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), abdulsyed@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 5 2018
Is this well tested in Canary and Dev? Can you please confirm if this is a safe merge overall? We are only a few weeks away from stable.
,
Jan 5 2018
It is tested in Canary and Dev, and works correctly. The fix is safe.
,
Jan 8 2018
Pinging this thread. crbug.com/798704 was approved for M64 merge, but actually builds on the CL fixing this bug. May I also merge this one?
,
Jan 9 2018
Approving merge for M64. Branch:3282
,
Jan 9 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f4ec59c74336a435a027dda74da9be13c95e0453 commit f4ec59c74336a435a027dda74da9be13c95e0453 Author: Chris Harrelson <chrishtr@chromium.org> Date: Tue Jan 09 19:19:29 2018 Clip dragged images before calling CreateDragImageForFrame. Also, pass the paint offset independently of the bounds. The two callsites of CreateDragImageForFrame paint in different coordinate spaces. Also, the callsite in DragController is already clipping. This fixes two issues: that the bounds rect did not match the coordinate space of the clip applied in CreateDragImageForFrame, and that the coordinate space is not necessarily the LayoutView. TBR=chrishtr@chromium.org (cherry picked from commit 16b3d20c33f49cc89d8f0b0c62cf93fde4675407) Bug: 798182 Change-Id: Ie792095806613cd1e6238bbb0d1b8335350ede01 Reviewed-on: https://chromium-review.googlesource.com/848499 Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#526835} Reviewed-on: https://chromium-review.googlesource.com/857883 Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/branch-heads/3282@{#464} Cr-Branched-From: 5fdc0fab22ce7efd32532ee989b223fa12f8171e-refs/heads/master@{#520840} [modify] https://crrev.com/f4ec59c74336a435a027dda74da9be13c95e0453/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp [modify] https://crrev.com/f4ec59c74336a435a027dda74da9be13c95e0453/third_party/WebKit/Source/core/clipboard/DataTransfer.h [modify] https://crrev.com/f4ec59c74336a435a027dda74da9be13c95e0453/third_party/WebKit/Source/core/clipboard/DataTransferTest.cpp [modify] https://crrev.com/f4ec59c74336a435a027dda74da9be13c95e0453/third_party/WebKit/Source/core/page/DragController.cpp
,
Jan 9 2018
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by sc00335...@techmahindra.com
, Jan 1 2018Components: Blink>DataTransfer
Labels: -Pri-2 -Type-Compat hasbisect-per-revision ReleaseBlock-Stable Triaged-ET M-63 Needs-Triage-M63 OS-Linux OS-Mac Pri-1 Type-Bug-Regression
Owner: pdr@chromium.org
Status: Assigned (was: Unconfirmed)