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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.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/ApplyBlockElementCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
index fb353fdb7b7853b4c85314c897247b4e190f174c..0941c93ed08f9f09ed2f7bad68906f8e671478e7 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
@@ -43,15 +43,17 @@ using namespace HTMLNames;
ApplyBlockElementCommand::ApplyBlockElementCommand(
Document& document,
+ EditCommandSource source,
const QualifiedName& tagName,
const AtomicString& inlineStyle)
- : CompositeEditCommand(document),
+ : CompositeEditCommand(document, source),
m_tagName(tagName),
m_inlineStyle(inlineStyle) {}
ApplyBlockElementCommand::ApplyBlockElementCommand(Document& document,
+ EditCommandSource source,
const QualifiedName& tagName)
- : CompositeEditCommand(document), m_tagName(tagName) {}
+ : CompositeEditCommand(document, source), m_tagName(tagName) {}
void ApplyBlockElementCommand::doApply(EditingState* editingState) {
if (!endingSelection().rootEditableElement())

Powered by Google App Engine
This is Rietveld 408576698