OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 Motorola Mobility, Inc. All rights reserved. | 2 * Copyright (c) 2012 Motorola Mobility, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "core/dom/Element.h" | 30 #include "core/dom/Element.h" |
31 #include "core/dom/NodeRareData.h" | 31 #include "core/dom/NodeRareData.h" |
32 #include "core/html/HTMLFormElement.h" | 32 #include "core/html/HTMLFormElement.h" |
33 #include "core/html/HTMLInputElement.h" | 33 #include "core/html/HTMLInputElement.h" |
34 #include "core/html/HTMLObjectElement.h" | 34 #include "core/html/HTMLObjectElement.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 using namespace HTMLNames; | 38 using namespace HTMLNames; |
39 | 39 |
40 RadioNodeList::RadioNodeList(Node* rootNode, const AtomicString& name) | 40 RadioNodeList::RadioNodeList(const Handle<Node>& rootNode, const AtomicString& n
ame) |
41 : LiveNodeList(rootNode, RadioNodeListType, InvalidateForFormControls, rootN
ode->hasTagName(formTag) ? NodeListIsRootedAtDocument : NodeListIsRootedAtNode) | 41 : LiveNodeList(rootNode, RadioNodeListType, InvalidateForFormControls, rootN
ode->hasTagName(formTag) ? NodeListIsRootedAtDocument : NodeListIsRootedAtNode) |
42 , m_name(name) | 42 , m_name(name) |
43 { | 43 { |
44 ScriptWrappable::init(this); | 44 ScriptWrappable::init(this); |
45 } | 45 } |
46 | 46 |
47 RadioNodeList::~RadioNodeList() | 47 RadioNodeList::~RadioNodeList() |
48 { | 48 { |
49 ownerNode()->nodeLists()->removeCacheWithAtomicName(this, RadioNodeListType,
m_name); | 49 ownerNode()->nodeLists()->removeCacheWithAtomicName(this, RadioNodeListType,
m_name); |
50 } | 50 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 if (Handle<HTMLInputElement> inputElement = testElement->toInputElement()) { | 108 if (Handle<HTMLInputElement> inputElement = testElement->toInputElement()) { |
109 if (inputElement->isImageButton()) | 109 if (inputElement->isImageButton()) |
110 return false; | 110 return false; |
111 } | 111 } |
112 | 112 |
113 return checkElementMatchesRadioNodeListFilter(testElement); | 113 return checkElementMatchesRadioNodeListFilter(testElement); |
114 } | 114 } |
115 | 115 |
116 } // namspace | 116 } // namspace |
117 | 117 |
OLD | NEW |