- From: Ian Hickson <ian@hixie.ch>
- Date: Fri, 1 Feb 2008 05:34:22 +0000 (UTC)
On Tue, 25 Sep 2007, Vladimir Vukicevic wrote: > > I agree that throwing an exception is probably unnecessary, as there are very > few other places in the API where such exceptions are thrown (except when the > input is of clearly the wrong type). Normalizing seems to be the most useful > approach -- that is, the functions that take x,y,w,h would be defined to > create a rectangle with its two corners being (x,y) and (x+w,y+h), regardless > of the sign of w/h I've gone through the canvas API and defined this behaviour for all methods that took rects of one kind or another. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 31 January 2008 21:34:22 UTC