| 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 if (event.event().button() != LeftButton || !targetNode) | 566 if (event.event().button() != LeftButton || !targetNode) |
| 567 return false; | 567 return false; |
| 568 | 568 |
| 569 RenderObject* renderer = targetNode->renderer(); | 569 RenderObject* renderer = targetNode->renderer(); |
| 570 if (!renderer) { | 570 if (!renderer) { |
| 571 Node* parent = NodeRenderingTraversal::parent(targetNode); | 571 Node* parent = NodeRenderingTraversal::parent(targetNode); |
| 572 if (!parent) | 572 if (!parent) |
| 573 return false; | 573 return false; |
| 574 | 574 |
| 575 renderer = parent->renderer(); | 575 renderer = parent->renderer(); |
| 576 if (!renderer || !renderer->isListBox()) | 576 if (!renderer) |
| 577 return false; | 577 return false; |
| 578 } | 578 } |
| 579 | 579 |
| 580 m_mouseDownMayStartDrag = false; | 580 m_mouseDownMayStartDrag = false; |
| 581 | 581 |
| 582 if (m_mouseDownMayStartAutoscroll) { | 582 if (m_mouseDownMayStartAutoscroll) { |
| 583 if (AutoscrollController* controller = autoscrollController()) { | 583 if (AutoscrollController* controller = autoscrollController()) { |
| 584 controller->startAutoscrollForSelection(renderer); | 584 controller->startAutoscrollForSelection(renderer); |
| 585 m_mouseDownMayStartAutoscroll = false; | 585 m_mouseDownMayStartAutoscroll = false; |
| 586 } | 586 } |
| (...skipping 2225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2812 unsigned EventHandler::accessKeyModifiers() | 2812 unsigned EventHandler::accessKeyModifiers() |
| 2813 { | 2813 { |
| 2814 #if OS(MACOSX) | 2814 #if OS(MACOSX) |
| 2815 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 2815 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
| 2816 #else | 2816 #else |
| 2817 return PlatformEvent::AltKey; | 2817 return PlatformEvent::AltKey; |
| 2818 #endif | 2818 #endif |
| 2819 } | 2819 } |
| 2820 | 2820 |
| 2821 } // namespace blink | 2821 } // namespace blink |
| OLD | NEW |