DescriptionRemoved 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=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201023
Patch Set 1 #Patch Set 2 : Fixed a raw-ptr issue on deleted node. #
Messages
Total messages: 12 (5 generated)
|