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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 8e19a72a5765676f2d251006ae1098cf3285c06a..c89d0295736d40a685145aa5bb4903d9dfb1cc3c 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -524,9 +524,10 @@ void Node::before(const HeapVector<NodeOrString>& nodes,
return;
Node* viablePreviousSibling = findViablePreviousSibling(*this, nodes);
if (Node* node = convertNodesIntoNode(nodes, document(), exceptionState))
- parent->insertBefore(node, viablePreviousSibling
- ? viablePreviousSibling->nextSibling()
- : parent->firstChild(),
+ parent->insertBefore(node,
+ viablePreviousSibling
+ ? viablePreviousSibling->nextSibling()
+ : parent->firstChild(),
exceptionState);
}
@@ -1497,11 +1498,10 @@ unsigned short Node::compareDocumentPosition(
// There was no difference between the two parent chains, i.e., one was a
// subset of the other. The shorter chain is the ancestor.
- return index1 < index2
- ? kDocumentPositionFollowing | kDocumentPositionContainedBy |
- connection
- : kDocumentPositionPreceding | kDocumentPositionContains |
- connection;
+ return index1 < index2 ? kDocumentPositionFollowing |
+ kDocumentPositionContainedBy | connection
+ : kDocumentPositionPreceding |
+ kDocumentPositionContains | connection;
}
String Node::debugName() const {
« no previous file with comments | « third_party/WebKit/Source/core/dom/NamedNodeMap.cpp ('k') | third_party/WebKit/Source/core/dom/QualifiedName.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698