Index: Source/web/mac/WebSubstringUtil.mm |
diff --git a/Source/web/mac/WebSubstringUtil.mm b/Source/web/mac/WebSubstringUtil.mm |
index 6e50c37ca0a601fd9881533b4e003504817e1069..216d9983a28b3096b21d3eaae4dde7af8099ea6d 100644 |
--- a/Source/web/mac/WebSubstringUtil.mm |
+++ b/Source/web/mac/WebSubstringUtil.mm |
@@ -116,14 +116,14 @@ NSAttributedString* WebSubstringUtil::attributedWordAtPoint(WebView* view, WebPo |
LocalFrame* frame = result.targetNode()->document().frame(); |
FrameView* frameView = frame->view(); |
- RefPtr<Range> range = frame->rangeForPoint(result.roundedPointInInnerNodeFrame()); |
+ RefPtrWillBeRawPtr<Range> range = frame->rangeForPoint(result.roundedPointInInnerNodeFrame()); |
if (!range) |
return nil; |
// Expand to word under point. |
VisibleSelection selection(range.get()); |
selection.expandUsingGranularity(WordGranularity); |
- RefPtr<Range> wordRange = selection.toNormalizedRange(); |
+ RefPtrWillBeRawPtr<Range> wordRange = selection.toNormalizedRange(); |
// Convert to NSAttributedString. |
NSAttributedString* string = attributedSubstringFromRange(wordRange.get()); |
@@ -153,7 +153,7 @@ NSAttributedString* WebSubstringUtil::attributedSubstringInRange(WebFrame* webFr |
Element* editable = frame->selection().rootEditableElementOrDocumentElement(); |
ASSERT(editable); |
- RefPtr<Range> range(PlainTextRange(location, location + length).createRange(*editable)); |
+ RefPtrWillBeRawPtr<Range> range(PlainTextRange(location, location + length).createRange(*editable)); |
if (!range) |
return nil; |