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

Unified Diff: Source/web/WebAXObject.cpp

Issue 1269263003: The start and end arguments should be unsigned long in setSelectionRange() function Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebAXObject.cpp
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp
index 6b23eb36d76f3441fdb1596ff8f6a23687faec40..e207deb99417008c24ee2b73eae8c2a5afa44555 100644
--- a/Source/web/WebAXObject.cpp
+++ b/Source/web/WebAXObject.cpp
@@ -853,8 +853,6 @@ unsigned WebAXObject::selectionEnd() const
return 0;
AXObject::AXRange axSelection = m_private->selectionUnderObject();
- if (axSelection.focusOffset < 0)
- return 0;
return axSelection.focusOffset;
}
@@ -865,8 +863,6 @@ unsigned WebAXObject::selectionStart() const
return 0;
AXObject::AXRange axSelection = m_private->selectionUnderObject();
- if (axSelection.anchorOffset < 0)
- return 0;
return axSelection.anchorOffset;
}
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698