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

Unified Diff: LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html

Issue 1301903006: A couple of ref-test tweaks in preparation of Skia changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/canvas/canvas-createImageBitmap-colorClamping-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html
diff --git a/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html b/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html
index a717fa4b4dd36f431d2917cefe917b125e33f9ac..fc70a9890d1081eed96107802aecc475deb6e174 100644
--- a/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html
+++ b/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html
@@ -15,7 +15,13 @@ function paintCanvas(canvas)
{
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'orange';
- ctx.fillRect(50, 0, 100, 200);
+
+ ctx.save();
+ ctx.beginPath();
+ ctx.rect(50, 0, 100, 200);
+ ctx.clip();
+ ctx.fillRect(0, 0, 200, 200);
+ ctx.restore();
ctx.fillStyle = 'green';
ctx.fillRect(75, 75, 50, 50);
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-createImageBitmap-colorClamping-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698