WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
122494
Use references in EventRetargeter::calculateEventPath and EventRetargeter::eventTargetRespectingTargetRules
https://bugs.webkit.org/show_bug.cgi?id=122494
Summary
Use references in EventRetargeter::calculateEventPath and EventRetargeter::ev...
Ryosuke Niwa
Reported
2013-10-08 00:04:02 PDT
Use references in EventRetargeter::calculateEventPath and EventRetargeter::eventTargetRespectingTargetRules
Attachments
Cleanup
(10.40 KB, patch)
2013-10-08 00:07 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Fixed EFL build
(10.45 KB, patch)
2013-10-08 00:19 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2013-10-08 00:07:27 PDT
Created
attachment 213665
[details]
Cleanup
EFL EWS Bot
Comment 2
2013-10-08 00:12:04 PDT
Comment on
attachment 213665
[details]
Cleanup
Attachment 213665
[details]
did not pass efl-ews (efl): Output:
http://webkit-queues.appspot.com/results/3746045
EFL EWS Bot
Comment 3
2013-10-08 00:13:29 PDT
Comment on
attachment 213665
[details]
Cleanup
Attachment 213665
[details]
did not pass efl-wk2-ews (efl-wk2): Output:
http://webkit-queues.appspot.com/results/3735038
Ryosuke Niwa
Comment 4
2013-10-08 00:19:20 PDT
Created
attachment 213669
[details]
Fixed EFL build
Antti Koivisto
Comment 5
2013-10-08 05:35:18 PDT
Comment on
attachment 213669
[details]
Fixed EFL build View in context:
https://bugs.webkit.org/attachment.cgi?id=213669&action=review
> Source/WebCore/dom/EventRetargeter.cpp:89 > + EventTarget* target = 0; > > - for (Node* node = nodeOrHostIfPseudoElement(targetNode); node; node = node->parentOrShadowHostNode()) { > - if (targetStack.isEmpty()) > - targetStack.append(eventTargetRespectingTargetRules(node)); > + for (Node* node = nodeOrHostIfPseudoElement(&targetNode); node; node = node->parentOrShadowHostNode()) { > + if (!target) > + target = &eventTargetRespectingTargetRules(*node); > +
You could make target a reference too by moving the initialisation out of the loop.
> Source/WebCore/dom/EventRetargeter.h:73 > +inline EventTarget& EventRetargeter::eventTargetRespectingTargetRules(Node& referenceNode) > {
This could probably be moved out of line.
Ryosuke Niwa
Comment 6
2013-10-08 10:36:19 PDT
Comment on
attachment 213669
[details]
Fixed EFL build View in context:
https://bugs.webkit.org/attachment.cgi?id=213669&action=review
>> Source/WebCore/dom/EventRetargeter.cpp:89 >> + > > You could make target a reference too by moving the initialisation out of the loop.
We can't. target is overridden in some iterations; namely when the last node was a non-SVG shadow root.
>> Source/WebCore/dom/EventRetargeter.h:73 >> { > > This could probably be moved out of line.
Let me do that in a separate patch.
Ryosuke Niwa
Comment 7
2013-10-08 10:36:53 PDT
Comment on
attachment 213669
[details]
Fixed EFL build Landing as is for now.
WebKit Commit Bot
Comment 8
2013-10-08 11:02:02 PDT
Comment on
attachment 213669
[details]
Fixed EFL build Clearing flags on attachment: 213669 Committed
r157123
: <
http://trac.webkit.org/changeset/157123
>
WebKit Commit Bot
Comment 9
2013-10-08 11:02:06 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