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

Issue 2631133002: Make CompositeEditCommand::insertNodeBefore() to update layout for hasEditableStyle() (Closed)

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

Description

Make CompositeEditCommand::insertNodeBefore() to update layout for hasEditableStyle() This patch makes |CompositeEditCommand::insertNodeBefore()| to update layout for |hasEditableStyle()| to get correct value of |hasEditableStyle()| for sanity of implementation and a preparation of [1], which may update layout during construction of |insertNodeBeforeCommand| by computing |VisibleSelection| in |EditCommand| constructor. This patch also add regression test cases for |CompositeEditCommand::insertNodeBefore()| along with new behavior for calling it on dirty layout tree. [1] http://crrev.com/2637013002: Make FrameSelection to hold non-canonicalized positions BUG=n/a TEST=run_webkit_unittests --gtest_filter=CompositeEditCommandTest.insertNodeBeforeWithDirtyLayoutTree Review-Url: https://codereview.chromium.org/2631133002 Cr-Commit-Position: refs/heads/master@{#444329} Committed: https://chromium.googlesource.com/chromium/src/+/acefebccb68d844f98e746f7877360070abe8349

Patch Set 1 : 2017-01-16T18:23:50 #

Patch Set 2 : 2017-01-16T20:09:30 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/commands/CompositeEditCommandTest.cpp View 1 1 chunk +103 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/core/editing/commands/EditingState.h View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 23 (13 generated)
yosin_UTC9
PTAL
3 years, 11 months ago (2017-01-17 01:40:39 UTC) #11
yoichio
On 2017/01/17 01:40:39, Yosi_UTC9 wrote: > PTAL Did you test performance for speedometor and/or other ...
3 years, 11 months ago (2017-01-17 02:11:09 UTC) #12
yosin_UTC9
On 2017/01/17 at 02:11:09, yoichio wrote: > On 2017/01/17 01:40:39, Yosi_UTC9 wrote: > > PTAL ...
3 years, 11 months ago (2017-01-17 02:22:12 UTC) #13
yosin_UTC9
On 2017/01/17 at 02:22:12, Yosi_UTC9 wrote: > On 2017/01/17 at 02:11:09, yoichio wrote: > > ...
3 years, 11 months ago (2017-01-17 02:26:27 UTC) #14
yoichio
https://codereview.chromium.org/2631133002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommandTest.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommandTest.cpp (right): https://codereview.chromium.org/2631133002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommandTest.cpp#newcode52 third_party/WebKit/Source/core/editing/commands/CompositeEditCommandTest.cpp:52: SampleCommand& sample = *new SampleCommand(document()); Why do you use ...
3 years, 11 months ago (2017-01-18 02:29:17 UTC) #15
yosin_UTC9
https://codereview.chromium.org/2631133002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommandTest.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommandTest.cpp (right): https://codereview.chromium.org/2631133002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommandTest.cpp#newcode52 third_party/WebKit/Source/core/editing/commands/CompositeEditCommandTest.cpp:52: SampleCommand& sample = *new SampleCommand(document()); On 2017/01/18 at 02:29:17, ...
3 years, 11 months ago (2017-01-18 03:44:14 UTC) #16
yoichio
lgtm
3 years, 11 months ago (2017-01-18 03:51:23 UTC) #17
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/2631133002/20001
3 years, 11 months ago (2017-01-18 09:09:27 UTC) #19
yosin_UTC9
On 2017/01/18 at 09:09:27, commit-bot wrote: > CQ is trying da patch. Follow status at ...
3 years, 11 months ago (2017-01-18 09:32:06 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 10:55:24 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/acefebccb68d844f98e746f78773...

Powered by Google App Engine
This is Rietveld 408576698