CodeGeneratorJS.pm has some hard-coded logic which determines whether a toJS() function should be defined in the JS binding header file, and whether an implementation should be automatically generated. This logic is: .h file: define toJS() if the class in question is a base class (no parent class) or if it has the GenerateToJS custom attribute. .cpp file: automatically generate implementation of toJS() if the class in question is a base class, but is not a member of a hardcoded list in UsesManualToJSImplementation() We should get rid of UsesManualToJSImplementation() in favor of a CustomToJS attribute - the presence of this attribute will cause the code generator to emit a toJS() definition in the generated .h file, but will not automatically generate an implementation in the .cpp file.
Created attachment 32334 [details] Proposed patch
Comment on attachment 32334 [details] Proposed patch r=me assuming it build and tests pass
Landed: http://trac.webkit.org/changeset/45714