After bug 703260, it just wraps aView->GetFrame(), and there's only one consumer: <http://mxr.mozilla.org/mozilla-central/source/content/events/src/nsContentEventHandler.cpp#813>.
I'm a systems engineer with c/c++ experience. I aware this is a code cleanup / refactoring exercise. But I want to get started.
The implementation is at <http://mxr.mozilla.org/mozilla-central/source/layout/base/nsLayoutUtils.h#340>. Please do let me know if you need any help.
Thanks for the info Ms2ger ! Can I get some pointer / wiki related to the eventHandling, just to have a picture ?
No idea myself, but smaug might have pointers.
Well, since the method is trivial, you can just copy its code to the only place it is used.
What kind of information about event handling is needed?
widget level code dispatches nsEvents to viewmanager/view which ends up to presshell which
calls nsEventStateManager. And between nsEventStateManager::PreHandleEvent and
PostHandleEvent event is dispatched to DOM.
@smaug: Thanks for the information.
I've started with the issue. I mostly work on Solaris10/Solaris11 x86. I'm currently trying to get a clean build for now. Will post a patch when done.
Created attachment 586360 [details] [diff] [review]
Created attachment 586361 [details] [diff] [review]
Comment on attachment 586361 [details] [diff] [review]
Looks good to me, asking roc to sign off as well.
Thanks for the patch parthasarathy! Hope to see you on IRC in #developers soon :-)