| Index: Source/modules/accessibility/AXObject.h
|
| diff --git a/Source/modules/accessibility/AXObject.h b/Source/modules/accessibility/AXObject.h
|
| index 92f50f360b6eb676d5d14184d947e7e703ed6c8f..087ae3fdfe58aebede33fcd6c3d59f2093271677 100644
|
| --- a/Source/modules/accessibility/AXObject.h
|
| +++ b/Source/modules/accessibility/AXObject.h
|
| @@ -414,30 +414,30 @@ public:
|
| RefPtrWillBePersistent<AXObject> anchorObject;
|
| // The number of characters and child objects in the anchor object
|
| // before the range starts.
|
| - int anchorOffset;
|
| + unsigned anchorOffset;
|
| // The deepest descendant in which the range ends.
|
| // (nullptr means the current object.)
|
| RefPtrWillBePersistent<AXObject> focusObject;
|
| // The number of characters and child objects in the focus object
|
| // before the range ends.
|
| - int focusOffset;
|
| + unsigned focusOffset;
|
|
|
| AXRange()
|
| : anchorObject(nullptr)
|
| - , anchorOffset(-1)
|
| + , anchorOffset(UINT_MAX)
|
| , focusObject(nullptr)
|
| - , focusOffset(-1)
|
| + , focusOffset(UINT_MAX)
|
| { }
|
|
|
| - AXRange(int startOffset, int endOffset)
|
| + AXRange(unsigned startOffset, unsigned endOffset)
|
| : anchorObject(nullptr)
|
| , anchorOffset(startOffset)
|
| , focusObject(nullptr)
|
| , focusOffset(endOffset)
|
| { }
|
|
|
| - AXRange(PassRefPtrWillBeRawPtr<AXObject> anchorObject, int anchorOffset,
|
| - PassRefPtrWillBeRawPtr<AXObject> focusObject, int focusOffset)
|
| + AXRange(PassRefPtrWillBeRawPtr<AXObject> anchorObject, unsigned anchorOffset,
|
| + PassRefPtrWillBeRawPtr<AXObject> focusObject, unsigned focusOffset)
|
| : anchorObject(anchorObject)
|
| , anchorOffset(anchorOffset)
|
| , focusObject(focusObject)
|
| @@ -447,8 +447,7 @@ public:
|
| bool isValid() const
|
| {
|
| return ((anchorObject && focusObject)
|
| - || (!anchorObject && !focusObject))
|
| - && anchorOffset >= 0 && focusOffset >= 0;
|
| + || (!anchorObject && !focusObject));
|
| }
|
|
|
| // Determines if the range only refers to text offsets under the current object.
|
|
|