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

Issue 2541423003: Fix context menu "Copy image" not working sometimes at hidpi. (Closed)

Created:
4 years ago by Bret
Modified:
4 years ago
Reviewers:
chrishtr, esprehn
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix context menu "Copy image" not working sometimes at hidpi. Coordinate conversion was happening from viewport->window when opening the context menu, but not the other direction when asking to copy an image. Also fixes the same issue when using "Download image" on a <canvas> (using "Download image" on an <img> uses a different codepath). R=esprehn@chromium.org TEST=Right-click the top-left corner of an image and select "Copy image" with dsf>1. The image should be copied correctly. BUG=667223 Committed: https://crrev.com/9e97b2c8a89e7a89003906b5e11a30a6260a4099 Cr-Commit-Position: refs/heads/master@{#439966}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M content/renderer/render_frame_impl.cc View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
Bret
4 years ago (2016-12-01 20:26:37 UTC) #1
esprehn
Can we get a unit test?
4 years ago (2016-12-01 20:29:37 UTC) #2
Bret
On 2016/12/01 20:29:37, esprehn wrote: > Can we get a unit test? Sorry for the ...
4 years ago (2016-12-07 22:15:30 UTC) #3
esprehn
Could you write a test like this one? https://cs.chromium.org/chromium/src/content/renderer/render_frame_impl_browsertest.cc?q=file:test.cc+RenderFrameImpl&sq=package:chromium&l=336 lgtm if there really is no ...
4 years ago (2016-12-08 02:20:24 UTC) #5
chrishtr
lgtm
4 years ago (2016-12-09 18:32:16 UTC) #6
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/2541423003/1
4 years ago (2016-12-20 22:45:26 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-21 01:31:06 UTC) #11
commit-bot: I haz the power
4 years ago (2016-12-21 01:34:47 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9e97b2c8a89e7a89003906b5e11a30a6260a4099
Cr-Commit-Position: refs/heads/master@{#439966}

Powered by Google App Engine
This is Rietveld 408576698