[webkit-help] Help understanding how WebCore/bindings/js files get generated
vniles at gmail.com
Wed Aug 17 01:43:09 PDT 2011
DOM event - Do you mean event something like '*onmouseover' *?
If Yes then - I think you can do following.
You will need to add a corresponding event listener in idl file. (
You will probably need to modify HTMLAttributenames.in
Since its a completely new attribute/event, you will have to make parser
understand that there is something like 'yourevent' existing. You will need
to modify corresponding element source's
attribute parsing logic. If most of the elements need to support this you
can as well do it in HTMLElement::parseMappedAttribute().
Here you can create a corresponding eventlistener.
I suggest you dont modify anything under DerivedSources as most of source
documents are automatically generated by refering .idl files.
Hope this helps !!
Thanks & Regards
On Wed, Aug 17, 2011 at 12:04 AM, swaroop k.s <swaroop_ks at yahoo.com> wrote:
> Hi all,
> I am trying to understand how the files in WebCore/bindings/js files get
> I have a vague understanding that there are .idl files that control the
> generation of these files. But, if there is some sort of documentation
> describing how these are structured, how to approach writing a new file (for
> example, if I want to introduce a new DOM event), it will be really helpful.
> Please let me know of any pointers that will help.
> webkit-help mailing list
> webkit-help at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-help