Changeset 252864 in webkit
- Timestamp:
- Nov 25, 2019 10:15:50 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 72 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r252856 r252864 1 2019-11-25 Zan Dobersek <zdobersek@igalia.com> 2 3 Support OffscreenCanvas as a CanvasImageSource type in CanvasDrawImage, CanvasFillStrokeStyles 4 https://bugs.webkit.org/show_bug.cgi?id=182921 5 6 Reviewed by Antti Koivisto. 7 8 * web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvas-expected.txt: 9 * web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvas.worker-expected.txt: 10 * web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvascopy-expected.txt: 11 * web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvascopy.worker-expected.txt: 12 * web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvaspattern-expected.txt: 13 * web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvaspattern.worker-expected.txt: 14 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.copy-expected.txt: 15 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.copy.worker-expected.txt: 16 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.destination-atop-expected.txt: 17 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.destination-atop.worker-expected.txt: 18 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.destination-in-expected.txt: 19 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.destination-in.worker-expected.txt: 20 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.source-in-expected.txt: 21 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.source-in.worker-expected.txt: 22 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.source-out-expected.txt: 23 * web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.source-out.worker-expected.txt: 24 * web-platform-tests/offscreen-canvas/conformance-requirements/2d.voidreturn-expected.txt: 25 * web-platform-tests/offscreen-canvas/conformance-requirements/2d.voidreturn.worker-expected.txt: 26 * web-platform-tests/offscreen-canvas/convert-to-blob/offscreencanvas.convert.to.blob.w-expected.txt: 27 * web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.canvas-expected.txt: 28 * web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.canvas.worker-expected.txt: 29 * web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.self.1-expected.txt: 30 * web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.self.1.worker-expected.txt: 31 * web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.self.2-expected.txt: 32 * web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.self.2.worker-expected.txt: 33 * web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas-expected.txt: 34 * web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.worker-expected.txt: 35 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.canvas-expected.txt: 36 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.canvas.worker-expected.txt: 37 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.nocontext-expected.txt: 38 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.nocontext.worker-expected.txt: 39 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.zerocanvas-expected.txt: 40 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.zerocanvas.worker-expected.txt: 41 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.modify.canvas1-expected.txt: 42 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.modify.canvas1.worker-expected.txt: 43 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.modify.canvas2-expected.txt: 44 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.modify.canvas2.worker-expected.txt: 45 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.paint.orientation.canvas-expected.txt: 46 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.paint.orientation.canvas.worker-expected.txt: 47 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.case-expected.txt: 48 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.case.worker-expected.txt: 49 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.null-expected.txt: 50 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.null.worker-expected.txt: 51 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.nullsuffix-expected.txt: 52 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.nullsuffix.worker-expected.txt: 53 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.undefined-expected.txt: 54 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.undefined.worker-expected.txt: 55 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.unrecognised-expected.txt: 56 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.unrecognised.worker-expected.txt: 57 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.unrecognisednull-expected.txt: 58 * web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.unrecognisednull.worker-expected.txt: 59 * web-platform-tests/offscreen-canvas/image-smoothing/image.smoothing-expected.txt: 60 * web-platform-tests/offscreen-canvas/image-smoothing/image.smoothing.worker-expected.txt: 61 * web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.alpha-expected.txt: 62 * web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.alpha.worker-expected.txt: 63 * web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.basic-expected.txt: 64 * web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.basic.worker-expected.txt: 65 * web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.transparent.1-expected.txt: 66 * web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.transparent.1.worker-expected.txt: 67 * web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.transparent.2-expected.txt: 68 * web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.transparent.2.worker-expected.txt: 69 * web-platform-tests/offscreen-canvas/the-offscreen-canvas/initial.reset.pattern-expected.txt: 70 * web-platform-tests/offscreen-canvas/the-offscreen-canvas/initial.reset.pattern.worker-expected.txt: 71 1 72 2019-11-25 Zan Dobersek <zdobersek@igalia.com> and Chris Lord <clord@igalia.com> 2 73 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvas-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.composite.globalAlpha.canvas Type error 4 PASS OffscreenCanvas test: 2d.composite.globalAlpha.canvas 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvas.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvascopy-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.composite.globalAlpha.canvascopy Type error4 FAIL OffscreenCanvas test: 2d.composite.globalAlpha.canvascopy assert_approx_equals: Red channel of the pixel at (50, 25) expected 0 +/- 2 but got 125 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvascopy.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error2 FAIL 2d assert_approx_equals: Red channel of the pixel at (50, 25) expected 0 +/- 2 but got 125 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvaspattern-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.composite.globalAlpha.canvaspattern Type error 4 PASS OffscreenCanvas test: 2d.composite.globalAlpha.canvaspattern 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.globalAlpha.canvaspattern.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.copy-expected.txt
r252856 r252864 4 4 5 5 6 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 6 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.copy.worker-expected.txt
r252856 r252864 1 1 2 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 2 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.destination-atop-expected.txt
r252856 r252864 4 4 5 5 6 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 6 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.destination-atop.worker-expected.txt
r252856 r252864 1 1 2 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 2 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.destination-in-expected.txt
r252856 r252864 4 4 5 5 6 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 6 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.destination-in.worker-expected.txt
r252856 r252864 1 1 2 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 2 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.source-in-expected.txt
r252856 r252864 4 4 5 5 6 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 6 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.source-in.worker-expected.txt
r252856 r252864 1 1 2 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 2 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.source-out-expected.txt
r252856 r252864 4 4 5 5 6 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 6 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/compositing/2d.composite.uncovered.nocontext.source-out.worker-expected.txt
r252856 r252864 1 1 2 FAIL drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. Type error 2 PASS drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged. 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/conformance-requirements/2d.voidreturn-expected.txt
r252856 r252864 4 4 5 5 6 FAIL void methods return undefined Type error 6 PASS void methods return undefined 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/conformance-requirements/2d.voidreturn.worker-expected.txt
r252856 r252864 1 1 2 FAIL void methods return undefined Type error 2 PASS void methods return undefined 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.canvas-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.drawImage.canvas Type error 4 PASS OffscreenCanvas test: 2d.drawImage.canvas 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.canvas.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.self.1-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.drawImage.self.1 Type error 4 PASS OffscreenCanvas test: 2d.drawImage.self.1 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.self.1.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.self.2-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.drawImage.self.2 Type error 4 PASS OffscreenCanvas test: 2d.drawImage.self.2 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.self.2.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.drawImage.zerocanvas assert_throws: function "function () { ctx.drawImage(offscreenCanvas2, 0, 0); }" threw object "TypeError: Type error" that is not a DOMException INVALID_STATE_ERR: property "code" is equal to undefined, expected 11 4 PASS OffscreenCanvas test: 2d.drawImage.zerocanvas 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.zerocanvas.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d assert_throws: function "function () { ctx.drawImage(offscreenCanvas2, 0, 0); }" threw object "TypeError: Type error" that is not a DOMException INVALID_STATE_ERR: property "code" is equal to undefined, expected 11 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.canvas-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.basic.canvas Type error 4 PASS OffscreenCanvas test: 2d.pattern.basic.canvas 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.canvas.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.nocontext-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.basic.nocontext Type error 4 PASS OffscreenCanvas test: 2d.pattern.basic.nocontext 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.nocontext.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.zerocanvas-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.basic.zerocanvas assert_throws: function "function () { ctx.createPattern(offscreenCanvas, 'repeat'); }" threw object "TypeError: Type error" that is not a DOMException INVALID_STATE_ERR: property "code" is equal to undefined, expected 11 4 PASS OffscreenCanvas test: 2d.pattern.basic.zerocanvas 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.zerocanvas.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d assert_throws: function "function () { ctx.createPattern(offscreenCanvas, 'repeat'); }" threw object "TypeError: Type error" that is not a DOMException INVALID_STATE_ERR: property "code" is equal to undefined, expected 11 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.modify.canvas1-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.modify.canvas1 Type error 4 PASS OffscreenCanvas test: 2d.pattern.modify.canvas1 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.modify.canvas1.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.modify.canvas2-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.modify.canvas2 Type error 4 PASS OffscreenCanvas test: 2d.pattern.modify.canvas2 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.modify.canvas2.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.paint.orientation.canvas-expected.txt
r252856 r252864 4 4 5 5 6 FAIL Canvas patterns do not get flipped when painted Type error 6 PASS Canvas patterns do not get flipped when painted 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.paint.orientation.canvas.worker-expected.txt
r252856 r252864 1 1 2 FAIL Canvas patterns do not get flipped when painted Type error 2 PASS Canvas patterns do not get flipped when painted 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.case-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.repeat.case assert_throws: function "function () { ctx.createPattern(offscreenCanvas, "Repeat"); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 4 PASS OffscreenCanvas test: 2d.pattern.repeat.case 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.case.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d assert_throws: function "function () { ctx.createPattern(offscreenCanvas, "Repeat"); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.null-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.repeat.null Type error 4 PASS OffscreenCanvas test: 2d.pattern.repeat.null 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.null.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d Type error 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.nullsuffix-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.repeat.nullsuffix assert_throws: function "function () { ctx.createPattern(offscreenCanvas, "repeat\0"); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 4 PASS OffscreenCanvas test: 2d.pattern.repeat.nullsuffix 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.nullsuffix.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d assert_throws: function "function () { ctx.createPattern(offscreenCanvas, "repeat\0"); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.undefined-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.repeat.undefined assert_throws: function "function () { ctx.createPattern(offscreenCanvas, undefined); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 4 PASS OffscreenCanvas test: 2d.pattern.repeat.undefined 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.undefined.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d assert_throws: function "function () { ctx.createPattern(offscreenCanvas, undefined); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.unrecognised-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.repeat.unrecognised assert_throws: function "function () { ctx.createPattern(offscreenCanvas, "invalid"); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 4 PASS OffscreenCanvas test: 2d.pattern.repeat.unrecognised 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.unrecognised.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d assert_throws: function "function () { ctx.createPattern(offscreenCanvas, "invalid"); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.unrecognisednull-expected.txt
r252856 r252864 2 2 3 3 4 FAIL OffscreenCanvas test: 2d.pattern.repeat.unrecognisednull assert_throws: function "function () { ctx.createPattern(offscreenCanvas, "null"); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 4 PASS OffscreenCanvas test: 2d.pattern.repeat.unrecognisednull 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.unrecognisednull.worker-expected.txt
r252856 r252864 1 1 2 FAIL 2d assert_throws: function "function () { ctx.createPattern(offscreenCanvas, "null"); }" threw object "TypeError: Type error" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 2 PASS 2d 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/image-smoothing/image.smoothing-expected.txt
r252856 r252864 2 2 PASS When the context is created, imageSmoothingEnabled must be set to true. 3 3 PASS On getting imageSmoothingEnabled, the user agent must return the last value it was set to. 4 FAIL Test that image smoothing is actually on by default. Type error 5 FAIL Test that image smoothing works when imageSmoothingEnabled is set to true Type error 6 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with drawImage(). Type error 7 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with fillRect and createPattern(). Type error8 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with fill() and createPattern(). Type error9 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with stroke() and createPattern(). Type error10 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) still works after repaints. Type error 4 PASS Test that image smoothing is actually on by default. 5 PASS Test that image smoothing works when imageSmoothingEnabled is set to true 6 PASS Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with drawImage(). 7 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with fillRect and createPattern(). assert_array_equals: property 0, expected 0 but got 176 8 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with fill() and createPattern(). assert_array_equals: property 0, expected 0 but got 176 9 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with stroke() and createPattern(). assert_array_equals: property 0, expected 0 but got 176 10 PASS Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) still works after repaints. 11 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/image-smoothing/image.smoothing.worker-expected.txt
r252856 r252864 2 2 PASS When the context is created, imageSmoothingEnabled must be set to true. 3 3 PASS On getting imageSmoothingEnabled, the user agent must return the last value it was set to. 4 FAIL Test that image smoothing is actually on by default. Type error 5 FAIL Test that image smoothing works when imageSmoothingEnabled is set to true Type error 6 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with drawImage(). Type error 7 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with fillRect and createPattern(). Type error8 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with fill() and createPattern(). Type error9 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with stroke() and createPattern(). Type error10 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) still works after repaints. Type error 4 PASS Test that image smoothing is actually on by default. 5 PASS Test that image smoothing works when imageSmoothingEnabled is set to true 6 PASS Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with drawImage(). 7 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with fillRect and createPattern(). assert_array_equals: property 0, expected 0 but got 176 8 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with fill() and createPattern(). assert_array_equals: property 0, expected 0 but got 176 9 FAIL Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with stroke() and createPattern(). assert_array_equals: property 0, expected 0 but got 176 10 PASS Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) still works after repaints. 11 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.alpha-expected.txt
r252856 r252864 4 4 5 5 6 FAIL Shadows are drawn correctly for partially-transparent canvases Type error 6 PASS Shadows are drawn correctly for partially-transparent canvases 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.alpha.worker-expected.txt
r252856 r252864 1 1 2 FAIL Shadows are drawn correctly for partially-transparent canvases Type error 2 PASS Shadows are drawn correctly for partially-transparent canvases 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.basic-expected.txt
r252856 r252864 4 4 5 5 6 FAIL Shadows are drawn for canvases Type error 6 PASS Shadows are drawn for canvases 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.basic.worker-expected.txt
r252856 r252864 1 1 2 FAIL Shadows are drawn for canvases Type error 2 PASS Shadows are drawn for canvases 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.transparent.1-expected.txt
r252856 r252864 4 4 5 5 6 FAIL Shadows are not drawn for transparent canvases Type error 6 PASS Shadows are not drawn for transparent canvases 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.transparent.1.worker-expected.txt
r252856 r252864 1 1 2 FAIL Shadows are not drawn for transparent canvases Type error 2 PASS Shadows are not drawn for transparent canvases 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.transparent.2-expected.txt
r252856 r252864 4 4 5 5 6 FAIL Shadows are not drawn for transparent parts of canvases Type error 6 PASS Shadows are not drawn for transparent parts of canvases 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/shadows/2d.shadow.canvas.transparent.2.worker-expected.txt
r252856 r252864 1 1 2 FAIL Shadows are not drawn for transparent parts of canvases Type error 2 PASS Shadows are not drawn for transparent parts of canvases 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/the-offscreen-canvas/initial.reset.pattern-expected.txt
r252856 r252864 4 4 5 5 6 FAIL Resetting the canvas state does not invalidate any existing patterns Type error 6 PASS Resetting the canvas state does not invalidate any existing patterns 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/offscreen-canvas/the-offscreen-canvas/initial.reset.pattern.worker-expected.txt
r252856 r252864 1 1 2 FAIL Resetting the canvas state does not invalidate any existing patterns Type error 2 PASS Resetting the canvas state does not invalidate any existing patterns 3 3 -
trunk/Source/WebCore/ChangeLog
r252863 r252864 1 2019-11-25 Zan Dobersek <zdobersek@igalia.com> 2 3 Support OffscreenCanvas as a CanvasImageSource type in CanvasDrawImage, CanvasFillStrokeStyles 4 https://bugs.webkit.org/show_bug.cgi?id=182921 5 6 Reviewed by Antti Koivisto. 7 8 No new tests. Covered by existing tests. 9 10 * bindings/js/CallTracerTypes.h: 11 * html/canvas/CanvasDrawImage.idl: 12 * html/canvas/CanvasFillStrokeStyles.idl: 13 * html/canvas/CanvasRenderingContext2DBase.cpp: 14 (WebCore::size): 15 (WebCore::CanvasRenderingContext2DBase::drawImage): 16 * html/canvas/CanvasRenderingContext2DBase.h: 17 * inspector/InspectorCanvas.cpp: 18 (WebCore::InspectorCanvas::indexForData): 19 (WebCore::InspectorCanvas::buildAction): 20 * inspector/InspectorCanvas.h: 21 1 22 2019-11-25 Zalan Bujtas <zalan@apple.com> 2 23 -
trunk/Source/WebCore/bindings/js/CallTracerTypes.h
r252628 r252864 35 35 #include "HTMLVideoElement.h" 36 36 #include "ImageData.h" 37 #if ENABLE(OFFSCREEN_CANVAS) 38 #include "OffscreenCanvas.h" 39 #endif 37 40 #include "Path2D.h" 38 41 #include "TypedOMCSSImageValue.h" … … 118 121 #endif 119 122 RefPtr<ImageData>, 123 #if ENABLE(OFFSCREEN_CANVAS) 124 RefPtr<OffscreenCanvas>, 125 #endif 120 126 RefPtr<Int32Array>, 121 127 RefPtr<Uint32Array>, -
trunk/Source/WebCore/html/OffscreenCanvas.h
r252856 r252864 85 85 86 86 Image* copiedImage() const final { return nullptr; } 87 bool hasCreatedImageBuffer() const final { return m_hasCreatedImageBuffer; } 87 88 88 89 CSSValuePool& cssValuePool(); … … 109 110 void setSize(const IntSize&) final; 110 111 void createImageBuffer() const final; 111 bool hasCreatedImageBuffer() const final { return m_hasCreatedImageBuffer; }112 112 void reset(); 113 113 -
trunk/Source/WebCore/html/canvas/CanvasDrawImage.idl
r239098 r252864 24 24 */ 25 25 26 // FIXME: This should include SVGImageElement and ImageBitmap. 27 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO && defined(ENABLE_CSS_TYPED_OM) && ENABLE_CSS_TYPED_OM 28 typedef (HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or TypedOMCSSImageValue) CanvasImageSource; 29 #elif defined(ENABLE_VIDEO) && ENABLE_VIDEO 30 typedef (HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap) CanvasImageSource; 31 #else 32 typedef (HTMLImageElement or HTMLCanvasElement or ImageBitmap) CanvasImageSource; 26 // FIXME: This should include SVGImageElement. 27 typedef (HTMLImageElement or HTMLCanvasElement or ImageBitmap 28 #if defined(ENABLE_CSS_TYPED_OM) && ENABLE_CSS_TYPED_OM 29 or TypedOMCSSImageValue 33 30 #endif 31 #if defined(ENABLE_OFFSCREEN_CANVAS) && ENABLE_OFFSCREEN_CANVAS 32 or OffscreenCanvas 33 #endif 34 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO 35 or HTMLVideoElement 36 #endif 37 ) CanvasImageSource; 34 38 35 39 [ -
trunk/Source/WebCore/html/canvas/CanvasFillStrokeStyles.idl
r239098 r252864 24 24 */ 25 25 26 // FIXME: This should include SVGImageElement and ImageBitmap. 27 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO && defined(ENABLE_CSS_TYPED_OM) && ENABLE_CSS_TYPED_OM 28 typedef (HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or TypedOMCSSImageValue) CanvasImageSource; 29 #elif defined(ENABLE_VIDEO) && ENABLE_VIDEO 30 typedef (HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap) CanvasImageSource; 31 #else 32 typedef (HTMLImageElement or HTMLCanvasElement or ImageBitmap) CanvasImageSource; 26 // FIXME: This should include SVGImageElement. 27 typedef (HTMLImageElement or HTMLCanvasElement or ImageBitmap 28 #if defined(ENABLE_CSS_TYPED_OM) && ENABLE_CSS_TYPED_OM 29 or TypedOMCSSImageValue 33 30 #endif 31 #if defined(ENABLE_OFFSCREEN_CANVAS) && ENABLE_OFFSCREEN_CANVAS 32 or OffscreenCanvas 33 #endif 34 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO 35 or HTMLVideoElement 36 #endif 37 ) CanvasImageSource; 34 38 35 39 [ -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp
r252856 r252864 1408 1408 } 1409 1409 1410 static inline FloatSize size( HTMLCanvasElement& canvasElement)1411 { 1412 return canvas Element.size();1410 static inline FloatSize size(CanvasBase& canvas) 1411 { 1412 return canvas.size(); 1413 1413 } 1414 1414 … … 1596 1596 } 1597 1597 1598 ExceptionOr<void> CanvasRenderingContext2DBase::drawImage( HTMLCanvasElement& sourceCanvas, const FloatRect& srcRect, const FloatRect& dstRect)1598 ExceptionOr<void> CanvasRenderingContext2DBase::drawImage(CanvasBase& sourceCanvas, const FloatRect& srcRect, const FloatRect& dstRect) 1599 1599 { 1600 1600 FloatRect srcCanvasRect = FloatRect(FloatPoint(), sourceCanvas.size()); -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h
r252628 r252864 63 63 class ImageBitmap; 64 64 class ImageData; 65 class OffscreenCanvas; 65 66 class Path2D; 66 67 class RenderStyle; … … 70 71 struct DOMMatrix2DInit; 71 72 72 #if ENABLE(VIDEO) && ENABLE(CSS_TYPED_OM) 73 using CanvasImageSource = Variant<RefPtr<HTMLImageElement>, RefPtr<HTMLVideoElement>, RefPtr<HTMLCanvasElement>, RefPtr<ImageBitmap>, RefPtr<TypedOMCSSImageValue>>; 74 #elif ENABLE(VIDEO) 75 using CanvasImageSource = Variant<RefPtr<HTMLImageElement>, RefPtr<HTMLVideoElement>, RefPtr<HTMLCanvasElement>, RefPtr<ImageBitmap>>; 76 #else 77 using CanvasImageSource = Variant<RefPtr<HTMLImageElement>, RefPtr<HTMLCanvasElement>, RefPtr<ImageBitmap>>; 78 #endif 73 using CanvasImageSource = Variant<RefPtr<HTMLImageElement>, RefPtr<HTMLCanvasElement>, RefPtr<ImageBitmap> 74 #if ENABLE(CSS_TYPED_OM) 75 , RefPtr<TypedOMCSSImageValue> 76 #endif 77 #if ENABLE(OFFSCREEN_CANVAS) 78 , RefPtr<OffscreenCanvas> 79 #endif 80 #if ENABLE(VIDEO) 81 , RefPtr<HTMLVideoElement> 82 #endif 83 >; 79 84 80 85 class CanvasRenderingContext2DBase : public CanvasRenderingContext, public CanvasPath { … … 334 339 ExceptionOr<void> drawImage(HTMLImageElement&, const FloatRect& srcRect, const FloatRect& dstRect); 335 340 ExceptionOr<void> drawImage(HTMLImageElement&, const FloatRect& srcRect, const FloatRect& dstRect, const CompositeOperator&, const BlendMode&); 336 ExceptionOr<void> drawImage( HTMLCanvasElement&, const FloatRect& srcRect, const FloatRect& dstRect);341 ExceptionOr<void> drawImage(CanvasBase&, const FloatRect& srcRect, const FloatRect& dstRect); 337 342 ExceptionOr<void> drawImage(Document&, CachedImage*, const RenderObject*, const FloatRect& imageRect, const FloatRect& srcRect, const FloatRect& dstRect, const CompositeOperator&, const BlendMode&); 338 343 #if ENABLE(VIDEO) -
trunk/Source/WebCore/inspector/InspectorCanvas.cpp
r252628 r252864 758 758 item = WTFMove(array); 759 759 }, 760 #if ENABLE(OFFSCREEN_CANVAS) 761 [&] (const RefPtr<OffscreenCanvas> offscreenCanvas) { 762 String dataURL = "data:,"_s; 763 764 if (offscreenCanvas->originClean() && offscreenCanvas->hasCreatedImageBuffer()) { 765 if (auto *buffer = offscreenCanvas->buffer()) 766 dataURL = buffer->toDataURL("image/png"); 767 } 768 769 index = indexForData(dataURL); 770 }, 771 #endif 760 772 [&] (const String& value) { item = JSON::Value::create(value); } 761 773 ); … … 1034 1046 addParameter(indexForData(value), RecordingSwizzleTypes::Image); 1035 1047 }, 1048 #if ENABLE(OFFSCREEN_CANVAS) 1049 [&] (const RefPtr<OffscreenCanvas>& value) { 1050 if (value) 1051 addParameter(indexForData(value), RecordingSwizzleTypes::Image); 1052 }, 1053 #endif 1036 1054 #if ENABLE(VIDEO) 1037 1055 [&] (const RefPtr<HTMLVideoElement>& value) { -
trunk/Source/WebCore/inspector/InspectorCanvas.h
r251425 r252864 52 52 class ImageBitmap; 53 53 class ImageData; 54 #if ENABLE(OFFSCREEN_CANVAS) 55 class OffscreenCanvas; 56 #endif 54 57 #if ENABLE(CSS_TYPED_OM) 55 58 class TypedOMCSSImageValue; … … 130 133 #endif 131 134 Inspector::ScriptCallFrame, 135 #if ENABLE(OFFSCREEN_CANVAS) 136 RefPtr<OffscreenCanvas>, 137 #endif 132 138 String 133 139 >;
Note: See TracChangeset
for help on using the changeset viewer.