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

Unified Diff: third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.h

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/FormatBlockCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.h b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.h
index b069081eb0ce09087255274aabf5d41723270241..f87c0ebdc7e6ae0591e7147f00b8f9f9485daea6 100644
--- a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.h
@@ -40,8 +40,9 @@ class Range;
class CORE_EXPORT FormatBlockCommand final : public ApplyBlockElementCommand {
public:
static FormatBlockCommand* create(Document& document,
+ CommandSource source,
const QualifiedName& tagName) {
- return new FormatBlockCommand(document, tagName);
+ return new FormatBlockCommand(document, source, tagName);
}
bool preservesTypingStyle() const override { return true; }
@@ -50,7 +51,7 @@ class CORE_EXPORT FormatBlockCommand final : public ApplyBlockElementCommand {
bool didApply() const { return m_didApply; }
private:
- FormatBlockCommand(Document&, const QualifiedName& tagName);
+ FormatBlockCommand(Document&, CommandSource, const QualifiedName& tagName);
void formatSelection(const VisiblePosition& startOfSelection,
const VisiblePosition& endOfSelection,

Powered by Google App Engine
This is Rietveld 408576698