Canvas: add clipping path support.

This commit is contained in:
Mátyás Mustoha 2015-04-21 12:45:28 +02:00
parent 3a1bf45dea
commit 6fd6eefb35
29 changed files with 16 additions and 134 deletions

View file

@ -1,5 +0,0 @@
[2d.composite.clip.copy.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.destination-atop.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.destination-in.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.destination-out.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.destination-over.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.lighter.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.source-atop.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.source-in.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.source-out.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.source-over.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.composite.clip.xor.html]
type: testharness
[fill() does not affect pixels outside the clip region.]
expected: FAIL

View file

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

View file

@ -1,5 +0,0 @@
[2d.clearRect.clip.html]
type: testharness
[clearRect is affected by clipping regions]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.fillRect.clip.html]
type: testharness
[fillRect is affected by clipping regions]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.strokeRect.clip.html]
type: testharness
[strokeRect is affected by clipping regions]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.path.clip.basic.1.html]
type: testharness
[Canvas test: 2d.path.clip.basic.1]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.path.clip.basic.2.html]
type: testharness
[Canvas test: 2d.path.clip.basic.2]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.path.clip.empty.html]
type: testharness
[Canvas test: 2d.path.clip.empty]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.path.clip.intersect.html]
type: testharness
[Canvas test: 2d.path.clip.intersect]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.path.clip.winding.1.html]
type: testharness
[Canvas test: 2d.path.clip.winding.1]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.path.clip.winding.2.html]
type: testharness
[Canvas test: 2d.path.clip.winding.2]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.shadow.clip.2.html]
type: testharness
[Shadows are not drawn outside the clipping region]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.state.saverestore.clip.html]
type: testharness
[save()/restore() affects the clipping path]
expected: FAIL

View file

@ -6924,9 +6924,6 @@
[CanvasRenderingContext2D interface: operation clip(CanvasFillRule)]
expected: FAIL
[CanvasRenderingContext2D interface: operation clip(Path2D,CanvasFillRule)]
expected: FAIL
[CanvasRenderingContext2D interface: operation resetClip()]
expected: FAIL
@ -7086,15 +7083,6 @@
[CanvasRenderingContext2D interface: calling scrollPathIntoView(Path2D) on document.createElement("canvas").getContext("2d") with too few arguments must throw TypeError]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "clip" with the proper type (39)]
expected: FAIL
[CanvasRenderingContext2D interface: calling clip(CanvasFillRule) on document.createElement("canvas").getContext("2d") with too few arguments must throw TypeError]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "clip" with the proper type (40)]
expected: FAIL
[CanvasRenderingContext2D interface: calling clip(Path2D,CanvasFillRule) on document.createElement("canvas").getContext("2d") with too few arguments must throw TypeError]
expected: FAIL

View file

@ -1,5 +0,0 @@
[initial.reset.clip.html]
type: testharness
[Resetting the canvas state resets the current clip region]
expected: FAIL