| 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 a2ba527f516dfbb5e7e325a5b18f8752aaa144b2..2d455c81c7ab2cdc0c70f157e15e16b00344d116 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.h
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.h
|
| @@ -46,26 +46,31 @@ class ApplyStyleCommand final : public CompositeEditCommand {
|
| typedef bool (*IsInlineElementToRemoveFunction)(const Element*);
|
|
|
| static ApplyStyleCommand* create(Document& document,
|
| + CommandSource 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,
|
| + CommandSource source,
|
| const EditingStyle* style,
|
| const Position& start,
|
| const Position& end) {
|
| - return new ApplyStyleCommand(document, style, start, end);
|
| + return new ApplyStyleCommand(document, source, style, start, end);
|
| }
|
| - static ApplyStyleCommand* create(Element* element, bool removeOnly) {
|
| - return new ApplyStyleCommand(element, removeOnly);
|
| + static ApplyStyleCommand* create(CommandSource source,
|
| + Element* element,
|
| + bool removeOnly) {
|
| + return new ApplyStyleCommand(source, element, removeOnly);
|
| }
|
| static ApplyStyleCommand* create(
|
| Document& document,
|
| + CommandSource source,
|
| const EditingStyle* style,
|
| IsInlineElementToRemoveFunction isInlineElementToRemoveFunction,
|
| InputEvent::InputType inputType) {
|
| - return new ApplyStyleCommand(document, style,
|
| + return new ApplyStyleCommand(document, source, style,
|
| isInlineElementToRemoveFunction, inputType);
|
| }
|
|
|
| @@ -73,15 +78,18 @@ class ApplyStyleCommand final : public CompositeEditCommand {
|
|
|
| private:
|
| ApplyStyleCommand(Document&,
|
| + CommandSource,
|
| const EditingStyle*,
|
| InputEvent::InputType,
|
| EPropertyLevel);
|
| ApplyStyleCommand(Document&,
|
| + CommandSource,
|
| const EditingStyle*,
|
| const Position& start,
|
| const Position& end);
|
| - ApplyStyleCommand(Element*, bool removeOnly);
|
| + ApplyStyleCommand(CommandSource, Element*, bool removeOnly);
|
| ApplyStyleCommand(Document&,
|
| + CommandSource,
|
| const EditingStyle*,
|
| bool (*isInlineElementToRemove)(const Element*),
|
| InputEvent::InputType);
|
|
|