| Index: third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.h
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.h b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.h
|
| index 86f0fdd95bc87d38a8c765c0dcecfd976590b52b..474041ca1dce39750a6903b076d9200dc02f2aa5 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.h
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.h
|
| @@ -34,9 +34,9 @@ class EditingStyle;
|
|
|
| class InsertParagraphSeparatorCommand final : public CompositeEditCommand {
|
| public:
|
| - static PassRefPtrWillBeRawPtr<InsertParagraphSeparatorCommand> create(Document& document, bool useDefaultParagraphElement = false, bool pasteBlockquoteIntoUnquotedArea = false)
|
| + static RawPtr<InsertParagraphSeparatorCommand> create(Document& document, bool useDefaultParagraphElement = false, bool pasteBlockquoteIntoUnquotedArea = false)
|
| {
|
| - return adoptRefWillBeNoop(new InsertParagraphSeparatorCommand(document, useDefaultParagraphElement, pasteBlockquoteIntoUnquotedArea));
|
| + return new InsertParagraphSeparatorCommand(document, useDefaultParagraphElement, pasteBlockquoteIntoUnquotedArea);
|
| }
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
| @@ -48,14 +48,14 @@ private:
|
|
|
| void calculateStyleBeforeInsertion(const Position&);
|
| void applyStyleAfterInsertion(Element* originalEnclosingBlock, EditingState*);
|
| - void getAncestorsInsideBlock(const Node* insertionNode, Element* outerBlock, WillBeHeapVector<RefPtrWillBeMember<Element>>& ancestors);
|
| - PassRefPtrWillBeRawPtr<Element> cloneHierarchyUnderNewBlock(const WillBeHeapVector<RefPtrWillBeMember<Element>>& ancestors, PassRefPtrWillBeRawPtr<Element> blockToInsert, EditingState*);
|
| + void getAncestorsInsideBlock(const Node* insertionNode, Element* outerBlock, HeapVector<Member<Element>>& ancestors);
|
| + RawPtr<Element> cloneHierarchyUnderNewBlock(const HeapVector<Member<Element>>& ancestors, RawPtr<Element> blockToInsert, EditingState*);
|
|
|
| bool shouldUseDefaultParagraphElement(Element*) const;
|
|
|
| bool preservesTypingStyle() const override;
|
|
|
| - RefPtrWillBeMember<EditingStyle> m_style;
|
| + Member<EditingStyle> m_style;
|
|
|
| bool m_mustUseDefaultParagraphElement;
|
| bool m_pasteBlockquoteIntoUnquotedArea;
|
|
|