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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/static/drag-image.html

Issue 1646543002: Create the drag image at target scale factor when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout test Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/virtual/scalefactor200/fast/hidpi/static/drag-image-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/hidpi/static/drag-image.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/drag-image.html b/third_party/WebKit/LayoutTests/fast/hidpi/static/drag-image.html
similarity index 83%
copy from third_party/WebKit/LayoutTests/fast/images/drag-image.html
copy to third_party/WebKit/LayoutTests/fast/hidpi/static/drag-image.html
index 744bbd61e725be2fb259b9e2e142fe35baf7f776..bad416c6aa4b4819956169c98089459428ffea5c 100644
--- a/third_party/WebKit/LayoutTests/fast/images/drag-image.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/static/drag-image.html
@@ -1,19 +1,18 @@
<!DOCTYPE html>
<style>
#image {
- width: 22px;
- height: 22px;
+ width: 100px;
+ height: 50px;
oshima 2016/01/27 19:44:51 I'm using skewed size (original image is square) t
image-rendering: pixelated;
}
</style>
<body>
- <!-- Simulate dragging an image and dump the generated drag image. -->
- <img id="image" src="resources/grid-small.png">
+ <!-- Simulate dragging an image and dump the generated drag image at highder pixel density. -->
+ <image id="image" srcset="../resources/image-set-1x.png 1x, ../resources/image-set-2x.png 2x">
</body>
<script>
function drag() {
testRunner.dumpDragImage();
-
var image = document.getElementById('image');
var startX = image.offsetLeft + image.offsetWidth / 2;
var startY = image.offsetTop + image.offsetHeight / 2;
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/virtual/scalefactor200/fast/hidpi/static/drag-image-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698