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

Unified Diff: third_party/WebKit/Source/core/editing/commands/SplitElementCommand.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/SplitElementCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp
index fa3f458b2fc04581afb09b8e024b7361f1d0e8be..d2b43e7bd97e9cde627cb20a5bed5199ebdf8ad2 100644
--- a/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp
@@ -33,7 +33,7 @@
namespace blink {
-SplitElementCommand::SplitElementCommand(PassRefPtrWillBeRawPtr<Element> element, PassRefPtrWillBeRawPtr<Node> atChild)
+SplitElementCommand::SplitElementCommand(RawPtr<Element> element, RawPtr<Node> atChild)
: SimpleEditCommand(element->document())
, m_element2(element)
, m_atChild(atChild)
@@ -48,7 +48,7 @@ void SplitElementCommand::executeApply()
if (m_atChild->parentNode() != m_element2)
return;
- WillBeHeapVector<RefPtrWillBeMember<Node>> children;
+ HeapVector<Member<Node>> children;
for (Node* node = m_element2->firstChild(); node != m_atChild; node = node->nextSibling())
children.append(node);
@@ -83,7 +83,7 @@ void SplitElementCommand::doUnapply()
NodeVector children;
getChildNodes(*m_element1, children);
- RefPtrWillBeRawPtr<Node> refChild = m_element2->firstChild();
+ RawPtr<Node> refChild = m_element2->firstChild();
for (const auto& child : children)
m_element2->insertBefore(child.get(), refChild.get(), IGNORE_EXCEPTION);

Powered by Google App Engine
This is Rietveld 408576698