Auto merge of #23135 - maharsh312:master, r=jdm

Create CanvasRect for OffscreenCanvas

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

Created CanvasRect fot OffscreenCanvas and Updated Testcases

---
<!-- 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
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- 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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23135)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2019-05-13 16:19:57 -04:00 committed by GitHub
commit fdafc833ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
131 changed files with 145 additions and 551 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +0,0 @@
[2d.composite.uncovered.image.copy.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.image.copy.worker.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.image.destination-atop.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.image.destination-atop.worker.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.image.destination-in.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.image.destination-in.worker.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.image.source-in.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.image.source-in.worker.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.image.source-out.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.image.source-out.worker.html]
[drawImage() 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,4 +0,0 @@
[2d.composite.uncovered.pattern.copy.html]
[Pattern 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,4 +0,0 @@
[2d.composite.uncovered.pattern.copy.worker.html]
[Pattern 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,4 +0,0 @@
[2d.composite.uncovered.pattern.destination-atop.html]
[Pattern 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,4 +0,0 @@
[2d.composite.uncovered.pattern.destination-atop.worker.html]
[Pattern 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,4 +0,0 @@
[2d.composite.uncovered.pattern.destination-in.html]
[Pattern 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,4 +0,0 @@
[2d.composite.uncovered.pattern.destination-in.worker.html]
[Pattern 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,4 +0,0 @@
[2d.composite.uncovered.pattern.source-in.html]
[Pattern 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,4 +0,0 @@
[2d.composite.uncovered.pattern.source-in.worker.html]
[Pattern 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,4 +0,0 @@
[2d.composite.uncovered.pattern.source-out.html]
[Pattern 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,4 +0,0 @@
[2d.composite.uncovered.pattern.source-out.worker.html]
[Pattern 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,4 +0,0 @@
[2d.drawImage.5arg.html]
[OffscreenCanvas test: 2d.drawImage.5arg]
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +0,0 @@
[2d.drawImage.negativedest.html]
[Negative destination width/height represents the correct rectangle]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.negativedest.worker.html]
[Negative destination width/height represents the correct rectangle]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.negativedir.html]
[Negative dimensions do not affect the direction of the image]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.negativedir.worker.html]
[Negative dimensions do not affect the direction of the image]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.negativesource.html]
[Negative source width/height represents the correct rectangle]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.negativesource.worker.html]
[Negative source width/height represents the correct rectangle]
expected: FAIL

View file

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

View file

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

View file

@ -1,4 +0,0 @@
[2d.drawImage.nowrap.html]
[Stretched images do not get pixels wrapping around the edges]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.nowrap.worker.html]
[Stretched images do not get pixels wrapping around the edges]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.zerosource.html]
[drawImage with zero-sized source rectangle throws INDEX_SIZE_ERR]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.zerosource.image.html]
[drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.zerosource.image.worker.html]
[drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.drawImage.zerosource.worker.html]
[drawImage with zero-sized source rectangle throws INDEX_SIZE_ERR]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.basic.image.html]
[OffscreenCanvas test: 2d.pattern.basic.image]
expected: FAIL

View file

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

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.norepeat.basic.html]
[OffscreenCanvas test: 2d.pattern.paint.norepeat.basic]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.norepeat.basic.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.norepeat.coord1.html]
[OffscreenCanvas test: 2d.pattern.paint.norepeat.coord1]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.norepeat.coord1.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.norepeat.coord3.html]
[OffscreenCanvas test: 2d.pattern.paint.norepeat.coord3]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.norepeat.coord3.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.norepeat.outside.html]
[OffscreenCanvas test: 2d.pattern.paint.norepeat.outside]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.norepeat.outside.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.orientation.image.html]
[Image patterns do not get flipped when painted]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.orientation.image.worker.html]
[Image patterns do not get flipped when painted]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeat.basic.html]
[OffscreenCanvas test: 2d.pattern.paint.repeat.basic]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeat.basic.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeat.coord1.html]
[OffscreenCanvas test: 2d.pattern.paint.repeat.coord1]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeat.coord1.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeat.outside.html]
[OffscreenCanvas test: 2d.pattern.paint.repeat.outside]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeat.outside.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeatx.basic.html]
[OffscreenCanvas test: 2d.pattern.paint.repeatx.basic]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeatx.basic.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeatx.coord1.html]
[OffscreenCanvas test: 2d.pattern.paint.repeatx.coord1]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeatx.coord1.worker.html]
[2d]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeatx.outside.html]
[OffscreenCanvas test: 2d.pattern.paint.repeatx.outside]
expected: FAIL

View file

@ -1,4 +0,0 @@
[2d.pattern.paint.repeatx.outside.worker.html]
[2d]
expected: FAIL

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