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

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

Issue 299353004: Oilpan: move editing objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/InsertLineBreakCommand.cpp
diff --git a/Source/core/editing/InsertLineBreakCommand.cpp b/Source/core/editing/InsertLineBreakCommand.cpp
index dc10873ba4a19da0da5ad8fb8db7d52c2cc14df2..900180d306001fa057441d2ed0a525174d4ac5dc 100644
--- a/Source/core/editing/InsertLineBreakCommand.cpp
+++ b/Source/core/editing/InsertLineBreakCommand.cpp
@@ -81,7 +81,7 @@ void InsertLineBreakCommand::doApply()
pos = positionOutsideTabSpan(pos);
- RefPtr<Node> nodeToInsert;
+ RefPtrWillBeRawPtr<Node> nodeToInsert;
haraken 2014/05/26 02:36:12 = nullptr;
sof 2014/05/28 08:31:35 Complied.
if (shouldUseBreakElement(pos))
nodeToInsert = createBreakElement(document());
else
@@ -141,7 +141,7 @@ void InsertLineBreakCommand::doApply()
// Handle the case where there is a typing style.
- RefPtr<EditingStyle> typingStyle = document().frame()->selection().typingStyle();
+ RefPtrWillBeRawPtr<EditingStyle> typingStyle = document().frame()->selection().typingStyle();
if (typingStyle && !typingStyle->isEmpty()) {
// Apply the typing style to the inserted line break, so that if the selection

Powered by Google App Engine
This is Rietveld 408576698