Canvas: implement global composition and blending.

This commit is contained in:
Mátyás Mustoha 2015-04-20 13:16:45 +02:00
parent 8efd70b01b
commit a8343a0750
31 changed files with 221 additions and 127 deletions

View file

@ -1,5 +0,0 @@
[2d.composite.operation.casesensitive.html]
type: testharness
[Canvas test: 2d.composite.operation.casesensitive]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.operation.clear.html]
type: testharness
[Canvas test: 2d.composite.operation.clear]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.operation.darker.html]
type: testharness
[Canvas test: 2d.composite.operation.darker]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.operation.default.html]
type: testharness
[Canvas test: 2d.composite.operation.default]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.operation.highlight.html]
type: testharness
[Canvas test: 2d.composite.operation.highlight]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.operation.nullsuffix.html]
type: testharness
[Canvas test: 2d.composite.operation.nullsuffix]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.operation.over.html]
type: testharness
[Canvas test: 2d.composite.operation.over]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.operation.unrecognised.html]
type: testharness
[Canvas test: 2d.composite.operation.unrecognised]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.solid.destination-atop.html]
type: testharness
[Canvas test: 2d.composite.solid.destination-atop]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.solid.destination-in.html]
type: testharness
[Canvas test: 2d.composite.solid.destination-in]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.solid.destination-out.html]
type: testharness
[Canvas test: 2d.composite.solid.destination-out]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.solid.destination-over.html]
type: testharness
[Canvas test: 2d.composite.solid.destination-over]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.solid.lighter.html]
type: testharness
[Canvas test: 2d.composite.solid.lighter]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.solid.source-out.html]
type: testharness
[Canvas test: 2d.composite.solid.source-out]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.solid.xor.html]
type: testharness
[Canvas test: 2d.composite.solid.xor]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.transparent.lighter.html]
type: testharness
[Canvas test: 2d.composite.transparent.lighter]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.uncovered.fill.copy.html]
type: testharness
[fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.uncovered.fill.destination-atop.html]
type: testharness
[fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.uncovered.fill.destination-in.html]
type: testharness
[fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.uncovered.fill.source-in.html]
type: testharness
[fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.uncovered.fill.source-out.html]
type: testharness
[fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.strokeRect.globalcomposite.html]
type: testharness
[strokeRect is not affected by globalCompositeOperation]
expected: FAIL

View file

@ -0,0 +1,5 @@
[2d.shadow.composite.1.html]
type: testharness
[Shadows are drawn using globalCompositeOperation]
expected: FAIL

View file

@ -0,0 +1,5 @@
[2d.shadow.composite.2.html]
type: testharness
[Shadows are drawn using globalCompositeOperation]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.state.saverestore.globalCompositeOperation.html]
type: testharness
[save()/restore() works for globalCompositeOperation]
expected: FAIL

View file

@ -6879,9 +6879,6 @@
[CanvasRenderingContext2D interface: operation resetTransform()]
expected: FAIL
[CanvasRenderingContext2D interface: attribute globalCompositeOperation]
expected: FAIL
[CanvasRenderingContext2D interface: operation createPattern(CanvasImageSource,DOMString)]
expected: FAIL
@ -7017,9 +7014,6 @@
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "resetTransform" with the proper type (12)]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "globalCompositeOperation" with the proper type (14)]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "strokeStyle" with the proper type (16)]
expected: FAIL