|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by yosin_UTC9 Modified:
4 years, 1 month ago CC:
blink-reviews, chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionIntroduce EditCommand::setEndingSelection() taking SelectionInDOMTree
This patch introduces |SelectionInDOMTree| version of |setEndingSelection()| in
|EditCommand| class as a preparation of getting rid of overloads and update
layout calls for improving code health.
Following patch will introduce SelectionInUndoStep which is intended for
restore selection after DOM tree mutation at undo/redo time.
BUG=648949, 646323
TEST=n/a; no behavior changes
Committed: https://crrev.com/d7c76ec65a164e8b0d1bcede4f6763026ce29042
Cr-Commit-Position: refs/heads/master@{#427585}
Patch Set 1 : 2016-10-25T16:39:38 #
Messages
Total messages: 20 (11 generated)
Description was changed from ========== 2016-10-25T16:39:38 BUG= ========== to ========== 2016-10-25T16:39:38 BUG=648949, 646323 ==========
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== 2016-10-25T16:39:38 BUG=648949, 646323 ========== to ========== Introduce EditCommand::setEndingSelection() taking SelectionInDOMTree This patch introduces |SelectionInDOMTree| version of |setEndingSelection()| in |EditCommand| class as a preparation of getting rid of overloads and update layout calls. BUG=648949, 646323 TEST=n/a; no behavior changes ==========
Description was changed from ========== Introduce EditCommand::setEndingSelection() taking SelectionInDOMTree This patch introduces |SelectionInDOMTree| version of |setEndingSelection()| in |EditCommand| class as a preparation of getting rid of overloads and update layout calls. BUG=648949, 646323 TEST=n/a; no behavior changes ========== to ========== Introduce EditCommand::setEndingSelection() taking SelectionInDOMTree This patch introduces |SelectionInDOMTree| version of |setEndingSelection()| in |EditCommand| class as a preparation of getting rid of overloads and update layout calls for improving code health. BUG=648949, 646323 TEST=n/a; no behavior changes ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
yosin@chromium.org changed reviewers: + xiaochengh@chromium.org, yoichio@chromium.org
PTAL
SelectionInDOMTree verifies DOM tree version. We need another class that is allowed to be stored though DOM mutations.
Description was changed from ========== Introduce EditCommand::setEndingSelection() taking SelectionInDOMTree This patch introduces |SelectionInDOMTree| version of |setEndingSelection()| in |EditCommand| class as a preparation of getting rid of overloads and update layout calls for improving code health. BUG=648949, 646323 TEST=n/a; no behavior changes ========== to ========== Introduce EditCommand::setEndingSelection() taking SelectionInDOMTree This patch introduces |SelectionInDOMTree| version of |setEndingSelection()| in |EditCommand| class as a preparation of getting rid of overloads and update layout calls for improving code health. Following patch will introduce SelectionInUndoStep which is intended for restore selection after DOM tree mutation at undo/redo time. BUG=648949, 646323 TEST=n/a; no behavior changes ==========
On 2016/10/25 at 13:13:53, xiaochengh wrote: > SelectionInDOMTree verifies DOM tree version. > > We need another class that is allowed to be stored though DOM mutations. Following patch will introduce SelectionInUndoStep which is intended for restore selection after DOM tree mutation at undo/redo time. I put above statement in description.
On 2016/10/26 at 01:13:55, yosin wrote: > On 2016/10/25 at 13:13:53, xiaochengh wrote: > > SelectionInDOMTree verifies DOM tree version. > > > > We need another class that is allowed to be stored though DOM mutations. > > Following patch will introduce SelectionInUndoStep which is intended for > restore selection after DOM tree mutation at undo/redo time. > > I put above statement in description. Oh I see. So we only use SelectionInDOMTree in the |setEndingSelection| interface but do not store SelectionInDOMTree?
On 2016/10/26 at 02:01:10, xiaochengh wrote: > On 2016/10/26 at 01:13:55, yosin wrote: > > On 2016/10/25 at 13:13:53, xiaochengh wrote: > > > SelectionInDOMTree verifies DOM tree version. > > > > > > We need another class that is allowed to be stored though DOM mutations. > > > > Following patch will introduce SelectionInUndoStep which is intended for > > restore selection after DOM tree mutation at undo/redo time. > > > > I put above statement in description. > > Oh I see. So we only use SelectionInDOMTree in the |setEndingSelection| interface but do not store SelectionInDOMTree? Yes. As you mentioned, we won't hold |SelectionInDOMTree|.
lgtm
The CQ bit was checked by yosin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== Introduce EditCommand::setEndingSelection() taking SelectionInDOMTree This patch introduces |SelectionInDOMTree| version of |setEndingSelection()| in |EditCommand| class as a preparation of getting rid of overloads and update layout calls for improving code health. Following patch will introduce SelectionInUndoStep which is intended for restore selection after DOM tree mutation at undo/redo time. BUG=648949, 646323 TEST=n/a; no behavior changes ========== to ========== Introduce EditCommand::setEndingSelection() taking SelectionInDOMTree This patch introduces |SelectionInDOMTree| version of |setEndingSelection()| in |EditCommand| class as a preparation of getting rid of overloads and update layout calls for improving code health. Following patch will introduce SelectionInUndoStep which is intended for restore selection after DOM tree mutation at undo/redo time. BUG=648949, 646323 TEST=n/a; no behavior changes Committed: https://crrev.com/d7c76ec65a164e8b0d1bcede4f6763026ce29042 Cr-Commit-Position: refs/heads/master@{#427585} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/d7c76ec65a164e8b0d1bcede4f6763026ce29042 Cr-Commit-Position: refs/heads/master@{#427585} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
