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

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

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/ApplyStyleCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.h b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.h
index 036b8b65651614a2d0d5d5c23e002e486dbf1037..fb48a1b811d16c83d721ece887068e82e3d816a6 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.h
@@ -46,10 +46,11 @@ class CORE_EXPORT ApplyStyleCommand final : public CompositeEditCommand {
typedef bool (*IsInlineElementToRemoveFunction)(const Element*);
static ApplyStyleCommand* create(Document& document,
+ EditCommandSource source,
const EditingStyle* style,
InputEvent::InputType inputType,
EPropertyLevel level = PropertyDefault) {
- return new ApplyStyleCommand(document, style, inputType, level);
+ return new ApplyStyleCommand(document, source, style, inputType, level);
}
static ApplyStyleCommand* create(Document& document,
const EditingStyle* style,
@@ -73,6 +74,7 @@ class CORE_EXPORT ApplyStyleCommand final : public CompositeEditCommand {
private:
ApplyStyleCommand(Document&,
+ EditCommandSource,
const EditingStyle*,
InputEvent::InputType,
EPropertyLevel);

Powered by Google App Engine
This is Rietveld 408576698