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

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

Issue 2574793002: [Editing] Store |CommandSource| in |CompositeEditCommand| (Closed)
Patch Set: Created 4 years 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..539cef77080db527a384ea1108eb2862e9d7c7c8 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,
+ CommandSource source,
const QualifiedName& tagName,
const AtomicString& inlineStyle)
- : CompositeEditCommand(document),
+ : CompositeEditCommand(document, source),
m_tagName(tagName),
m_inlineStyle(inlineStyle) {}
ApplyBlockElementCommand::ApplyBlockElementCommand(Document& document,
+ CommandSource 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