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

Unified Diff: third_party/WebKit/Source/core/dom/NodeIterator.cpp

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/NodeIterator.cpp
diff --git a/third_party/WebKit/Source/core/dom/NodeIterator.cpp b/third_party/WebKit/Source/core/dom/NodeIterator.cpp
index e749133a4f02d4d585eaf51c462667b6fe9b4033..c6cab77281ae4d6cda9473660000f45d08901532 100644
--- a/third_party/WebKit/Source/core/dom/NodeIterator.cpp
+++ b/third_party/WebKit/Source/core/dom/NodeIterator.cpp
@@ -67,7 +67,8 @@ NodeIterator::NodeIterator(Node* rootNode,
NodeFilter* filter)
: NodeIteratorBase(rootNode, whatToShow, filter),
m_referenceNode(root(), true) {
- // If NodeIterator target is Attr node, don't subscribe for nodeWillBeRemoved, as it would never have child nodes.
+ // If NodeIterator target is Attr node, don't subscribe for nodeWillBeRemoved,
+ // as it would never have child nodes.
if (!root()->isAttributeNode())
root()->document().attachNodeIterator(this);
}
@@ -133,8 +134,9 @@ void NodeIterator::updateForNodeRemoval(Node& removedNode,
NodePointer& referenceNode) const {
DCHECK_EQ(root()->document(), removedNode.document());
- // Iterator is not affected if the removed node is the reference node and is the root.
- // or if removed node is not the reference node, or the ancestor of the reference node.
+ // Iterator is not affected if the removed node is the reference node and is
+ // the root. or if removed node is not the reference node, or the ancestor of
+ // the reference node.
if (!removedNode.isDescendantOf(root()))
return;
bool willRemoveReferenceNode = removedNode == referenceNode.node.get();
« no previous file with comments | « third_party/WebKit/Source/core/dom/NodeComputedStyle.h ('k') | third_party/WebKit/Source/core/dom/NodeIteratorBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698