Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 801fc8e469e17063a06f51af349e03f94e4c8c4d..f386bf5e02d5a79d2bfe6bb60eaef6a213dcf79d 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -2282,14 +2282,14 @@ bool WebViewImpl::selectionBounds(WebRect& anchor, WebRect& focus) const |
if (!selectedRange) |
return false; |
- RefPtr<Range> range(Range::create(&selectedRange->startContainer()->document(), |
+ RefPtr<Range> range(Range::create(selectedRange->startContainer()->document(), |
selectedRange->startContainer(), |
selectedRange->startOffset(), |
selectedRange->startContainer(), |
selectedRange->startOffset())); |
anchor = frame->editor().firstRectForRange(range.get()); |
- range = Range::create(&selectedRange->endContainer()->document(), |
+ range = Range::create(selectedRange->endContainer()->document(), |
selectedRange->endContainer(), |
selectedRange->endOffset(), |
selectedRange->endContainer(), |