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

Unified Diff: Source/core/editing/TextIteratorTest.cpp

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/TextIteratorTest.cpp
diff --git a/Source/core/editing/TextIteratorTest.cpp b/Source/core/editing/TextIteratorTest.cpp
index 0692414f080181df84f22fdb4009b1f2f79a4a5d..d25ea1a82e704411620288fdc92c279fb4ca0845 100644
--- a/Source/core/editing/TextIteratorTest.cpp
+++ b/Source/core/editing/TextIteratorTest.cpp
@@ -64,7 +64,7 @@ protected:
Vector<String> iterate(TextIteratorBehavior = TextIteratorDefaultBehavior);
void setBodyInnerHTML(const char*);
- PassRefPtr<Range> getBodyRange() const;
+ PassRefPtrWillBeRawPtr<Range> getBodyRange() const;
private:
OwnPtr<DummyPageHolder> m_dummyPageHolder;
@@ -83,7 +83,7 @@ Vector<String> TextIteratorTest::iterate(TextIteratorBehavior iteratorBehavior)
{
document().view()->updateLayoutAndStyleIfNeededRecursive(); // Force renderers to be created; TextIterator needs them.
- RefPtr<Range> range = getBodyRange();
+ RefPtrWillBeRawPtr<Range> range = getBodyRange();
TextIterator textIterator(range.get(), iteratorBehavior);
Vector<String> textChunks;
while (!textIterator.atEnd()) {
@@ -103,9 +103,9 @@ void TextIteratorTest::setBodyInnerHTML(const char* bodyContent)
document().body()->setInnerHTML(String::fromUTF8(bodyContent), ASSERT_NO_EXCEPTION);
}
-PassRefPtr<Range> TextIteratorTest::getBodyRange() const
+PassRefPtrWillBeRawPtr<Range> TextIteratorTest::getBodyRange() const
{
- RefPtr<Range> range(Range::create(document()));
+ RefPtrWillBeRawPtr<Range> range(Range::create(document()));
range->selectNode(document().body());
return range.release();
}

Powered by Google App Engine
This is Rietveld 408576698