RESOLVED FIXED 122477
Make buildRelatedNodeMap and findRelatedNode static to EventRetargeter.cpp
https://bugs.webkit.org/show_bug.cgi?id=122477
Summary Make buildRelatedNodeMap and findRelatedNode static to EventRetargeter.cpp
Ryosuke Niwa
Reported 2013-10-07 18:17:12 PDT
Make buildRelatedNodeMap and findRelatedNode static to EventRetargeter.cpp
Attachments
Cleanup (7.05 KB, patch)
2013-10-07 18:23 PDT, Ryosuke Niwa
no flags
Minor bug fix (7.46 KB, patch)
2013-10-07 18:26 PDT, Ryosuke Niwa
koivisto: review+
Ryosuke Niwa
Comment 1 2013-10-07 18:23:01 PDT
Ryosuke Niwa
Comment 2 2013-10-07 18:26:36 PDT
Created attachment 213637 [details] Minor bug fix
Antti Koivisto
Comment 3 2013-10-07 18:32:07 PDT
Comment on attachment 213637 [details] Minor bug fix View in context: https://bugs.webkit.org/attachment.cgi?id=213637&action=review > Source/WebCore/dom/EventRetargeter.cpp:184 > +static void buildRelatedNodeMap(const Node* relatedNode, HashMap<TreeScope*, Node*>& relatedNodeMap) I wish these had more descriptive names. Related to what and how? Same applies to variable names in this code. > Source/WebCore/dom/EventRetargeter.h:65 > typedef Vector<RefPtr<Node> > AdjustedNodes; Would be nice to remove this opaque typedef too.
Ryosuke Niwa
Comment 4 2013-10-07 19:03:03 PDT
Comment on attachment 213637 [details] Minor bug fix View in context: https://bugs.webkit.org/attachment.cgi?id=213637&action=review >> Source/WebCore/dom/EventRetargeter.cpp:184 >> +static void buildRelatedNodeMap(const Node* relatedNode, HashMap<TreeScope*, Node*>& relatedNodeMap) > > I wish these had more descriptive names. Related to what and how? Same applies to variable names in this code. I think they're referring to https://developer.mozilla.org/en-US/docs/Web/API/event.relatedTarget but I agree it'll be nice if we could come up with a better name.
Ryosuke Niwa
Comment 5 2013-10-07 20:38:01 PDT
Note You need to log in before you can comment on or make changes to this bug.