[Webkit-unassigned] [Bug 133916] Implement DOMPoint/DOMPointReadOnly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 16 11:41:07 PDT 2014


--- Comment #9 from Dirk Schulze <krit at webkit.org>  2014-06-16 11:41:26 PST ---
(In reply to comment #7)
> I would like to understand specifically why the entire DOMPoint class cannot just be implemented in JavaScript.
> Please assume, for the sake of the argument, that we *can* implement it in JavaScript.  I'm not talking about polyfill.  It would be an integral part of WebKit, just implemented in JS and not C++.  This is already true of many integral ES library functions in JavaScriptCore and making it possible to do the same thing in WebCore shouldn't be hard.

The only thing I worry about is the manual implementation of the whole API. Parsing, throwing exception and type conversation is done by our code generator for IDLs. Even if our generator needs a lot of work to hook it up to WebIDL 1.0, the code is still much more reliable and less error prone than manually writing the code.

In general, I would like an approach where we slowly move generated APIs to JS all together. For DOMPoint all the above things are easy to do manually. For DOMMatrix it slowly gets harder to do. Also, would it mean reimplementing TransformationMatrix.cpp in JS as well?

If I am mistaken, it would be great to see some examples in JSC. I never touched JSC so far.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list