[Webkit-unassigned] [Bug 57206] incorrect :hover:active and :active rule application
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 27 11:58:43 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=57206
Kulanthaivel Palanichamy <kulanthaivel at codeaurora.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kulanthaivel at codeaurora.org
--- Comment #1 from Kulanthaivel Palanichamy <kulanthaivel at codeaurora.org> 2011-05-27 11:58:43 PST ---
When the mouse button is pressed and dragged out, the mouse event HitTestRequest is explicitly made HitTestRequest::ReadOnly expecting some selection to happen as a result of this drag. So there won't any style change due to hover/active state change at this event.
EventHandler.cpp, EventHandler::handleMouseMoveEvent()
// Treat mouse move events while the mouse is pressed as "read-only" in prepareMouseEvent
// if we are allowed to select.
// This means that :hover and :active freeze in the state they were in when the mouse
// was pressed, rather than updating for nodes the mouse moves over as you hold the mouse down.
HitTestRequest::HitTestRequestType hitType = HitTestRequest::MouseMove;
if (m_mousePressed && m_mouseDownMayStartSelect)
hitType |= HitTestRequest::ReadOnly;
if (m_mousePressed)
hitType |= HitTestRequest::Active;
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list