| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 , m_size(0) | 76 , m_size(0) |
| 77 , m_lastOnChangeIndex(-1) | 77 , m_lastOnChangeIndex(-1) |
| 78 , m_activeSelectionAnchorIndex(-1) | 78 , m_activeSelectionAnchorIndex(-1) |
| 79 , m_activeSelectionEndIndex(-1) | 79 , m_activeSelectionEndIndex(-1) |
| 80 , m_isProcessingUserDrivenChange(false) | 80 , m_isProcessingUserDrivenChange(false) |
| 81 , m_multiple(false) | 81 , m_multiple(false) |
| 82 , m_activeSelectionState(false) | 82 , m_activeSelectionState(false) |
| 83 , m_shouldRecalcListItems(false) | 83 , m_shouldRecalcListItems(false) |
| 84 , m_suggestedIndex(-1) | 84 , m_suggestedIndex(-1) |
| 85 { | 85 { |
| 86 ScriptWrappable::init(this); | |
| 87 } | 86 } |
| 88 | 87 |
| 89 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do
cument) | 88 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do
cument) |
| 90 { | 89 { |
| 91 RefPtrWillBeRawPtr<HTMLSelectElement> select = adoptRefWillBeNoop(new HTMLSe
lectElement(document, 0)); | 90 RefPtrWillBeRawPtr<HTMLSelectElement> select = adoptRefWillBeNoop(new HTMLSe
lectElement(document, 0)); |
| 92 select->ensureUserAgentShadowRoot(); | 91 select->ensureUserAgentShadowRoot(); |
| 93 return select.release(); | 92 return select.release(); |
| 94 } | 93 } |
| 95 | 94 |
| 96 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do
cument, HTMLFormElement* form) | 95 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do
cument, HTMLFormElement* form) |
| (...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1740 int focusedIndex = activeSelectionEndListIndex(); | 1739 int focusedIndex = activeSelectionEndListIndex(); |
| 1741 if (focusedIndex < 0) | 1740 if (focusedIndex < 0) |
| 1742 focusedIndex = firstSelectableListIndex(); | 1741 focusedIndex = firstSelectableListIndex(); |
| 1743 if (focusedIndex < 0) | 1742 if (focusedIndex < 0) |
| 1744 return nullptr; | 1743 return nullptr; |
| 1745 HTMLElement* focused = listItems()[focusedIndex]; | 1744 HTMLElement* focused = listItems()[focusedIndex]; |
| 1746 return isHTMLOptionElement(focused) ? toHTMLOptionElement(focused) : nullptr
; | 1745 return isHTMLOptionElement(focused) ? toHTMLOptionElement(focused) : nullptr
; |
| 1747 } | 1746 } |
| 1748 | 1747 |
| 1749 } // namespace | 1748 } // namespace |
| OLD | NEW |