RESOLVED FIXED 23731
Add JSCCustom and V8Custom as extended IDL attributes
https://bugs.webkit.org/show_bug.cgi?id=23731
Summary Add JSCCustom and V8Custom as extended IDL attributes
Darin Fisher (:fishd, Google)
Reported 2009-02-04 09:38:11 PST
Add JSCCustom and V8Custom as extended IDL attributes This will help avoid having to add #ifdefs to the IDL files to support the V8 bindings.
Attachments
v1 patch (12.58 KB, patch)
2009-02-04 09:40 PST, Darin Fisher (:fishd, Google)
darin: review+
Darin Fisher (:fishd, Google)
Comment 1 2009-02-04 09:40:51 PST
Created attachment 27316 [details] v1 patch In this patch, I define JSCCustom and make use of it in a few IDL files. I also modify Document.idl to make use of V8Custom, which is known only to the CodeGeneratorV8.pm module (that has yet to be upstreamed). I did not add JSCCustomGetter or JSCCustomSetter since they are not needed. I could add those for completeness, but it seemed better to just focus on what is actually needed.
Darin Adler
Comment 2 2009-02-04 09:48:21 PST
Comment on attachment 27316 [details] v1 patch > $numCustomAttributes++ if $attribute->signature->extendedAttributes->{"Custom"}; > $numCustomAttributes++ if $attribute->signature->extendedAttributes->{"CustomGetter"}; > $numCustomAttributes++ if $attribute->signature->extendedAttributes->{"CustomSetter"}; > + $numCustomAttributes++ if $attribute->signature->extendedAttributes->{"JSCCustom"}; This will do the wrong thing if someone includes both "Custom" and "JSCustom" for the same attribute; and it won't report an error. It would be better to use || instead or consider it an error. > $numCustomFunctions++ if $function->signature->extendedAttributes->{"Custom"}; > + $numCustomFunctions++ if $function->signature->extendedAttributes->{"JSCCustom"}; Same comment. r=me
Darin Fisher (:fishd, Google)
Comment 3 2009-02-04 10:09:25 PST
Good catch. Thanks!
Darin Fisher (:fishd, Google)
Comment 4 2009-02-04 10:11:31 PST
Note You need to log in before you can comment on or make changes to this bug.