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

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

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: Created 3 years, 11 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 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 {

Powered by Google App Engine
This is Rietveld 408576698