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

Unified Diff: Source/core/editing/Editor.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/Editor.h
diff --git a/Source/core/editing/Editor.h b/Source/core/editing/Editor.h
index 28d45d5684b2d88b6740b1cc50875c92e2588878..6ffa85abe78334616aa35fd90d5036083dfaeba1 100644
--- a/Source/core/editing/Editor.h
+++ b/Source/core/editing/Editor.h
@@ -37,6 +37,7 @@
#include "core/editing/WritingDirection.h"
#include "core/frame/FrameDestructionObserver.h"
#include "platform/PasteMode.h"
+#include "platform/heap/Handle.h"
namespace WebCore {
@@ -188,7 +189,7 @@ public:
EditingBehavior behavior() const;
- PassRefPtr<Range> selectedRange();
+ PassRefPtrWillBeRawPtr<Range> selectedRange();
void addToKillRing(Range*, bool prepend);
@@ -201,7 +202,7 @@ public:
// FIXME: Switch callers over to the FindOptions version and retire this one.
bool findString(const String&, bool forward, bool caseFlag, bool wrapFlag, bool startInSelection);
- PassRefPtr<Range> findStringAndScrollToVisible(const String&, Range*, FindOptions);
+ PassRefPtrWillBeRawPtr<Range> findStringAndScrollToVisible(const String&, Range*, FindOptions);
const VisibleSelection& mark() const; // Mark, to be used as emacs uses it.
void setMark(const VisibleSelection&);
@@ -265,7 +266,7 @@ private:
Node* findEventTargetFromSelection() const;
- PassRefPtr<Range> rangeOfString(const String&, Range*, FindOptions);
+ PassRefPtrWillBeRawPtr<Range> rangeOfString(const String&, Range*, FindOptions);
SpellChecker& spellChecker() const;

Powered by Google App Engine
This is Rietveld 408576698