WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
59837
Get rid of versions of sendContextMenuEvent and eventMayStartDrag that takes NSEvent
https://bugs.webkit.org/show_bug.cgi?id=59837
Summary
Get rid of versions of sendContextMenuEvent and eventMayStartDrag that takes ...
Ryosuke Niwa
Reported
2011-04-29 15:25:59 PDT
Mac WebKit port should be creating PlatformMouseEvent in WebKit code instead of pushing that code into EventHandler.
Attachments
cleanup
(6.50 KB, patch)
2011-04-29 15:28 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Fixed test failures
(7.16 KB, patch)
2011-04-29 15:58 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2011-04-29 15:28:36 PDT
Created
attachment 91749
[details]
cleanup
Ryosuke Niwa
Comment 2
2011-04-29 15:58:46 PDT
Created
attachment 91758
[details]
Fixed test failures
Ryosuke Niwa
Comment 3
2011-04-29 15:59:33 PDT
Apparently PlatformMouseEvent(event, self) and PlatformMouseEvent(event, page->chrome()->platformPageClient()) are different in WebHTMLView.mm
Eric Seidel (no email)
Comment 4
2011-05-01 09:58:06 PDT
Comment on
attachment 91758
[details]
Fixed test failures View in context:
https://bugs.webkit.org/attachment.cgi?id=91758&action=review
SGTM.
> Source/WebKit/mac/WebView/WebHTMLView.mm:3456 > + if (Page* page = coreFrame->page()) > + result = coreFrame->eventHandler()->eventMayStartDrag(PlatformMouseEvent(event, page->chrome()->platformPageClient()));
Will results still end up as false in the !page() case after this change?
Ryosuke Niwa
Comment 5
2011-05-01 11:55:04 PDT
Comment on
attachment 91758
[details]
Fixed test failures View in context:
https://bugs.webkit.org/attachment.cgi?id=91758&action=review
Thanks for the review!
>> Source/WebKit/mac/WebView/WebHTMLView.mm:3456 >> + result = coreFrame->eventHandler()->eventMayStartDrag(PlatformMouseEvent(event, page->chrome()->platformPageClient())); > > Will results still end up as false in the !page() case after this change?
Yes, result is initialized to false.
WebKit Commit Bot
Comment 6
2011-05-01 12:46:12 PDT
Comment on
attachment 91758
[details]
Fixed test failures Clearing flags on attachment: 91758 Committed
r85428
: <
http://trac.webkit.org/changeset/85428
>
WebKit Commit Bot
Comment 7
2011-05-01 12:46:18 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug