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

Issue 2705373002: Remove unnecessary layout updates from InsertInto/DeleteFromTextNodeCommand (Closed)

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

Description

Remove unnecessary layout updates from InsertInto/DeleteFromTextNodeCommand InsertInto/DeleteFromTextNodeCommand used to update layout at the end of doApply() and unApply(), which is bad because the client of the clean layout is unclear, and unnecessary layout updates may be performed. This patch removes these layout update calls, and explicitly updates layout before clients. BUG=694816 TEST=n/a; no behavior change Review-Url: https://codereview.chromium.org/2705373002 Cr-Commit-Position: refs/heads/master@{#451936} Committed: https://chromium.googlesource.com/chromium/src/+/7a0a5316f12d0873b3c17a29157b703cf4f1ae36

Patch Set 1 #

Patch Set 2 : Add layout updates for clients requiring that explicitly #

Total comments: 1

Messages

Total messages: 20 (16 generated)
Xiaocheng
PTAL.
3 years, 10 months ago (2017-02-22 04:16:31 UTC) #9
yosin_UTC9
lgtm Thanks for make world clean! https://codereview.chromium.org/2705373002/diff/20001/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp File third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp (left): https://codereview.chromium.org/2705373002/diff/20001/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp#oldcode180 third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp:180: DCHECK(!textNode->layoutObject() || I ...
3 years, 10 months ago (2017-02-22 06:26:08 UTC) #15
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/2705373002/20001
3 years, 10 months ago (2017-02-22 06:27:15 UTC) #17
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 08:43:24 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7a0a5316f12d0873b3c17a29157b...

Powered by Google App Engine
This is Rietveld 408576698