mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
WebIDL Fix ImageData constructor to take a Uint8ClampedArray instead of js_object (#31398)
<!-- Please describe your changes on the following line: --> Fix ImageData constructor to take a Uint8ClampedArray instead of js_object --- <!-- 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 #31320 <!-- Either: --> - [x] These changes do not require tests because there is not behavior change. <!-- 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. --> --------- Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
53be79a5b5
commit
e5347eceac
4 changed files with 42 additions and 61 deletions
|
@ -254,7 +254,7 @@ interface CanvasPattern {
|
|||
Serializable]
|
||||
interface ImageData {
|
||||
[Throws] constructor(unsigned long sw, unsigned long sh/*, optional ImageDataSettings settings = {}*/);
|
||||
[Throws] constructor(/* Uint8ClampedArray */ object data, unsigned long sw, optional unsigned long sh
|
||||
[Throws] constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh
|
||||
/*, optional ImageDataSettings settings = {}*/);
|
||||
|
||||
readonly attribute unsigned long width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue