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

Issue 1630903005: Introduce SelectionAdjuster to adjust selections between DOM tree version and composed tree version (Closed)

Created:
4 years, 11 months ago by yosin_UTC9
Modified:
4 years, 11 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce SelectionAdjuster to adjust selections between DOM tree version and composed tree version This patch introduces |SelectionAdjuster| class to consolidate functions adjusting DOM tree version and composed tree version of selections in |VisibleSelection| class and |SelectionEditor| in one place to avoid having six parameters constructor, and rude name function |createWithoutValidation()| to simplify source code for improving readability. Note: For ease of reviewing to compare changes, this patch doesn't leave functions in original place. Following patch moves them to "SelectionAdjust.{cpp,h}". This patch is a preparation of introducing |m_hasTrailingWhitespace| into |VisibleSelection| class, which makes six parameters constructor to seven parameters constructor without this patch. BUG=n/a TEST=n/a; no behavior changes Committed: https://crrev.com/647b2143c21fade656c085f5a83426e96acbd38a Cr-Commit-Position: refs/heads/master@{#371697}

Patch Set 1 : 2016-01-26T16:20:29 #

Patch Set 2 : 2016-01-26T18:27:24 Update selection type in SelectionEditor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -85 lines) Patch
M third_party/WebKit/Source/core/editing/SelectionEditor.cpp View 1 2 chunks +48 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.h View 4 chunks +12 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.cpp View 4 chunks +36 lines, -54 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1630903005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1630903005/1
4 years, 11 months ago (2016-01-26 07:23:44 UTC) #2
yosin_UTC9
PTAL
4 years, 11 months ago (2016-01-26 07:30:40 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/157249)
4 years, 11 months ago (2016-01-26 08:03:16 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1630903005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1630903005/20001
4 years, 11 months ago (2016-01-26 09:28:47 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/164344)
4 years, 11 months ago (2016-01-26 11:43:54 UTC) #11
yoichio
lgtm
4 years, 11 months ago (2016-01-27 01:46:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1630903005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1630903005/20001
4 years, 11 months ago (2016-01-27 01:52:32 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-27 03:07:49 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/647b2143c21fade656c085f5a83426e96acbd38a Cr-Commit-Position: refs/heads/master@{#371697}
4 years, 11 months ago (2016-01-27 03:09:47 UTC) #17
lushnikov
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1642723002/ by lushnikov@chromium.org. ...
4 years, 11 months ago (2016-01-27 19:51:16 UTC) #18
lushnikov
4 years, 11 months ago (2016-01-27 20:31:05 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1645713002/ by lushnikov@chromium.org.

The reason for reverting is: This patch breaks text selection in DevTools
console. Please see http://crbug.com/581800 for details..

Powered by Google App Engine
This is Rietveld 408576698