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

Unified Diff: third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.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, 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: third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
index 1f8dfbd844ab0a3660cef7069bc269e82e13d8ba..2554c8fb9c316c0e837d56d86a045569dc5afd42 100644
--- a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
@@ -103,7 +103,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
if (!topBlockquote || !topBlockquote->parentNode())
return;
- RefPtrWillBeRawPtr<HTMLBRElement> breakElement = HTMLBRElement::create(document());
+ RawPtr<HTMLBRElement> breakElement = HTMLBRElement::create(document());
bool isLastVisPosInNode = isLastVisiblePositionInNode(visiblePos, topBlockquote);
@@ -172,12 +172,12 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
}
// Build up list of ancestors in between the start node and the top blockquote.
- WillBeHeapVector<RefPtrWillBeMember<Element>> ancestors;
+ HeapVector<Member<Element>> ancestors;
for (Element* node = startNode->parentElement(); node && node != topBlockquote; node = node->parentElement())
ancestors.append(node);
// Insert a clone of the top blockquote after the break.
- RefPtrWillBeRawPtr<Element> clonedBlockquote = topBlockquote->cloneElementWithoutChildren();
+ RawPtr<Element> clonedBlockquote = topBlockquote->cloneElementWithoutChildren();
insertNodeAfter(clonedBlockquote.get(), breakElement.get(), editingState);
if (editingState->isAborted())
return;
@@ -186,9 +186,9 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
// On exiting this loop, clonedAncestor is the lowest ancestor
// that was cloned (i.e. the clone of either ancestors.last()
// or clonedBlockquote if ancestors is empty).
- RefPtrWillBeRawPtr<Element> clonedAncestor = clonedBlockquote;
+ RawPtr<Element> clonedAncestor = clonedBlockquote;
for (size_t i = ancestors.size(); i != 0; --i) {
- RefPtrWillBeRawPtr<Element> clonedChild = ancestors[i - 1]->cloneElementWithoutChildren();
+ RawPtr<Element> clonedChild = ancestors[i - 1]->cloneElementWithoutChildren();
// Preserve list item numbering in cloned lists.
if (isHTMLOListElement(*clonedChild)) {
Node* listChildNode = i > 1 ? ancestors[i - 2].get() : startNode;
@@ -215,8 +215,8 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
// Throughout this loop, clonedParent is the clone of ancestor's parent.
// This is so we can clone ancestor's siblings and place the clones
// into the clone corresponding to the ancestor's parent.
- RefPtrWillBeRawPtr<Element> ancestor = nullptr;
- RefPtrWillBeRawPtr<Element> clonedParent = nullptr;
+ RawPtr<Element> ancestor = nullptr;
+ RawPtr<Element> clonedParent = nullptr;
for (ancestor = ancestors.first(), clonedParent = clonedAncestor->parentElement();
ancestor && ancestor != topBlockquote;
ancestor = ancestor->parentElement(), clonedParent = clonedParent->parentElement()) {

Powered by Google App Engine
This is Rietveld 408576698