OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1492 } | 1492 } |
1493 } | 1493 } |
1494 } | 1494 } |
1495 | 1495 |
1496 m_lastMouseMoveEventSubframe = newSubframe; | 1496 m_lastMouseMoveEventSubframe = newSubframe; |
1497 | 1497 |
1498 if (swallowEvent) | 1498 if (swallowEvent) |
1499 return true; | 1499 return true; |
1500 | 1500 |
1501 swallowEvent = !dispatchMouseEvent(EventTypeNames::mousemove, mev.innerNode(
), 0, mouseEvent, true); | 1501 swallowEvent = !dispatchMouseEvent(EventTypeNames::mousemove, mev.innerNode(
), 0, mouseEvent, true); |
| 1502 if (!swallowEvent) |
| 1503 swallowEvent = handleMouseDraggedEvent(mev); |
1502 | 1504 |
1503 // http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mousemove | 1505 return swallowEvent; |
1504 // Since there is no default action for the mousemove event issue a | |
1505 // mouse dragged event irrespective of whether the event is cancelled. | |
1506 return handleMouseDraggedEvent(mev); | |
1507 } | 1506 } |
1508 | 1507 |
1509 void EventHandler::invalidateClick() | 1508 void EventHandler::invalidateClick() |
1510 { | 1509 { |
1511 m_clickCount = 0; | 1510 m_clickCount = 0; |
1512 m_clickNode = nullptr; | 1511 m_clickNode = nullptr; |
1513 } | 1512 } |
1514 | 1513 |
1515 static ContainerNode* parentForClickEvent(const Node& node) | 1514 static ContainerNode* parentForClickEvent(const Node& node) |
1516 { | 1515 { |
(...skipping 2433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3950 | 3949 |
3951 // If it's in the direction to hide the top controls, only consume when the
frame can also scroll. | 3950 // If it's in the direction to hide the top controls, only consume when the
frame can also scroll. |
3952 if (m_frame->view()->scrollPosition().y() < m_frame->view()->maximumScrollPo
sition().y()) | 3951 if (m_frame->view()->scrollPosition().y() < m_frame->view()->maximumScrollPo
sition().y()) |
3953 return true; | 3952 return true; |
3954 | 3953 |
3955 return false; | 3954 return false; |
3956 } | 3955 } |
3957 | 3956 |
3958 | 3957 |
3959 } // namespace blink | 3958 } // namespace blink |
OLD | NEW |