Make buildRelatedNodeMap and findRelatedNode static to EventRetargeter.cpp
Created attachment 213636 [details] Cleanup
Created attachment 213637 [details] Minor bug fix
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.
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.
Committed r157083: <http://trac.webkit.org/changeset/157083>