mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-29 01:00:41 +00:00
Bug 571532 - Remove support for ctx.globalCompositeOperation = 'darker'. r=vlad
--HG-- extra : rebase_source : 0d4c977df2d807642228c4ebeca567dd40beb09d
This commit is contained in:
parent
da532efb6a
commit
c719448bfe
@ -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)
|
||||
|
@ -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'");
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user