Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Side by Side Diff: Source/core/dom/EmptyNodeList.h

Issue 144313014: Remove NodeList's anonymous named getter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Another clang build fix Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 virtual ~EmptyNodeList(); 45 virtual ~EmptyNodeList();
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 virtual Node* namedItem(const AtomicString&) const OVERRIDE { return 0; }
55 54
56 virtual bool isEmptyNodeList() const OVERRIDE { return true; } 55 virtual bool isEmptyNodeList() const OVERRIDE { return true; }
57 56
58 RefPtr<Node> m_owner; 57 RefPtr<Node> m_owner;
59 }; 58 };
60 59
61 DEFINE_TYPE_CASTS(EmptyNodeList, NodeList, nodeList, nodeList->isEmptyNodeList() , nodeList.isEmptyNodeList()); 60 DEFINE_TYPE_CASTS(EmptyNodeList, NodeList, nodeList, nodeList->isEmptyNodeList() , nodeList.isEmptyNodeList());
62 61
63 } // namespace WebCore 62 } // namespace WebCore
64 63
65 #endif // EmptyNodeList_h 64 #endif // EmptyNodeList_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/childnode-item-after-itemname-expected.txt ('k') | Source/core/dom/LiveNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698