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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp 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/modules/accessibility/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index c1cc3e73c42da5321bfe518449b7e9491104c333..d7dd8310e07d8851cea5c412e3f3310172b6f554 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -1795,10 +1795,10 @@ AXObject::AXRange AXLayoutObject::selectionUnderObject() const {
// Selection is contained in node.
||
!(parentNode &&
- selectionRange->comparePoint(parentNode, nodeIndex, IGNORE_EXCEPTION) <
- 0 &&
+ selectionRange->comparePoint(parentNode, nodeIndex,
+ IGNORE_EXCEPTION_FOR_TESTING) < 0 &&
selectionRange->comparePoint(parentNode, nodeIndex + 1,
- IGNORE_EXCEPTION) > 0)) {
+ IGNORE_EXCEPTION_FOR_TESTING) > 0)) {
return AXRange();
}
@@ -1858,8 +1858,8 @@ int AXLayoutObject::indexForVisiblePosition(
return 0;
Range* range = Range::create(*getDocument());
- range->setStart(getNode(), 0, IGNORE_EXCEPTION);
- range->setEnd(indexPosition, IGNORE_EXCEPTION);
+ range->setStart(getNode(), 0, IGNORE_EXCEPTION_FOR_TESTING);
+ range->setEnd(indexPosition, IGNORE_EXCEPTION_FOR_TESTING);
return TextIterator::rangeLength(range->startPosition(),
range->endPosition());

Powered by Google App Engine
This is Rietveld 408576698