| Index: Source/core/editing/ReplaceSelectionCommand.cpp
|
| diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| index 73a0b7d5a99fd0c231c5b2046e46c849207a0abd..c79bc1008c3f2d7717450100356ceea02d792893 100644
|
| --- a/Source/core/editing/ReplaceSelectionCommand.cpp
|
| +++ b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| @@ -63,8 +63,9 @@ enum EFragmentType { EmptyFragment, SingleTextNodeFragment, TreeFragment };
|
|
|
| // --- ReplacementFragment helper class
|
|
|
| -class ReplacementFragment {
|
| +class ReplacementFragment FINAL {
|
| WTF_MAKE_NONCOPYABLE(ReplacementFragment);
|
| + STACK_ALLOCATED();
|
| public:
|
| ReplacementFragment(Document*, DocumentFragment*, const VisibleSelection&);
|
|
|
| @@ -87,8 +88,8 @@ private:
|
|
|
| void insertNodeBefore(PassRefPtr<Node> node, Node* refNode);
|
|
|
| - RefPtr<Document> m_document;
|
| - RefPtr<DocumentFragment> m_fragment;
|
| + RefPtrWillBeMember<Document> m_document;
|
| + RefPtrWillBeMember<DocumentFragment> m_fragment;
|
| bool m_hasInterchangeNewlineAtStart;
|
| bool m_hasInterchangeNewlineAtEnd;
|
| };
|
| @@ -355,7 +356,7 @@ inline void ReplaceSelectionCommand::InsertedNodes::didReplaceNode(Node& node, N
|
| m_lastNodeInserted = &newNode;
|
| }
|
|
|
| -ReplaceSelectionCommand::ReplaceSelectionCommand(Document& document, PassRefPtr<DocumentFragment> fragment, CommandOptions options, EditAction editAction)
|
| +ReplaceSelectionCommand::ReplaceSelectionCommand(Document& document, PassRefPtrWillBeRawPtr<DocumentFragment> fragment, CommandOptions options, EditAction editAction)
|
| : CompositeEditCommand(document)
|
| , m_selectReplacement(options & SelectReplacement)
|
| , m_smartReplace(options & SmartReplace)
|
|
|