Re: nsIDOMCanvasRenderingContext2d embedding in 1.9.2 ?
| Newsgroups | gmane.comp.mozilla.devel.embedding |
|---|---|
| Organization | NovaDSP |
| Message-ID | <[email protected]> |
Boris, thanks. On 08/11/2010 16:15, Boris Zbarsky wrote: > A 2d rendering context requires either a docshell or a canvas element, > but not both, to operate properly. So you must either call > SetCanvasElement or InitializeWithSurface. > > If you do neither, then the 2d context doesn't actually have anywhere > to draw to. Indeed. I have now found an example that shows the correct order of operations.