| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
| 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 10 * | 10 * |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "core/events/GestureEvent.h" | 42 #include "core/events/GestureEvent.h" |
| 43 #include "core/events/KeyboardEvent.h" | 43 #include "core/events/KeyboardEvent.h" |
| 44 #include "core/events/MouseEvent.h" | 44 #include "core/events/MouseEvent.h" |
| 45 #include "core/frame/FrameView.h" | 45 #include "core/frame/FrameView.h" |
| 46 #include "core/frame/LocalFrame.h" | 46 #include "core/frame/LocalFrame.h" |
| 47 #include "core/html/FormDataList.h" | 47 #include "core/html/FormDataList.h" |
| 48 #include "core/html/HTMLFormElement.h" | 48 #include "core/html/HTMLFormElement.h" |
| 49 #include "core/html/HTMLOptGroupElement.h" | 49 #include "core/html/HTMLOptGroupElement.h" |
| 50 #include "core/html/HTMLOptionElement.h" | 50 #include "core/html/HTMLOptionElement.h" |
| 51 #include "core/html/forms/FormController.h" | 51 #include "core/html/forms/FormController.h" |
| 52 #include "core/input/EventHandler.h" |
| 52 #include "core/layout/HitTestRequest.h" | 53 #include "core/layout/HitTestRequest.h" |
| 53 #include "core/layout/HitTestResult.h" | 54 #include "core/layout/HitTestResult.h" |
| 54 #include "core/layout/LayoutListBox.h" | 55 #include "core/layout/LayoutListBox.h" |
| 55 #include "core/layout/LayoutMenuList.h" | 56 #include "core/layout/LayoutMenuList.h" |
| 56 #include "core/layout/LayoutTheme.h" | 57 #include "core/layout/LayoutTheme.h" |
| 57 #include "core/layout/LayoutView.h" | 58 #include "core/layout/LayoutView.h" |
| 58 #include "core/page/AutoscrollController.h" | 59 #include "core/page/AutoscrollController.h" |
| 59 #include "core/page/EventHandler.h" | |
| 60 #include "core/page/Page.h" | 60 #include "core/page/Page.h" |
| 61 #include "core/page/SpatialNavigation.h" | 61 #include "core/page/SpatialNavigation.h" |
| 62 #include "platform/PlatformMouseEvent.h" | 62 #include "platform/PlatformMouseEvent.h" |
| 63 #include "platform/text/PlatformLocale.h" | 63 #include "platform/text/PlatformLocale.h" |
| 64 | 64 |
| 65 using namespace WTF::Unicode; | 65 using namespace WTF::Unicode; |
| 66 | 66 |
| 67 namespace blink { | 67 namespace blink { |
| 68 | 68 |
| 69 using namespace HTMLNames; | 69 using namespace HTMLNames; |
| (...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1765 int focusedIndex = activeSelectionEndListIndex(); | 1765 int focusedIndex = activeSelectionEndListIndex(); |
| 1766 if (focusedIndex < 0) | 1766 if (focusedIndex < 0) |
| 1767 focusedIndex = firstSelectableListIndex(); | 1767 focusedIndex = firstSelectableListIndex(); |
| 1768 if (focusedIndex < 0) | 1768 if (focusedIndex < 0) |
| 1769 return nullptr; | 1769 return nullptr; |
| 1770 HTMLElement* focused = listItems()[focusedIndex]; | 1770 HTMLElement* focused = listItems()[focusedIndex]; |
| 1771 return isHTMLOptionElement(focused) ? toHTMLOptionElement(focused) : nullptr
; | 1771 return isHTMLOptionElement(focused) ? toHTMLOptionElement(focused) : nullptr
; |
| 1772 } | 1772 } |
| 1773 | 1773 |
| 1774 } // namespace | 1774 } // namespace |
| OLD | NEW |