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

Unified Diff: LayoutTests/fast/images/drag-image-2.html

Issue 1179263003: ViewPainter should skip painting if not inside painting subtree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | LayoutTests/fast/images/drag-image-2-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/images/drag-image-2.html
diff --git a/LayoutTests/fast/images/drag-image.html b/LayoutTests/fast/images/drag-image-2.html
similarity index 66%
copy from LayoutTests/fast/images/drag-image.html
copy to LayoutTests/fast/images/drag-image-2.html
index 744bbd61e725be2fb259b9e2e142fe35baf7f776..312095d0c8164440df690afc51cf9e4ee91e6027 100644
--- a/LayoutTests/fast/images/drag-image.html
+++ b/LayoutTests/fast/images/drag-image-2.html
@@ -1,14 +1,21 @@
<!DOCTYPE html>
<style>
+ body {
+ background-color: red;
+ }
+
#image {
- width: 22px;
- height: 22px;
- image-rendering: pixelated;
+ width: 50px;
+ height: 50px;
+ background-image: url('resources/grid-transparent.png');
+ -webkit-user-drag: element;
}
</style>
<body>
- <!-- Simulate dragging an image and dump the generated drag image. -->
- <img id="image" src="resources/grid-small.png">
+ <!-- Simulate dragging an element and dump the generated drag image.
+ The expected result should be the same as the input image,
+ without seeing a red background. -->
+ <div id="image"></div>
</body>
<script>
function drag() {
« no previous file with comments | « no previous file | LayoutTests/fast/images/drag-image-2-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698