mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision b'e58cde68851afa192214f60a021f1e56b4172b7a'
This commit is contained in:
parent
902af56b80
commit
885a29c0ba
197 changed files with 2096 additions and 2151 deletions
|
@ -1,11 +1,13 @@
|
|||
function makeImageBitmap(width, height) {
|
||||
function makeOffscreenCanvas(width, height) {
|
||||
let canvas = new OffscreenCanvas(width, height);
|
||||
|
||||
let ctx = canvas.getContext('2d');
|
||||
ctx.fillStyle = 'rgba(50, 100, 150, 255)';
|
||||
ctx.fillRect(0, 0, width, height);
|
||||
return canvas;
|
||||
}
|
||||
|
||||
return canvas.transferToImageBitmap();
|
||||
function makeImageBitmap(width, height) {
|
||||
return makeOffscreenCanvas(width, height).transferToImageBitmap();
|
||||
}
|
||||
|
||||
// Gives a chance to pending output and error callbacks to complete before
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue