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 bf3832d19f4575c8599d5a6eb0d4c8b8eec7abbc..699262fd200482efda814834e570fb1a189e54da 100644 |
--- a/third_party/WebKit/Source/core/dom/Range.cpp |
+++ b/third_party/WebKit/Source/core/dom/Range.cpp |
@@ -232,13 +232,15 @@ void Range::collapse(bool toStart) { |
bool Range::isNodeFullyContained(Node& node) const { |
ContainerNode* parentNode = node.parentNode(); |
int nodeIndex = node.nodeIndex(); |
- return isPointInRange(parentNode, nodeIndex, |
- IGNORE_EXCEPTION) // starts in the middle of this |
- // range, or on the boundary points. |
- && isPointInRange(parentNode, nodeIndex + 1, |
- IGNORE_EXCEPTION); // ends in the middle of this |
- // range, or on the boundary |
- // points. |
+ return isPointInRange( |
+ 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. |
} |
bool Range::hasSameRoot(const Node& node) const { |