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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 , m_activeSelectionState(false) | 74 , m_activeSelectionState(false) |
75 , m_shouldRecalcListItems(false) | 75 , m_shouldRecalcListItems(false) |
76 , m_suggestedIndex(-1) | 76 , m_suggestedIndex(-1) |
77 { | 77 { |
78 ScriptWrappable::init(this); | 78 ScriptWrappable::init(this); |
79 setHasCustomStyleCallbacks(); | 79 setHasCustomStyleCallbacks(); |
80 } | 80 } |
81 | 81 |
82 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do
cument) | 82 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do
cument) |
83 { | 83 { |
84 return adoptRefWillBeRefCountedGarbageCollected(new HTMLSelectElement(docume
nt, 0)); | 84 return adoptRefWillBeNoop(new HTMLSelectElement(document, 0)); |
85 } | 85 } |
86 | 86 |
87 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do
cument, HTMLFormElement* form) | 87 PassRefPtrWillBeRawPtr<HTMLSelectElement> HTMLSelectElement::create(Document& do
cument, HTMLFormElement* form) |
88 { | 88 { |
89 return adoptRefWillBeRefCountedGarbageCollected(new HTMLSelectElement(docume
nt, form)); | 89 return adoptRefWillBeNoop(new HTMLSelectElement(document, form)); |
90 } | 90 } |
91 | 91 |
92 const AtomicString& HTMLSelectElement::formControlType() const | 92 const AtomicString& HTMLSelectElement::formControlType() const |
93 { | 93 { |
94 DEFINE_STATIC_LOCAL(const AtomicString, selectMultiple, ("select-multiple",
AtomicString::ConstructFromLiteral)); | 94 DEFINE_STATIC_LOCAL(const AtomicString, selectMultiple, ("select-multiple",
AtomicString::ConstructFromLiteral)); |
95 DEFINE_STATIC_LOCAL(const AtomicString, selectOne, ("select-one", AtomicStri
ng::ConstructFromLiteral)); | 95 DEFINE_STATIC_LOCAL(const AtomicString, selectOne, ("select-one", AtomicStri
ng::ConstructFromLiteral)); |
96 return m_multiple ? selectMultiple : selectOne; | 96 return m_multiple ? selectMultiple : selectOne; |
97 } | 97 } |
98 | 98 |
99 void HTMLSelectElement::optionSelectedByUser(int optionIndex, bool fireOnChangeN
ow, bool allowMultipleSelection) | 99 void HTMLSelectElement::optionSelectedByUser(int optionIndex, bool fireOnChangeN
ow, bool allowMultipleSelection) |
(...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 | 1659 |
1660 void HTMLSelectElement::trace(Visitor* visitor) | 1660 void HTMLSelectElement::trace(Visitor* visitor) |
1661 { | 1661 { |
1662 #if ENABLE(OILPAN) | 1662 #if ENABLE(OILPAN) |
1663 visitor->trace(m_listItems); | 1663 visitor->trace(m_listItems); |
1664 #endif | 1664 #endif |
1665 HTMLFormControlElementWithState::trace(visitor); | 1665 HTMLFormControlElementWithState::trace(visitor); |
1666 } | 1666 } |
1667 | 1667 |
1668 } // namespace | 1668 } // namespace |
OLD | NEW |