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

Unified Diff: third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.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/FormatBlockCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
index a2333419227817206f3b9fc9e31415b112342c70..daaabaac81719561fe2439601427f54efbb9dbb5 100644
--- a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
@@ -54,8 +54,9 @@ static Element* enclosingBlockFlowElement(
}
FormatBlockCommand::FormatBlockCommand(Document& document,
+ EditCommandSource source,
const QualifiedName& tagName)
- : ApplyBlockElementCommand(document, tagName), m_didApply(false) {}
+ : ApplyBlockElementCommand(document, source, tagName), m_didApply(false) {}
void FormatBlockCommand::formatSelection(
const VisiblePosition& startOfSelection,

Powered by Google App Engine
This is Rietveld 408576698