[Webkit-unassigned] [Bug 80637] fillText() does not ignore null or undefined as the maxWidth parameter
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 12 08:33:20 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=80637
--- Comment #2 from Tom Hudson <tomhudson at google.com> 2012-03-12 08:33:20 PST ---
The IDL spec seems to me to suggest that we could just add [TreatUndefinedAs=Missing]:
CanvasRenderingContext2D.idl:
void fillText(in DOMString text, in float x, in float y, in [Optional, TreatUndefinedAs=Missing] float maxWidth);
void strokeText(in DOMString text, in float x, in float y, in [Optional, TreatUndefinedAs=Missing] float maxWidth);
...but that fails to compile; it looks like we've used TreatUndefinedAs for NullString or EmptyString elsewhere in the IDL, but never Missing. WebCore/bindings/scripts/*.pm isn't very clear at first reading, but I'd guess we don't yet support it?
I think we might instead be able to provide a custom implementation, at least until Missing is supported?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list