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

Issue 2729823002: Make FormatBlockCommand::elementForFormatBlockCommand() to take EphemeralRange (Closed)

Created:
3 years, 9 months ago by yosin_UTC9
Modified:
3 years, 9 months ago
Reviewers:
tkent, yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make FormatBlockCommand::elementForFormatBlockCommand() to take EphemeralRange This patch makes |FormatBlockCommand::elementForFormatBlockCommand()| to take |EphemeralRange| instead of |Range| object to avoid registering temporary |Range| object to range update list to reduce memory usage and relocation cost for improving code health. BUG=691199 TEST=n/a; no behavior change Review-Url: https://codereview.chromium.org/2729823002 Cr-Commit-Position: refs/heads/master@{#455681} Committed: https://chromium.googlesource.com/chromium/src/+/b66326f26629d4e161ad020ea34052c3f52598af

Patch Set 1 : 2017-03-02T16:28:37 #

Total comments: 6

Patch Set 2 : 2017-03-09T13:09:11 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -9 lines) Patch
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.h View 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp View 1 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
yosin_UTC9
PTAL
3 years, 9 months ago (2017-03-02 09:05:28 UTC) #8
yoichio
https://codereview.chromium.org/2729823002/diff/1/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp File third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp (right): https://codereview.chromium.org/2729823002/diff/1/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp#newcode143 third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp:143: const EphemeralRange& range) { How about passing |selection| directly ...
3 years, 9 months ago (2017-03-02 09:21:36 UTC) #9
yosin_UTC9
https://codereview.chromium.org/2729823002/diff/1/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp File third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp (right): https://codereview.chromium.org/2729823002/diff/1/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp#newcode143 third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp:143: const EphemeralRange& range) { On 2017/03/02 at 09:21:36, yoichio ...
3 years, 9 months ago (2017-03-02 10:05:43 UTC) #10
Xiaocheng
https://codereview.chromium.org/2729823002/diff/1/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp File third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp (left): https://codereview.chromium.org/2729823002/diff/1/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp#oldcode2079 third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp:2079: FormatBlockCommand::elementForFormatBlockCommand(firstRangeOf(selection)); This patch has conflict with https://codereview.chromium.org/2724333002. Could you ...
3 years, 9 months ago (2017-03-02 20:21:05 UTC) #11
yoichio
"BLOCKED BY 2729823002" 2729823002 is this patch itself. Could you update?
3 years, 9 months ago (2017-03-03 01:56:17 UTC) #12
yosin_UTC9
PTAL Bots failures aren't related to this patch. https://codereview.chromium.org/2729823002/diff/1/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp File third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp (left): https://codereview.chromium.org/2729823002/diff/1/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp#oldcode2079 third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp:2079: FormatBlockCommand::elementForFormatBlockCommand(firstRangeOf(selection)); ...
3 years, 9 months ago (2017-03-09 05:18:40 UTC) #17
yoichio
lgtm
3 years, 9 months ago (2017-03-09 05:47:33 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2729823002/20001
3 years, 9 months ago (2017-03-09 05:48:33 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 06:36:51 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b66326f26629d4e161ad020ea340...

Powered by Google App Engine
This is Rietveld 408576698