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

Unified Diff: third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp

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.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
index e0c6ac7f694bd9551418d89f5c975029ff047718..1bd5f956804d58e09ec1f4c10751f2df377e3aff 100644
--- a/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
@@ -30,8 +30,10 @@
namespace blink {
-CreateLinkCommand::CreateLinkCommand(Document& document, const String& url)
- : CompositeEditCommand(document) {
+CreateLinkCommand::CreateLinkCommand(Document& document,
+ EditCommandSource source,
+ const String& url)
+ : CompositeEditCommand(document, source) {
m_url = url;
}

Powered by Google App Engine
This is Rietveld 408576698