| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/html/HTMLObjectElement.h" | 35 #include "core/html/HTMLObjectElement.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 using namespace HTMLNames; | 39 using namespace HTMLNames; |
| 40 | 40 |
| 41 RadioNodeList::RadioNodeList(ContainerNode& rootNode, const AtomicString& name,
CollectionType type) | 41 RadioNodeList::RadioNodeList(ContainerNode& rootNode, const AtomicString& name,
CollectionType type) |
| 42 : LiveNodeList(rootNode, type, InvalidateForFormControls, isHTMLFormElement(
rootNode) ? NodeListIsRootedAtDocument : NodeListIsRootedAtNode) | 42 : LiveNodeList(rootNode, type, InvalidateForFormControls, isHTMLFormElement(
rootNode) ? NodeListIsRootedAtDocument : NodeListIsRootedAtNode) |
| 43 , m_name(name) | 43 , m_name(name) |
| 44 { | 44 { |
| 45 ScriptWrappable::init(this); | |
| 46 } | 45 } |
| 47 | 46 |
| 48 RadioNodeList::~RadioNodeList() | 47 RadioNodeList::~RadioNodeList() |
| 49 { | 48 { |
| 50 #if !ENABLE(OILPAN) | 49 #if !ENABLE(OILPAN) |
| 51 ownerNode().nodeLists()->removeCache(this, type(), m_name); | 50 ownerNode().nodeLists()->removeCache(this, type(), m_name); |
| 52 #endif | 51 #endif |
| 53 } | 52 } |
| 54 | 53 |
| 55 static inline HTMLInputElement* toRadioButtonInputElement(Element& element) | 54 static inline HTMLInputElement* toRadioButtonInputElement(Element& element) |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 if (!isHTMLObjectElement(element) && !element.isFormControlElement()) | 122 if (!isHTMLObjectElement(element) && !element.isFormControlElement()) |
| 124 return false; | 123 return false; |
| 125 | 124 |
| 126 if (isHTMLInputElement(element) && toHTMLInputElement(element).isImageButton
()) | 125 if (isHTMLInputElement(element) && toHTMLInputElement(element).isImageButton
()) |
| 127 return false; | 126 return false; |
| 128 | 127 |
| 129 return checkElementMatchesRadioNodeListFilter(element); | 128 return checkElementMatchesRadioNodeListFilter(element); |
| 130 } | 129 } |
| 131 | 130 |
| 132 } // namespace | 131 } // namespace |
| OLD | NEW |