| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 Node* ownerNode() const { return m_owner.get(); } | 47 Node* ownerNode() const { return m_owner.get(); } |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 explicit EmptyNodeList(Node* rootNode) : m_owner(rootNode) { } | 50 explicit EmptyNodeList(Node* rootNode) : m_owner(rootNode) { } |
| 51 | 51 |
| 52 virtual unsigned length() const OVERRIDE { return 0; } | 52 virtual unsigned length() const OVERRIDE { return 0; } |
| 53 virtual Node* item(unsigned) const OVERRIDE { return 0; } | 53 virtual Node* item(unsigned) const OVERRIDE { return 0; } |
| 54 | 54 |
| 55 virtual bool isEmptyNodeList() const OVERRIDE { return true; } | 55 virtual bool isEmptyNodeList() const OVERRIDE { return true; } |
| 56 virtual Node* virtualOwnerNode() const OVERRIDE; |
| 56 | 57 |
| 57 RefPtr<Node> m_owner; | 58 RefPtr<Node> m_owner; |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 DEFINE_TYPE_CASTS(EmptyNodeList, NodeList, nodeList, nodeList->isEmptyNodeList()
, nodeList.isEmptyNodeList()); | 61 DEFINE_TYPE_CASTS(EmptyNodeList, NodeList, nodeList, nodeList->isEmptyNodeList()
, nodeList.isEmptyNodeList()); |
| 61 | 62 |
| 62 } // namespace WebCore | 63 } // namespace WebCore |
| 63 | 64 |
| 64 #endif // EmptyNodeList_h | 65 #endif // EmptyNodeList_h |
| OLD | NEW |