W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2013

Re: [whatwg] A question about the drawimage() canvas function

From: Rik Cabanier <cabanier@gmail.com>
Date: Fri, 1 Mar 2013 21:19:12 -0800
Message-ID: <CAGN7qDBh_Uk-tV3m03-dbGUaL4SYkCRAhw5=kexD2U_h-A_NGQ@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
Cc: (wrong string) Ž‹“— <wang.tietao@outlook.com>, WHAT Working Group <whatwg@whatwg.org>
I filed a bug on this: https://www.w3.org/Bugs/Public/show_bug.cgi?id=21173


On Fri, Mar 1, 2013 at 5:41 PM, Glenn Maynard <glenn@zewt.org> wrote:

> On Fri, Mar 1, 2013 at 4:45 PM, Rik Cabanier <cabanier@gmail.com> wrote:
>
>> Sorry about being unclear. Yes, I meant in addition of.
>> So:
>> - add your suggested step 1
>> - change HTMLImageElement from original step 2 to CanvasImageSource
>>
>
> "image" is always a CanvasImageSource, so if this is what was intended it
> would just omit the type check entirely.
>
> But why does it throw this exception in the first place?  It's a weird
> special case.  Blitting a zero-size image should do nothing, just like
> drawImage(src, 0, 0, 0, 0).
>
> --
> Glenn Maynard
>
>
Received on Saturday, 2 March 2013 05:19:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 2 March 2013 05:19:38 GMT