| Index: Source/core/accessibility/AXRenderObject.cpp
|
| diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp
|
| index be09e6ae0217b9b7aeb4adc814e2e29892c9c314..a1e61f98bc59314ffd2c64ff5215ab7bfbdcd871 100644
|
| --- a/Source/core/accessibility/AXRenderObject.cpp
|
| +++ b/Source/core/accessibility/AXRenderObject.cpp
|
| @@ -1742,7 +1742,7 @@ VisiblePosition AXRenderObject::visiblePositionForIndex(int index) const
|
| if (index <= 0)
|
| return VisiblePosition(firstPositionInOrBeforeNode(node), DOWNSTREAM);
|
|
|
| - RefPtr<Range> range = Range::create(m_renderer->document());
|
| + RefPtrWillBeRawPtr<Range> range = Range::create(m_renderer->document());
|
| range->selectNodeContents(node, IGNORE_EXCEPTION);
|
| CharacterIterator it(range.get());
|
| it.advance(index - 1);
|
| @@ -1768,7 +1768,7 @@ int AXRenderObject::indexForVisiblePosition(const VisiblePosition& pos) const
|
| if (indexPosition.isNull() || highestEditableRoot(indexPosition, HasEditableAXRole) != node)
|
| return 0;
|
|
|
| - RefPtr<Range> range = Range::create(m_renderer->document());
|
| + RefPtrWillBeRawPtr<Range> range = Range::create(m_renderer->document());
|
| range->setStart(node, 0, IGNORE_EXCEPTION);
|
| range->setEnd(indexPosition, IGNORE_EXCEPTION);
|
|
|
| @@ -1863,7 +1863,7 @@ AXObject::PlainTextRange AXRenderObject::ariaSelectedTextRange() const
|
| return PlainTextRange();
|
|
|
| VisibleSelection visibleSelection = selection();
|
| - RefPtr<Range> currentSelectionRange = visibleSelection.toNormalizedRange();
|
| + RefPtrWillBeRawPtr<Range> currentSelectionRange = visibleSelection.toNormalizedRange();
|
| if (!currentSelectionRange || !currentSelectionRange->intersectsNode(node, IGNORE_EXCEPTION))
|
| return PlainTextRange();
|
|
|
|
|