RESOLVED FIXED 11057
Auto-generate more SVG Objective-C bindings
https://bugs.webkit.org/show_bug.cgi?id=11057
Summary Auto-generate more SVG Objective-C bindings
Sam Weinig
Reported 2006-09-27 08:47:01 PDT
Forthcoming patch includes changes to CodeGeneratorObjC.pm to allow multiple parents in an IDL. What we do is allow only the first parent to be a real super class, while all the remaining parents must be protocols.
Attachments
patch (75.72 KB, patch)
2006-09-28 10:00 PDT, Sam Weinig
timothy: review+
Sam Weinig
Comment 1 2006-09-28 10:00:09 PDT
Created attachment 10825 [details] patch - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean, DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength, DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString, DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired, DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement, DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests, and DOMSVGTransformable. - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple parent interfaces and the SVG animated classes. - Corrects CodeGenerator.pm to only skip the first parent for the main interface.
Timothy Hatcher
Comment 2 2006-09-28 10:34:28 PDT
Comment on attachment 10825 [details] patch Why this change? - perl -I $(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --include $(WebCore)/dom --include $(WebCore)/html --include $(WebCore)/xpath --include $(WebCore)/ksvg2/svg --outputdir . $< + perl -I $(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --include dom --include html --include xml --include /ksvg2/svg --outputdir . $< There are other places hat do this, like the JS generator. I think passing the full path is better.
Sam Weinig
Comment 3 2006-09-28 12:07:27 PDT
Landed in r16616.
Note You need to log in before you can comment on or make changes to this bug.