Auto merge of #25087 - bblanke:OffscreenCanvasasCanvasImageSoure, r=jdm

Support OffscreenCanvas as CanvasImageSource

Added methods to canvas_data to support drawing an offscreen canvas onto another canvas
Bug fix: Swapped OffscreenCanvas width and height parameters to match Mozilla spec
Tests: Updated metadata for 866 tests

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24269 (GitHub issue number if applicable)

<!-- Either: -->
- [x] These changes do not require tests because they are covered by existing tests

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2019-12-05 01:49:58 -05:00 committed by GitHub
commit 05922c380c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
869 changed files with 133 additions and 3478 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.canvas.html]
[OffscreenCanvas test: 2d.composite.globalAlpha.canvas]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.canvas.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.canvascopy.html]
[OffscreenCanvas test: 2d.composite.globalAlpha.canvascopy]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.canvascopy.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.canvaspattern.html]
[OffscreenCanvas test: 2d.composite.globalAlpha.canvaspattern]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.canvaspattern.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.fill.html]
[OffscreenCanvas test: 2d.composite.globalAlpha.fill]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.globalAlpha.fill.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.copy.html]
[OffscreenCanvas test: 2d.composite.solid.copy]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.copy.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.destination-atop.html]
[OffscreenCanvas test: 2d.composite.solid.destination-atop]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.destination-atop.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.destination-in.html]
[OffscreenCanvas test: 2d.composite.solid.destination-in]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.destination-in.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.destination-over.html]
[OffscreenCanvas test: 2d.composite.solid.destination-over]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.destination-over.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.lighter.html]
[OffscreenCanvas test: 2d.composite.solid.lighter]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.lighter.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.source-atop.html]
[OffscreenCanvas test: 2d.composite.solid.source-atop]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.source-atop.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.source-in.html]
[OffscreenCanvas test: 2d.composite.solid.source-in]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.source-in.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.source-over.html]
[OffscreenCanvas test: 2d.composite.solid.source-over]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.solid.source-over.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.copy.html]
[OffscreenCanvas test: 2d.composite.transparent.copy]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.copy.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.destination-atop.html]
[OffscreenCanvas test: 2d.composite.transparent.destination-atop]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.destination-atop.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.destination-in.html]
[OffscreenCanvas test: 2d.composite.transparent.destination-in]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.destination-in.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.destination-out.html]
[OffscreenCanvas test: 2d.composite.transparent.destination-out]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.destination-out.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.destination-over.html]
[OffscreenCanvas test: 2d.composite.transparent.destination-over]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.destination-over.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.lighter.html]
[OffscreenCanvas test: 2d.composite.transparent.lighter]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.lighter.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.source-atop.html]
[OffscreenCanvas test: 2d.composite.transparent.source-atop]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.source-atop.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.source-in.html]
[OffscreenCanvas test: 2d.composite.transparent.source-in]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.source-in.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.source-out.html]
[OffscreenCanvas test: 2d.composite.transparent.source-out]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.source-out.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.source-over.html]
[OffscreenCanvas test: 2d.composite.transparent.source-over]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.source-over.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.xor.html]
[OffscreenCanvas test: 2d.composite.transparent.xor]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.transparent.xor.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.copy.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.copy.worker.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.destination-atop.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.destination-atop.worker.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.destination-in.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.destination-in.worker.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.source-in.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.source-in.worker.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.source-out.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.nocontext.source-out.worker.html]
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.coordinatespace.html]
[Coordinate space goes from top-left to bottom-right]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.coordinatespace.worker.html]
[Coordinate space goes from top-left to bottom-right]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.voidreturn.html]
[void methods return undefined]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.voidreturn.worker.html]
[void methods return undefined]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.canvas.html]
[OffscreenCanvas test: 2d.drawImage.canvas]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.canvas.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.self.1.html]
[OffscreenCanvas test: 2d.drawImage.self.1]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.self.1.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.self.2.html]
[OffscreenCanvas test: 2d.drawImage.self.2]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.self.2.worker.html]
[2d]
expected: FAIL

View file

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

View file

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

View file

@ -1,4 +0,0 @@
[2d.clearRect.nonfinite.html]
[clearRect() with Infinity/NaN is ignored]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.clearRect.nonfinite.worker.html]
[clearRect() with Infinity/NaN is ignored]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.clearRect.path.html]
[clearRect does not affect the current path]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.clearRect.path.worker.html]
[clearRect does not affect the current path]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.clearRect.shadow.html]
[clearRect does not draw shadows]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.clearRect.shadow.worker.html]
[clearRect does not draw shadows]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.clearRect.zero.html]
[clearRect of zero pixels has no effect]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.clearRect.zero.worker.html]
[clearRect of zero pixels has no effect]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.fillRect.basic.html]
[fillRect works]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.fillRect.basic.worker.html]
[fillRect works]
expected: FAIL

Some files were not shown because too many files have changed in this diff Show more