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

Side by Side Diff: Source/web/WebNode.cpp

Issue 171773008: Rename childNodeCount() / childNode() methods for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Further renaming for consistency 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebPageSerializerImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 return WebNode(m_private->previousSibling()); 120 return WebNode(m_private->previousSibling());
121 } 121 }
122 122
123 WebNode WebNode::nextSibling() const 123 WebNode WebNode::nextSibling() const
124 { 124 {
125 return WebNode(m_private->nextSibling()); 125 return WebNode(m_private->nextSibling());
126 } 126 }
127 127
128 bool WebNode::hasChildNodes() const 128 bool WebNode::hasChildNodes() const
129 { 129 {
130 return m_private->hasChildNodes(); 130 return m_private->hasChildren();
131 } 131 }
132 132
133 WebNodeList WebNode::childNodes() 133 WebNodeList WebNode::childNodes()
134 { 134 {
135 return WebNodeList(m_private->childNodes()); 135 return WebNodeList(m_private->childNodes());
136 } 136 }
137 137
138 WebString WebNode::createMarkup() const 138 WebString WebNode::createMarkup() const
139 { 139 {
140 return WebCore::createMarkup(m_private.get()); 140 return WebCore::createMarkup(m_private.get());
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 m_private = node; 266 m_private = node;
267 return *this; 267 return *this;
268 } 268 }
269 269
270 WebNode::operator PassRefPtr<Node>() const 270 WebNode::operator PassRefPtr<Node>() const
271 { 271 {
272 return m_private.get(); 272 return m_private.get();
273 } 273 }
274 274
275 } // namespace blink 275 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebPageSerializerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698