Canvas: implement context state save/restore.

This commit is contained in:
Mátyás Mustoha 2015-04-15 12:52:13 +02:00
parent f164cc253e
commit 5b8416a2b6
21 changed files with 157 additions and 165 deletions

View file

@ -1,5 +0,0 @@
[2d.line.width.transformed.html]
type: testharness
[Line stroke widths are affected by scale transformations]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.state.saverestore.bitmap.html]
type: testharness
[save()/restore() does not affect the current bitmap]
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +0,0 @@
[2d.state.saverestore.stack.html]
type: testharness
[save()/restore() can be nested as a stack]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.state.saverestore.stackdepth.html]
type: testharness
[save()/restore() stack depth is not unreasonably limited]
expected: FAIL

View file

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

View file

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

View file

@ -1,5 +0,0 @@
[2d.state.saverestore.underflow.html]
type: testharness
[restore() with an empty stack has no effect]
expected: FAIL

View file

@ -1,5 +0,0 @@
[2d.transformation.scale.negative.html]
type: testharness
[scale() with negative scale factors works]
expected: FAIL

View file

@ -6870,12 +6870,6 @@
[CanvasRenderingContext2D interface: operation commit()]
expected: FAIL
[CanvasRenderingContext2D interface: operation save()]
expected: FAIL
[CanvasRenderingContext2D interface: operation restore()]
expected: FAIL
[CanvasRenderingContext2D interface: attribute currentTransform]
expected: FAIL
@ -7017,12 +7011,6 @@
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "commit" with the proper type (3)]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "save" with the proper type (4)]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "restore" with the proper type (5)]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "currentTransform" with the proper type (6)]
expected: FAIL