Implement CanvasRenderingContext2d.fillText's "unimplemented" message

This commit is contained in:
Bruno Bernardino 2017-08-09 12:34:12 +01:00
parent 1c9c0334ba
commit 2af828485f
No known key found for this signature in database
GPG key ID: C8019746F44687CD
6 changed files with 35 additions and 3 deletions

View file

@ -153,8 +153,9 @@ interface CanvasUserInterface {
[NoInterfaceObject]
interface CanvasText {
// text (see also the CanvasDrawingStyles interface)
//void fillText(DOMString text, unrestricted double x, unrestricted double y,
// optional unrestricted double maxWidth);
[Pref="dom.canvas-text.enabled"]
void fillText(DOMString text, unrestricted double x, unrestricted double y,
optional unrestricted double maxWidth);
//void strokeText(DOMString text, unrestricted double x, unrestricted double y,
// optional unrestricted double maxWidth);
//TextMetrics measureText(DOMString text);
@ -264,4 +265,3 @@ interface CanvasPath {
// double rotation, double startAngle, double endAngle,
// boolean anticlockwise);
};