WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
122539
Rename EventRetargeter::adjustForRelatedTarget to EventPath::setRelatedTarget
https://bugs.webkit.org/show_bug.cgi?id=122539
Summary
Rename EventRetargeter::adjustForRelatedTarget to EventPath::setRelatedTarget
Ryosuke Niwa
Reported
2013-10-08 20:11:17 PDT
Rename EventRetargeter::adjustForRelatedTarget to EventPath::setRelatedTarget
Attachments
Cleanup
(20.91 KB, patch)
2013-10-08 20:22 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Cleanup
(22.83 KB, patch)
2013-10-08 20:49 PDT
,
Ryosuke Niwa
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2013-10-08 20:22:33 PDT
Created
attachment 213747
[details]
Cleanup
Ryosuke Niwa
Comment 2
2013-10-08 20:31:14 PDT
Comment on
attachment 213747
[details]
Cleanup Actually, it's cleaner if we made relatedTarget() virtual.
Ryosuke Niwa
Comment 3
2013-10-08 20:49:03 PDT
Created
attachment 213748
[details]
Cleanup
Darin Adler
Comment 4
2013-10-08 22:20:39 PDT
Comment on
attachment 213748
[details]
Cleanup View in context:
https://bugs.webkit.org/attachment.cgi?id=213748&action=review
> Source/WebCore/dom/Event.h:175 > + virtual EventTarget* relatedTarget() const { return 0; }
nullptr
> Source/WebCore/dom/MouseEvent.cpp:210 > + return target ? target->toNode() : 0;
nullptr But also, not sure why you are putting this into a local variable and not putting target() below into one. It’s especially confusing to put this into a local variable named target, when there’s a function by that name that would return something different.
> Source/WebCore/dom/MouseEvent.cpp:213 > return target() ? target()->toNode() : 0;
nullptr
> Source/WebCore/dom/MouseEvent.cpp:221 > + return target ? target->toNode() : 0;
nullptr
> Source/WebCore/dom/MouseEvent.cpp:224 > return target() ? target()->toNode() : 0;
nullptr
Ryosuke Niwa
Comment 5
2013-10-09 13:04:03 PDT
Committed
r157177
: <
http://trac.webkit.org/changeset/157177
>
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