Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Rik Cabanier
On Sun, Mar 9, 2014 at 10:52 PM, Dirk Schulze dschu...@adobe.com wrote: On Mar 10, 2014, at 3:44 AM, Rik Cabanier caban...@gmail.com wrote: On Wed, Mar 5, 2014 at 1:46 PM, Rik Cabanier caban...@gmail.com wrote: While implementing the Path2D object in mozilla, we ran into a

Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Joe Gregorio
On Mon, Mar 10, 2014 at 2:02 PM, Rik Cabanier caban...@gmail.com wrote: What are you not sure about? The current Path2D interface might be unacceptably slow under certain circumstances and there's currently no way for authors to work around this. There has to be a hint. If not, I don't see

Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Rik Cabanier
On Mon, Mar 10, 2014 at 11:07 AM, Joe Gregorio jcgrego...@google.comwrote: On Mon, Mar 10, 2014 at 2:02 PM, Rik Cabanier caban...@gmail.com wrote: What are you not sure about? The current Path2D interface might be unacceptably slow under certain circumstances and there's currently no

Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Dirk Schulze
On Mar 10, 2014, at 7:02 PM, Rik Cabanier caban...@gmail.com wrote: On Sun, Mar 9, 2014 at 10:52 PM, Dirk Schulze dschu...@adobe.com wrote: On Mar 10, 2014, at 3:44 AM, Rik Cabanier caban...@gmail.com wrote: On Wed, Mar 5, 2014 at 1:46 PM, Rik Cabanier caban...@gmail.com wrote:

Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Domenic Denicola
What about making the Path2D constructor a property of each context? E.g. var path = new myContext.Path2D(...); Each context would have a different constructor tied to it, allowing this kind of optimization.

Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Justin Novosad
On Mon, Mar 10, 2014 at 2:14 PM, Rik Cabanier caban...@gmail.com wrote: On Mon, Mar 10, 2014 at 11:07 AM, Joe Gregorio jcgrego...@google.com wrote: What part is slow, the decoding and re-encoding, or is just always the encoding step that is slow? It's decoding/re-encoding of an

Re: [whatwg] Simplified picture element draft

2014-03-10 Thread Ian Hickson
On Tue, 7 Jan 2014, Yoav Weiss wrote: On Tue, Jan 7, 2014 at 6:20 PM, Boris Zbarsky bzbar...@mit.edu wrote: On 1/7/14 12:01 PM, Yoav Weiss wrote: I'd love to get some more details regarding that. I'll start a mozilla.dev.platform thread on the subject, since it's Gecko specific.

Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Tab Atkins Jr.
On Mon, Mar 10, 2014 at 11:38 AM, Justin Novosad ju...@google.com wrote: On Mon, Mar 10, 2014 at 2:14 PM, Rik Cabanier caban...@gmail.com wrote: On Mon, Mar 10, 2014 at 11:07 AM, Joe Gregorio jcgrego...@google.com wrote: What part is slow, the decoding and re-encoding, or is just always the

Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Rik Cabanier
On Mon, Mar 10, 2014 at 11:38 AM, Justin Novosad ju...@google.com wrote: On Mon, Mar 10, 2014 at 2:14 PM, Rik Cabanier caban...@gmail.com wrote: On Mon, Mar 10, 2014 at 11:07 AM, Joe Gregorio jcgrego...@google.com wrote: What part is slow, the decoding and re-encoding, or is just

[whatwg] Additional details for invoking requestAutocomplete

2014-03-10 Thread Evan Stade
Hi WhatWG. Currently, requestAutocomplete lets a user agent provide the same user experience across multiple sites for common data input flows. A site describes the data it desires (via a form and autocomplete attributes), and the user agent uses this information and what it knows about the user

Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Justin Novosad
On Mon, Mar 10, 2014 at 4:22 PM, Rik Cabanier caban...@gmail.com wrote: On Mon, Mar 10, 2014 at 11:38 AM, Justin Novosad ju...@google.com wrote: On Mon, Mar 10, 2014 at 2:14 PM, Rik Cabanier caban...@gmail.com wrote: On Mon, Mar 10, 2014 at 11:07 AM, Joe Gregorio jcgrego...@google.com

Re: [whatwg] new constructor method for Path2D

2014-03-10 Thread Rik Cabanier
On Mon, Mar 10, 2014 at 1:33 PM, Justin Novosad ju...@google.com wrote: On Mon, Mar 10, 2014 at 4:22 PM, Rik Cabanier caban...@gmail.com wrote: On Mon, Mar 10, 2014 at 11:38 AM, Justin Novosad ju...@google.comwrote: On Mon, Mar 10, 2014 at 2:14 PM, Rik Cabanier

[whatwg] hit regions: clearing of regions

2014-03-10 Thread Rik Cabanier
Currently, the specification states that if you create a region and then create another region that completely covers region, the first region is removed from the hit region list [1] This is a complex operation that involves either drawing the regions to a bitmaps and counting pixels, or path

[whatwg] hit regions: effect of clearRect

2014-03-10 Thread Rik Cabanier
clearRect is currently defined as a subtraction mechanism for hit regions [1]. It's unlikely that a UA will implement hit regions using pixels so this would have to be done using path subtraction which is expensive. Why was this special behavior added to clearRect? Hit regions are not subject to

Re: [whatwg] input type=number for year input

2014-03-10 Thread Ryosuke Niwa
On Mar 7, 2014, at 3:54 AM, Smylers smyl...@stripey.com wrote: Ryosuke Niwa writes [re-ordered]: On Feb 19, 2014, at 7:36 AM, Jukka K. Korpela jkorp...@cs.tut.fi wrote: 2014-02-19 11:10, Smylers wrote: Jukka K. Korpela writes: The point is that year numbers aren't really numbers in