Implement ImageBitmap interface

Implementation of ImageBitmap

ImageBitMap webidl file added

Implementation of ImageBitmap

mentioned the correct origin link

basic new and new_inherited

updated the mod.rs file to include imagebitmap

imagebitmap implemented

changed according to Serialization

implemented serializable

get methods for width and height

basic imagebitmap

added missing crates

added Vec and missing crates

Syntax fixes

Reformatting and minor error fixes

Implementation of  ImageBitmap

tidy-test runs

Took out extra parameters in reflect_dom_object call

added comments with specification links for webidl functions

changing the code based on review comments

adding resolved changes form the pull request

Changes based on pr review

Changes based on pr review

ran test-tidy and fmt

removed the duplicate crate

removed unnecessary crates

Kept only the relevant crate import

Updated test expectations, exposed interface list, and manifest
This commit is contained in:
santoshpavan 2020-03-15 14:54:23 -04:00 committed by Josh Matthews
parent 236762880c
commit 8c405546a2
8 changed files with 99 additions and 30 deletions

View file

@ -29,9 +29,6 @@
[SVGElement interface: attribute onmouseout]
expected: FAIL
[ImageBitmap interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "getLineDash()" with the proper type]
expected: FAIL
@ -386,9 +383,6 @@
[DataTransferItemList interface object length]
expected: FAIL
[ImageBitmap interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[DataTransfer interface: attribute items]
expected: FAIL
@ -662,9 +656,6 @@
[SVGAElement interface: attribute hostname]
expected: FAIL
[ImageBitmap interface object name]
expected: FAIL
[SVGElement interface: attribute oncut]
expected: FAIL
@ -824,9 +815,6 @@
[OffscreenCanvasRenderingContext2D interface: operation createImageData(long, long)]
expected: FAIL
[ImageBitmap interface: existence and properties of interface prototype object]
expected: FAIL
[SVGElement interface: attribute onauxclick]
expected: FAIL
@ -974,15 +962,9 @@
[OffscreenCanvasRenderingContext2D interface: operation createPattern(CanvasImageSource, DOMString)]
expected: FAIL
[ImageBitmap interface: existence and properties of interface object]
expected: FAIL
[History interface: attribute scrollRestoration]
expected: FAIL
[ImageBitmap interface: attribute height]
expected: FAIL
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "filter" with the proper type]
expected: FAIL
@ -1145,9 +1127,6 @@
[SVGSVGElement interface: attribute ononline]
expected: FAIL
[ImageBitmap interface: attribute width]
expected: FAIL
[DataTransfer interface: attribute types]
expected: FAIL
@ -1262,9 +1241,6 @@
[SVGElement interface: attribute onkeypress]
expected: FAIL
[ImageBitmap interface object length]
expected: FAIL
[OffscreenCanvasRenderingContext2D interface: operation fillRect(unrestricted double, unrestricted double, unrestricted double, unrestricted double)]
expected: FAIL

View file

@ -3,9 +3,6 @@
[The SharedWorker interface object should be exposed.]
expected: FAIL
[The ImageBitmap interface object should be exposed.]
expected: FAIL
[The CanvasPath interface object should be exposed.]
expected: FAIL
@ -56,4 +53,3 @@
[The IDBTransaction interface object should be exposed.]
expected: FAIL

View file

@ -13863,14 +13863,14 @@
]
],
"interfaces.html": [
"12f1d0b7f17be6575d4527423aed0ec845c4c2d5",
"dc9a1f5f378bc50487bfb7dc3db6d121d2f325ca",
[
null,
{}
]
],
"interfaces.worker.js": [
"c1223084790b2980c8184e3cd9ab5ae17bc8b303",
"a74a91489541ab99ae58001e3f63afc9ecc5c553",
[
"mozilla/interfaces.worker.html",
{}

View file

@ -161,6 +161,7 @@ test_interfaces([
"HTMLUnknownElement",
"HTMLVideoElement",
"ImageData",
"ImageBitmap",
"Image",
"InputEvent",
"KeyboardEvent",

View file

@ -35,6 +35,7 @@ test_interfaces([
"Headers",
"History",
"ImageData",
"ImageBitmap",
"MessageChannel",
"MessageEvent",
"MessagePort",