RESOLVED FIXED 66458
[Refactoring] Add EventDispatchMediator.{h,cpp} and move related classes to that files.
https://bugs.webkit.org/show_bug.cgi?id=66458
Summary [Refactoring] Add EventDispatchMediator.{h,cpp} and move related classes to t...
Hayato Ito
Reported 2011-08-18 05:08:09 PDT
Now Event.{h,cpp} contain EventDispatchMediator and Focus/BlurEventDispatchMediator's declarations and definitions. It might be good to have EventDispatchMediator.{h,cpp} and move related classes to that files from Event.{h,cpp}.
Attachments
refactoring (20.12 KB, patch)
2011-08-18 06:01 PDT, Hayato Ito
rniwa: review+
to make sure that the patch can be compiled on all platforms. not for review (23.77 KB, patch)
2011-08-18 21:05 PDT, Hayato Ito
no flags
Hayato Ito
Comment 1 2011-08-18 06:01:55 PDT
Created attachment 104329 [details] refactoring
Ryosuke Niwa
Comment 2 2011-08-18 08:43:39 PDT
Comment on attachment 104329 [details] refactoring View in context: https://bugs.webkit.org/attachment.cgi?id=104329&action=review > Source/WebCore/WebCore.xcodeproj/project.pbxproj:26192 > + 4AF1AD3E13FD23A400AA9590 /* EventDispatchMediator.cpp in Sources */, Please sort this lexicologically. > Source/WebCore/dom/EventDispatchMediator.h:62 > +inline EventDispatchMediator::EventDispatchMediator() > +{ > +} It appears that this can be included in the class declaration. > Source/WebCore/dom/EventDispatchMediator.h:67 > +inline Event* EventDispatchMediator::event() const > +{ > + return m_event.get(); > +} Ditto. > Source/WebCore/dom/EventDispatchMediator.h:72 > +inline void EventDispatchMediator::setEvent(PassRefPtr<Event> event) > +{ > + m_event = event; > +} Ditto.
Hayato Ito
Comment 3 2011-08-18 20:49:14 PDT
Comment on attachment 104329 [details] refactoring Thank you for the review. I'll land this patch after addressing your comments and confirming that can be compiled on all platforms. View in context: https://bugs.webkit.org/attachment.cgi?id=104329&action=review >> Source/WebCore/WebCore.xcodeproj/project.pbxproj:26192 >> + 4AF1AD3E13FD23A400AA9590 /* EventDispatchMediator.cpp in Sources */, > > Please sort this lexicologically. Done. Thank you. I wrongly assumed that these don't have to be sorted because I spotted these are not 'locally' sorted around there. I should have taken a look at that globally. :) >> Source/WebCore/dom/EventDispatchMediator.h:62 >> +} > > It appears that this can be included in the class declaration. Done. >> Source/WebCore/dom/EventDispatchMediator.h:67 >> +} > > Ditto. Done. >> Source/WebCore/dom/EventDispatchMediator.h:72 >> +} > > Ditto. Done.
Hayato Ito
Comment 4 2011-08-18 21:05:31 PDT
Created attachment 104451 [details] to make sure that the patch can be compiled on all platforms. not for review
Hayato Ito
Comment 5 2011-08-18 21:46:56 PDT
Adam Roben (:aroben)
Comment 6 2011-08-19 08:11:40 PDT
Windows build fix in r93408
Hayato Ito
Comment 7 2011-08-22 05:49:59 PDT
Hi, Adam (In reply to comment #6) > Windows build fix in r93408 Thank you for the fix, and I'm sorry for the build broken in Windows. The lesson is that I have to edit dom/DOMAllInOne.cpp also.
Note You need to log in before you can comment on or make changes to this bug.