Bug 571532 - Remove support for ctx.globalCompositeOperation = 'darker'. r=vlad

--HG--
extra : rebase_source : 0d4c977df2d807642228c4ebeca567dd40beb09d
This commit is contained in:
Ms2ger@gmail.com 2010-07-15 10:12:34 +02:00
parent da532efb6a
commit c719448bfe
2 changed files with 1 additions and 3 deletions

View File

@ -3518,10 +3518,8 @@ nsCanvasRenderingContext2D::SetGlobalCompositeOperation(const nsAString& op)
if (op.EqualsLiteral(cvsop)) \
thebes_op = gfxContext::OPERATOR_##thebesop;
// XXX "darker" isn't really correct
CANVAS_OP_TO_THEBES_OP("clear", CLEAR)
else CANVAS_OP_TO_THEBES_OP("copy", SOURCE)
else CANVAS_OP_TO_THEBES_OP("darker", SATURATE) // XXX
else CANVAS_OP_TO_THEBES_OP("destination-atop", DEST_ATOP)
else CANVAS_OP_TO_THEBES_OP("destination-in", DEST_IN)
else CANVAS_OP_TO_THEBES_OP("destination-out", DEST_OUT)

View File

@ -1501,7 +1501,7 @@ var ctx = canvas.getContext('2d');
ctx.globalCompositeOperation = 'xor';
ctx.globalCompositeOperation = 'darker';
todo(ctx.globalCompositeOperation == 'xor', "ctx.globalCompositeOperation == 'xor'");
ok(ctx.globalCompositeOperation == 'xor', "ctx.globalCompositeOperation == 'xor'");
}