| 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 18 matching lines...) Expand all Loading... |
| 29 #include "DynamicNodeList.h" | 29 #include "DynamicNodeList.h" |
| 30 #include <wtf/PassRefPtr.h> | 30 #include <wtf/PassRefPtr.h> |
| 31 #include <wtf/RefPtr.h> | 31 #include <wtf/RefPtr.h> |
| 32 #include <wtf/Vector.h> | 32 #include <wtf/Vector.h> |
| 33 #include <wtf/text/AtomicString.h> | 33 #include <wtf/text/AtomicString.h> |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 class RadioNodeList : public DynamicSubtreeNodeList { | 37 class RadioNodeList : public DynamicSubtreeNodeList { |
| 38 public: | 38 public: |
| 39 static PassRefPtr<RadioNodeList> create(Element* baseElement, const AtomicSt
ring& name) | 39 static PassRefPtr<RadioNodeList> create(Node* rootNode, const AtomicString&
name) |
| 40 { | 40 { |
| 41 return adoptRef(new RadioNodeList(baseElement, name)); | 41 return adoptRef(new RadioNodeList(rootNode, name)); |
| 42 } | 42 } |
| 43 | 43 |
| 44 ~RadioNodeList(); | 44 ~RadioNodeList(); |
| 45 | 45 |
| 46 String value() const; | 46 String value() const; |
| 47 void setValue(const String&); | 47 void setValue(const String&); |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 virtual bool nodeMatches(Element*) const; | 50 virtual bool nodeMatches(Element*) const; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 RadioNodeList(Element*, const AtomicString& name); | 53 RadioNodeList(Node*, const AtomicString& name); |
| 54 bool checkElementMatchesRadioNodeListFilter(Element*) const; | 54 bool checkElementMatchesRadioNodeListFilter(Element*) const; |
| 55 | 55 |
| 56 AtomicString m_name; | 56 AtomicString m_name; |
| 57 RefPtr<Element> m_baseElement; | |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 } // namepsace | 59 } // namepsace |
| 61 | 60 |
| 62 #endif | 61 #endif |
| 63 | 62 |
| OLD | NEW |