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

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

Issue 2627103003: [EditCommandSource] Pass source through |CompositeEditCommand| ctor instead of |apply(source)| (Closed)
Patch Set: Created 3 years, 11 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/UnlinkCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/UnlinkCommand.h b/third_party/WebKit/Source/core/editing/commands/UnlinkCommand.h
index 91f6e42c135a8e2ec00b3f1cbe8600e2343fa61a..620a67b16e666fb31cb8a3be8a1326ec788f4bba 100644
--- a/third_party/WebKit/Source/core/editing/commands/UnlinkCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/UnlinkCommand.h
@@ -32,12 +32,12 @@ namespace blink {
class UnlinkCommand final : public CompositeEditCommand {
public:
- static UnlinkCommand* create(Document& document) {
- return new UnlinkCommand(document);
+ static UnlinkCommand* create(Document& document, EditCommandSource source) {
+ return new UnlinkCommand(document, source);
}
private:
- explicit UnlinkCommand(Document&);
+ UnlinkCommand(Document&, EditCommandSource);
void doApply(EditingState*) override;
};

Powered by Google App Engine
This is Rietveld 408576698