| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef EmptyNodeList_h | 32 #ifndef EmptyNodeList_h |
| 33 #define EmptyNodeList_h | 33 #define EmptyNodeList_h |
| 34 | 34 |
| 35 #include "core/dom/NodeList.h" | 35 #include "core/dom/NodeList.h" |
| 36 #include "wtf/RefPtr.h" |
| 36 | 37 |
| 37 namespace WebCore { | 38 namespace WebCore { |
| 38 | 39 |
| 39 class EmptyNodeList FINAL : public NodeList { | 40 class EmptyNodeList FINAL : public NodeList { |
| 40 public: | 41 public: |
| 41 static PassRefPtr<EmptyNodeList> create(Node* rootNode) | 42 static PassRefPtr<EmptyNodeList> create(Node* rootNode) |
| 42 { | 43 { |
| 43 ASSERT(rootNode); | 44 ASSERT(rootNode); |
| 44 return adoptRef(new EmptyNodeList(rootNode)); | 45 return adoptRef(new EmptyNodeList(rootNode)); |
| 45 } | 46 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 57 virtual Node* virtualOwnerNode() const OVERRIDE; | 58 virtual Node* virtualOwnerNode() const OVERRIDE; |
| 58 | 59 |
| 59 RefPtr<Node> m_owner; | 60 RefPtr<Node> m_owner; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 DEFINE_TYPE_CASTS(EmptyNodeList, NodeList, nodeList, nodeList->isEmptyNodeList()
, nodeList.isEmptyNodeList()); | 63 DEFINE_TYPE_CASTS(EmptyNodeList, NodeList, nodeList, nodeList->isEmptyNodeList()
, nodeList.isEmptyNodeList()); |
| 63 | 64 |
| 64 } // namespace WebCore | 65 } // namespace WebCore |
| 65 | 66 |
| 66 #endif // EmptyNodeList_h | 67 #endif // EmptyNodeList_h |
| OLD | NEW |