WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
11801
Autogenerate POD types in Objc/JS generation
https://bugs.webkit.org/show_bug.cgi?id=11801
Summary
Autogenerate POD types in Objc/JS generation
Nikolas Zimmermann
Reported
2006-12-11 05:19:48 PST
Currently we have three hand-written bindings, SVGPoint/SVGRect/SVGNumber, living in WebCore/bindings/js and WebCore/bindings/objc. They work around the fact that our wrapper generation assumes to operate on refcounted impl objects (ie. RefPtr<SVGNumber> m_impl). For efficiency we do NOT pass around SVGRect/SVGPoint/SVGNumber pointers around anymore in ksvg2. That's why we need a different style of Js/ObjC wrapper, those who operate on POD types. Basically the attached patch "models" the hand-written generators as they are right now, but automatically using CodeGeneratorJS.pm / CodeGeneratorObjC.pm. This will help a lot in near future, when we also want to convert SVGAngle/SVGPreserveAspectRatio/SVGMatrix/SVGLength to POD types.
Attachments
Initial patch
(58.39 KB, patch)
2006-12-11 06:28 PST
,
Nikolas Zimmermann
no flags
Details
Formatted Diff
Diff
Updated patch
(58.29 KB, patch)
2006-12-11 09:28 PST
,
Nikolas Zimmermann
sam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Nikolas Zimmermann
Comment 1
2006-12-11 06:28:02 PST
Created
attachment 11801
[details]
Initial patch This patch autogenerates DOMSVGNumber/DOMSVGRect/DOMSVGPoint, and JSSVGNumber/JSSVGRect/JSSVGPoint. The only limitation is that currently the "matrixTransform" method of SVGPoint.idl had to be disabled, it can only work with Rob's SVGMatrix -> AffineTransform patch. If this patch gets positive review, we have to wait for Rob's patch to also get r+, and then land both together otherwhise the matrixTransform() layout test would be broken. Hope that's fine...
Nikolas Zimmermann
Comment 2
2006-12-11 09:28:29 PST
Created
attachment 11802
[details]
Updated patch Fix the issue after weinigs first review...
Sam Weinig
Comment 3
2006-12-11 09:36:59 PST
Comment on
attachment 11802
[details]
Updated patch Looks great!
Nikolas Zimmermann
Comment 4
2006-12-11 10:08:13 PST
Landed in
r18153
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug