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

Unified Diff: third_party/WebKit/Source/core/dom/Range.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/Range.cpp
diff --git a/third_party/WebKit/Source/core/dom/Range.cpp b/third_party/WebKit/Source/core/dom/Range.cpp
index 0805621b5f5650f71a6dcd37a4bcb2ae2e14b2a6..2147b3afb1f54123637cc4355d9c75b4dce5c464 100644
--- a/third_party/WebKit/Source/core/dom/Range.cpp
+++ b/third_party/WebKit/Source/core/dom/Range.cpp
@@ -249,11 +249,12 @@ bool Range::isNodeFullyContained(Node& node) const {
parentNode, nodeIndex,
IGNORE_EXCEPTION_FOR_TESTING) // starts in the middle of this
// range, or on the boundary points.
- && isPointInRange(
- parentNode, nodeIndex + 1,
- IGNORE_EXCEPTION_FOR_TESTING); // ends in the middle of this
- // range, or on the boundary
- // points.
+ &&
+ isPointInRange(
+ parentNode, nodeIndex + 1,
+ IGNORE_EXCEPTION_FOR_TESTING); // ends in the middle of this
+ // range, or on the boundary
+ // points.
}
bool Range::hasSameRoot(const Node& node) const {
@@ -848,9 +849,9 @@ void Range::insertNode(Node* newNode, ExceptionState& exceptionState) {
numNewChildren = 1;
if (!checkAgainst->childTypeAllowed(newNodeType)) {
exceptionState.throwDOMException(
- HierarchyRequestError, "The node to be inserted is a '" +
- newNode->nodeName() +
- "' node, which may not be inserted here.");
+ HierarchyRequestError,
+ "The node to be inserted is a '" + newNode->nodeName() +
+ "' node, which may not be inserted here.");
return;
}
}
@@ -871,9 +872,9 @@ void Range::insertNode(Node* newNode, ExceptionState& exceptionState) {
case Node::kAttributeNode:
case Node::kDocumentNode:
exceptionState.throwDOMException(
- InvalidNodeTypeError, "The node to be inserted is a '" +
- newNode->nodeName() +
- "' node, which may not be inserted here.");
+ InvalidNodeTypeError,
+ "The node to be inserted is a '" + newNode->nodeName() +
+ "' node, which may not be inserted here.");
return;
default:
if (newNode->isShadowRoot()) {
@@ -1669,8 +1670,9 @@ void Range::getBorderAndTextQuads(Vector<FloatQuad>& quads) const {
// Exclude start & end container unless the entire corresponding
// node is included in the range.
if (!nodeSet.contains(node->parentNode()) &&
- (startContainer == endContainer || (!node->contains(startContainer) &&
- !node->contains(endContainer)))) {
+ (startContainer == endContainer ||
+ (!node->contains(startContainer) &&
+ !node->contains(endContainer)))) {
if (LayoutObject* layoutObject = toElement(node)->layoutObject()) {
Vector<FloatQuad> elementQuads;
layoutObject->absoluteQuads(elementQuads);
« no previous file with comments | « third_party/WebKit/Source/core/dom/QualifiedName.h ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698