| 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 { | 572 { |
| 573 TRACE_EVENT0("blink", "EventHandler::handleMousePressEvent"); | 573 TRACE_EVENT0("blink", "EventHandler::handleMousePressEvent"); |
| 574 | 574 |
| 575 // Reset drag state. | 575 // Reset drag state. |
| 576 dragState().m_dragSrc = nullptr; | 576 dragState().m_dragSrc = nullptr; |
| 577 | 577 |
| 578 cancelFakeMouseMoveEvent(); | 578 cancelFakeMouseMoveEvent(); |
| 579 | 579 |
| 580 m_frame->document()->updateLayoutIgnorePendingStylesheets(); | 580 m_frame->document()->updateLayoutIgnorePendingStylesheets(); |
| 581 | 581 |
| 582 if (ScrollView* scrollView = m_frame->view()) { | 582 if (FrameView* scrollView = m_frame->view()) { |
| 583 if (scrollView->isPointInScrollbarCorner(event.event().position())) | 583 if (scrollView->isPointInScrollbarCorner(event.event().position())) |
| 584 return false; | 584 return false; |
| 585 } | 585 } |
| 586 | 586 |
| 587 bool singleClick = event.event().clickCount() <= 1; | 587 bool singleClick = event.event().clickCount() <= 1; |
| 588 | 588 |
| 589 // If we got the event back, that must mean it wasn't prevented, | 589 // If we got the event back, that must mean it wasn't prevented, |
| 590 // so it's allowed to start a drag or selection if it wasn't in a scrollbar. | 590 // so it's allowed to start a drag or selection if it wasn't in a scrollbar. |
| 591 m_mouseDownMayStartSelect = canMouseDownStartSelect(event.innerNode()) && !e
vent.scrollbar(); | 591 m_mouseDownMayStartSelect = canMouseDownStartSelect(event.innerNode()) && !e
vent.scrollbar(); |
| 592 | 592 |
| (...skipping 3293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3886 unsigned EventHandler::accessKeyModifiers() | 3886 unsigned EventHandler::accessKeyModifiers() |
| 3887 { | 3887 { |
| 3888 #if OS(MACOSX) | 3888 #if OS(MACOSX) |
| 3889 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3889 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
| 3890 #else | 3890 #else |
| 3891 return PlatformEvent::AltKey; | 3891 return PlatformEvent::AltKey; |
| 3892 #endif | 3892 #endif |
| 3893 } | 3893 } |
| 3894 | 3894 |
| 3895 } // namespace blink | 3895 } // namespace blink |
| OLD | NEW |