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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertListCommand.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, 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/InsertListCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.h b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.h
index 7385533b82d57a088bb9b48f1e6d2e24b72eec36..4beb6f33883a0caf838430afd25329c00acba975 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.h
@@ -37,9 +37,9 @@ class InsertListCommand final : public CompositeEditCommand {
public:
enum Type { OrderedList, UnorderedList };
- static PassRefPtrWillBeRawPtr<InsertListCommand> create(Document& document, Type listType)
+ static RawPtr<InsertListCommand> create(Document& document, Type listType)
{
- return adoptRefWillBeNoop(new InsertListCommand(document, listType));
+ return new InsertListCommand(document, listType);
}
bool preservesTypingStyle() const override { return true; }
@@ -54,11 +54,11 @@ private:
HTMLUListElement* fixOrphanedListChild(Node*, EditingState*);
bool selectionHasListOfType(const VisibleSelection&, const HTMLQualifiedName&);
- PassRefPtrWillBeRawPtr<HTMLElement> mergeWithNeighboringLists(PassRefPtrWillBeRawPtr<HTMLElement>, EditingState*);
+ RawPtr<HTMLElement> mergeWithNeighboringLists(RawPtr<HTMLElement>, EditingState*);
bool doApplyForSingleParagraph(bool forceCreateList, const HTMLQualifiedName&, Range& currentSelection, EditingState*);
void unlistifyParagraph(const VisiblePosition& originalStart, HTMLElement* listNode, Node* listChildNode, EditingState*);
void listifyParagraph(const VisiblePosition& originalStart, const HTMLQualifiedName& listTag, EditingState*);
- void moveParagraphOverPositionIntoEmptyListItem(const VisiblePosition&, PassRefPtrWillBeRawPtr<HTMLLIElement>, EditingState*);
+ void moveParagraphOverPositionIntoEmptyListItem(const VisiblePosition&, RawPtr<HTMLLIElement>, EditingState*);
Type m_type;
};

Powered by Google App Engine
This is Rietveld 408576698