This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25905 - Add example where DOMPoint objects are passed as argument
Summary: Add example where DOMPoint objects are passed as argument
Status: RESOLVED FIXED
Alias: None
Product: FXTF
Classification: Unclassified
Component: Geometry (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: sideshowbarker+geometry
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-28 07:41 UTC by Dirk Schulze
Modified: 2014-06-03 08:36 UTC (History)
1 user (show)

See Also:


Attachments

Description Dirk Schulze 2014-05-28 07:41:35 UTC
http://dev.w3.org/fxtf/geometry/#DOMQuad

[[
[Constructor(DOMPointInit p1, DOMPointInit p2,
             DOMPointInit p3, DOMPointInit p4
]]

Add example where DOMPoint objects are passed as argument. This would make it clear that WebIDL can handle DOMPoint and DOMPointInit here.
Comment 1 Dirk Schulze 2014-05-28 19:39:52 UTC
Added an example.
Comment 2 Simon Pieters 2014-06-02 06:22:30 UTC
var rect = new DOMRect(2, 0, 10, 10);

Shouldn't the third argument be 12?
Comment 3 Dirk Schulze 2014-06-02 14:38:24 UTC
(In reply to Simon Pieters from comment #2)
> var rect = new DOMRect(2, 0, 10, 10);
> 
> Shouldn't the third argument be 12?

Why? DOMRect gets the arguments x,y,width and height. 10,10 is correct.
Comment 4 Simon Pieters 2014-06-03 08:36:56 UTC
Oops, sorry. :-)