| 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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1490 } | 1490 } |
| 1491 } | 1491 } |
| 1492 } | 1492 } |
| 1493 | 1493 |
| 1494 m_lastMouseMoveEventSubframe = newSubframe; | 1494 m_lastMouseMoveEventSubframe = newSubframe; |
| 1495 | 1495 |
| 1496 if (swallowEvent) | 1496 if (swallowEvent) |
| 1497 return true; | 1497 return true; |
| 1498 | 1498 |
| 1499 swallowEvent = !dispatchMouseEvent(EventTypeNames::mousemove, mev.innerNode(
), 0, mouseEvent, true); | 1499 swallowEvent = !dispatchMouseEvent(EventTypeNames::mousemove, mev.innerNode(
), 0, mouseEvent, true); |
| 1500 if (!swallowEvent) | |
| 1501 swallowEvent = handleMouseDraggedEvent(mev); | |
| 1502 | 1500 |
| 1503 return swallowEvent; | 1501 // http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mousemove |
| 1502 // Since there is no default action for mousemove event as per spec, |
| 1503 // irrespective of event is cancelled or not there should be no differenece |
| 1504 return handleMouseDraggedEvent(mev); |
| 1504 } | 1505 } |
| 1505 | 1506 |
| 1506 void EventHandler::invalidateClick() | 1507 void EventHandler::invalidateClick() |
| 1507 { | 1508 { |
| 1508 m_clickCount = 0; | 1509 m_clickCount = 0; |
| 1509 m_clickNode = nullptr; | 1510 m_clickNode = nullptr; |
| 1510 } | 1511 } |
| 1511 | 1512 |
| 1512 static Node* parentForClickEvent(const Node& node) | 1513 static Node* parentForClickEvent(const Node& node) |
| 1513 { | 1514 { |
| (...skipping 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3916 | 3917 |
| 3917 // If it's in the direction to hide the top controls, only consume when the
frame can also scroll. | 3918 // If it's in the direction to hide the top controls, only consume when the
frame can also scroll. |
| 3918 if (m_frame->view()->scrollPosition().y() < m_frame->view()->maximumScrollPo
sition().y()) | 3919 if (m_frame->view()->scrollPosition().y() < m_frame->view()->maximumScrollPo
sition().y()) |
| 3919 return true; | 3920 return true; |
| 3920 | 3921 |
| 3921 return false; | 3922 return false; |
| 3922 } | 3923 } |
| 3923 | 3924 |
| 3924 | 3925 |
| 3925 } // namespace blink | 3926 } // namespace blink |
| OLD | NEW |