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

Unified Diff: Source/core/editing/PlainTextRange.h

Issue 224113002: Oilpan: move Range object to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use STACK_ALLOCATED() + incorporate ager's overview of macros in this area. Created 6 years, 9 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: Source/core/editing/PlainTextRange.h
diff --git a/Source/core/editing/PlainTextRange.h b/Source/core/editing/PlainTextRange.h
index faf200a334aeb875dde464d4361ece846aea2b3a..d3e2617a66612dadab714aefd13d5a02dc60bc19 100644
--- a/Source/core/editing/PlainTextRange.h
+++ b/Source/core/editing/PlainTextRange.h
@@ -26,6 +26,7 @@
#ifndef PlainTextRange_h
#define PlainTextRange_h
+#include "platform/heap/Handle.h"
#include "wtf/NotFound.h"
#include "wtf/PassRefPtr.h"
@@ -48,8 +49,8 @@ public:
bool isNotNull() const { return m_start != kNotFound; }
size_t length() const { ASSERT(!isNull()); return m_end - m_start; }
- PassRefPtr<Range> createRange(const ContainerNode& scope) const;
- PassRefPtr<Range> createRangeForSelection(const ContainerNode& scope) const;
+ PassRefPtrWillBeRawPtr<Range> createRange(const ContainerNode& scope) const;
+ PassRefPtrWillBeRawPtr<Range> createRangeForSelection(const ContainerNode& scope) const;
static PlainTextRange create(const Node& scope, const Range&);
@@ -57,7 +58,7 @@ private:
PlainTextRange& operator=(const PlainTextRange&) WTF_DELETED_FUNCTION;
enum GetRangeFor { ForGeneric, ForSelection };
- PassRefPtr<Range> createRangeFor(const ContainerNode& scope, GetRangeFor) const;
+ PassRefPtrWillBeRawPtr<Range> createRangeFor(const ContainerNode& scope, GetRangeFor) const;
const size_t m_start;
const size_t m_end;

Powered by Google App Engine
This is Rietveld 408576698