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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h

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/ReplaceSelectionCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
index 2966c4bba717c445850233bff9d2652f8fdf7d13..02b81bcd59af5413c811de73a0aae7443ac5d683 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
@@ -47,9 +47,9 @@ public:
typedef unsigned CommandOptions;
- static PassRefPtrWillBeRawPtr<ReplaceSelectionCommand> create(Document& document, PassRefPtrWillBeRawPtr<DocumentFragment> fragment, CommandOptions options, EditAction action = EditActionPaste)
+ static RawPtr<ReplaceSelectionCommand> create(Document& document, RawPtr<DocumentFragment> fragment, CommandOptions options, EditAction action = EditActionPaste)
{
- return adoptRefWillBeNoop(new ReplaceSelectionCommand(document, fragment, options, action));
+ return (new ReplaceSelectionCommand(document, fragment, options, action));
}
EphemeralRange insertedRange() const;
@@ -57,7 +57,7 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- ReplaceSelectionCommand(Document&, PassRefPtrWillBeRawPtr<DocumentFragment>, CommandOptions, EditAction);
+ ReplaceSelectionCommand(Document&, RawPtr<DocumentFragment>, CommandOptions, EditAction);
void doApply() override;
EditAction editingAction() const override;
@@ -76,11 +76,11 @@ private:
Node* pastLastLeaf() const { return m_lastNodeInserted ? NodeTraversal::next(NodeTraversal::lastWithinOrSelf(*m_lastNodeInserted)) : 0; }
private:
- RefPtrWillBeMember<Node> m_firstNodeInserted;
- RefPtrWillBeMember<Node> m_lastNodeInserted;
+ Member<Node> m_firstNodeInserted;
+ Member<Node> m_lastNodeInserted;
};
- Node* insertAsListItems(PassRefPtrWillBeRawPtr<HTMLElement> listElement, Element* insertionBlock, const Position&, InsertedNodes&);
+ Node* insertAsListItems(RawPtr<HTMLElement> listElement, Element* insertionBlock, const Position&, InsertedNodes&);
void updateNodesInserted(Node*);
bool shouldRemoveEndBR(HTMLBRElement*, const VisiblePosition&);
@@ -95,7 +95,7 @@ private:
void removeRedundantStylesAndKeepStyleSpanInline(InsertedNodes&);
void makeInsertedContentRoundTrippableWithHTMLTreeBuilder(const InsertedNodes&);
- void moveElementOutOfAncestor(PassRefPtrWillBeRawPtr<Element>, PassRefPtrWillBeRawPtr<Element> ancestor);
+ void moveElementOutOfAncestor(RawPtr<Element>, RawPtr<Element> ancestor);
void handleStyleSpans(InsertedNodes&);
VisiblePosition positionAtStartOfInsertedContent() const;
@@ -110,11 +110,11 @@ private:
Position m_startOfInsertedContent;
Position m_endOfInsertedContent;
- RefPtrWillBeMember<EditingStyle> m_insertionStyle;
+ Member<EditingStyle> m_insertionStyle;
bool m_selectReplacement;
bool m_smartReplace;
bool m_matchStyle;
- RefPtrWillBeMember<DocumentFragment> m_documentFragment;
+ Member<DocumentFragment> m_documentFragment;
bool m_preventNesting;
bool m_movingParagraph;
EditAction m_editAction;

Powered by Google App Engine
This is Rietveld 408576698