Removed a redundant mouse-state from EventHandler.
EventHandler currently have two state vars for tracking node under mouse: m_nodeUnderMouse and m_lastNodeUnderMouse. These two pointers are used primarily for mouse entry/exit events, but they point to the same node until we are about to send mouseenter/leave/over/out events. In the few cases these pointers become unequal otherwise (happens only when dispathMouseEvent is called with setUnder=false), it is not clear why we didn't update the old state. My experiments suggest that updating the old state doesn't hurt in these cases. So it makes sense to nuke the m_lastNodeUnderMouse state. BUG= Review URL: https://codereview.chromium.org/1293973004 git-svn-id: svn://svn.chromium.org/blink/trunk@201023 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment