mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Implement drawing an image from a CSS style value into a canvas.
This commit is contained in:
parent
992c647f76
commit
2318caf002
8 changed files with 232 additions and 125 deletions
|
@ -8,8 +8,11 @@ enum CanvasFillRule { "nonzero", "evenodd" };
|
|||
typedef (HTMLImageElement or
|
||||
/* HTMLVideoElement or */
|
||||
HTMLCanvasElement or
|
||||
CanvasRenderingContext2D /* or
|
||||
ImageBitmap */) CanvasImageSource;
|
||||
CanvasRenderingContext2D or
|
||||
/* ImageBitmap or */
|
||||
// This should probably be a CSSImageValue
|
||||
// https://github.com/w3c/css-houdini-drafts/issues/416
|
||||
CSSStyleValue) CanvasImageSource;
|
||||
|
||||
//[Constructor(optional unsigned long width, unsigned long height)]
|
||||
interface CanvasRenderingContext2D {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue