|
|
[EditCommandSource] Pass source through |CompositeEditCommand| ctor instead of |apply(source)|
We want to store |EditCommandSource| in |CompositeEditCommand| as an attribute
instead of only getting it from |apply(source)|.
This CL:
1. Change |apply(EditCommandSource)| => |apply()|
2. Add |EditCommandSource::kInternal|
3. Add default parameter |EditCommandSource::kInternal| to
|CompositeEditCommand|'s ctor
4. Add required parameter |EditCommandSource| to other commands' ctor that might
be executed from JS
See yosin@'s comments:
https://codereview.chromium.org/2610063008/#msg13
BUG= 673789
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+206 lines, -141 lines) |
Patch |
 |
M |
third_party/WebKit/Source/core/editing/Editor.cpp
|
View
|
|
7 chunks |
+19 lines, -16 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.h
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommandTest.cpp
|
View
|
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ApplyStyleCommandTest.cpp
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
|
View
|
|
4 chunks |
+10 lines, -3 lines |
4 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
View
|
|
5 chunks |
+16 lines, -11 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.h
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
|
View
|
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
View
|
|
15 chunks |
+35 lines, -28 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.h
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.h
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/InsertListCommand.h
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.h
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp
|
View
|
|
3 chunks |
+9 lines, -12 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/TypingCommand.h
|
View
|
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
|
View
|
|
8 chunks |
+19 lines, -14 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/UnlinkCommand.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/UnlinkCommand.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 13 (10 generated)
|