Extern JS DOM in WebKit (1)

来源:互联网 发布:java培训讲师 编辑:程序博客网 时间:2024/06/05 09:24

How JSDOMWindow.h and JSDOMWindow.cpp generated?

 

One word: it's generated by CodeGeneratorJS.pm.

 

But sometimes you might say that the js object has been defined, but why its related function does not appear in the JSDOMWindow.h file?

 

Then you can modify this "sub GenerateHeader" in the pm file to show the details. In order to generate JSDONWindow.h successfully, the JS object should have some attributes which match its definition, e.g. history is readonly, it can't have CustomGetter attribute.

 

For more information, we should read the whole file of CodeGeneratorJS.pm.

 

Good Luck!