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

Unified Diff: third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.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/CreateLinkCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.h b/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.h
index 8c89be97a29061150f423a7a3d750198b093c8e6..14226258fca0b2fabda3f3ddae82312a01823d49 100644
--- a/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.h
@@ -32,12 +32,14 @@ namespace blink {
class CreateLinkCommand final : public CompositeEditCommand {
public:
- static CreateLinkCommand* create(Document& document, const String& linkURL) {
- return new CreateLinkCommand(document, linkURL);
+ static CreateLinkCommand* create(Document& document,
+ EditCommandSource source,
+ const String& linkURL) {
+ return new CreateLinkCommand(document, source, linkURL);
}
private:
- CreateLinkCommand(Document&, const String& linkURL);
+ CreateLinkCommand(Document&, EditCommandSource, const String& linkURL);
void doApply(EditingState*) override;

Powered by Google App Engine
This is Rietveld 408576698