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

Unified Diff: third_party/WebKit/Source/web/WebRange.cpp

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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
Index: third_party/WebKit/Source/web/WebRange.cpp
diff --git a/third_party/WebKit/Source/web/WebRange.cpp b/third_party/WebKit/Source/web/WebRange.cpp
index c1f700cb7e6e0b9d824f23792deaabafbe0d7557..048c82bd30ec2a5b1b80cde597f0a3b4232ab634 100644
--- a/third_party/WebKit/Source/web/WebRange.cpp
+++ b/third_party/WebKit/Source/web/WebRange.cpp
@@ -79,15 +79,15 @@ WebRange WebRange::fromDocumentRange(WebLocalFrame* frame, int start, int length
LocalFrame* webFrame = toWebLocalFrameImpl(frame)->frame();
Element* selectionRoot = webFrame->selection().rootEditableElement();
ContainerNode* scope = selectionRoot ? selectionRoot : webFrame->document()->documentElement();
- return createRange(PlainTextRange(start, start + length).createRange(*scope));
+ return createRange(PlainTextRange(start, start + length).createRange(*scope)).get();
}
-WebRange::WebRange(const RawPtr<Range>& range)
+WebRange::WebRange(Range*range)
: m_private(range)
{
}
-WebRange::operator RawPtr<Range>() const
+WebRange::operator Range*() const
{
return m_private.get();
}
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginDocument.cpp ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698