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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/core/editing/commands/InsertLineBreakCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
index 8a50c657f2f3985c781570939afdae3c44fa1e52..4b0e212b6c0ea83aed7b4bd332fefe750ecff3e4 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp
@@ -82,7 +82,7 @@ void InsertLineBreakCommand::doApply()
pos = positionOutsideTabSpan(pos);
- RefPtrWillBeRawPtr<Node> nodeToInsert = nullptr;
+ RawPtr<Node> nodeToInsert = nullptr;
if (shouldUseBreakElement(pos))
nodeToInsert = HTMLBRElement::create(document());
else
@@ -133,7 +133,7 @@ void InsertLineBreakCommand::doApply()
if (textNode->inDocument()) {
insertTextIntoNode(textNode, 0, nonBreakingSpaceString());
} else {
- RefPtrWillBeRawPtr<Text> nbspNode = document().createTextNode(nonBreakingSpaceString());
+ RawPtr<Text> nbspNode = document().createTextNode(nonBreakingSpaceString());
insertNodeAt(nbspNode.get(), positionBeforeTextNode);
endingPosition = firstPositionInNode(nbspNode.get());
}
@@ -144,7 +144,7 @@ void InsertLineBreakCommand::doApply()
// Handle the case where there is a typing style.
- RefPtrWillBeRawPtr<EditingStyle> typingStyle = document().frame()->selection().typingStyle();
+ RawPtr<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