| 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);
|
|
|