|
|
Created:
3 years, 8 months ago by yosin_UTC9 Modified:
3 years, 8 months ago CC:
alancutter (OOO until 2018), blink-reviews, chromium-reviews Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionGet rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() and textInputInfo()
This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing
it with |rootEditableElementOf()| with non-canonicalize position from
|textInputInfo()| and |textInputType()| of |InputMethodController| for improving
code health.
Node: Because of selection can't cross editing boundary, root editable element for
non-canonicalized position and canonicalized position are same.
This patch is intentionally not change all call sites of |rootEditableElement()|
in |InputMethodController| to merge this patch as workaround of [1].
[1] http://crbug.com/704763 Opacity animation consuming main thread resources
BUG=698633, 704763
TEST=n/a; no behavior changes
Review-Url: https://codereview.chromium.org/2782413002
Cr-Original-Commit-Position: refs/heads/master@{#460705}
Committed: https://chromium.googlesource.com/chromium/src/+/9744d5bffb3fbdf761455b355ebc4faa757d1aaf
Review-Url: https://codereview.chromium.org/2782413002
Cr-Commit-Position: refs/heads/master@{#463575}
Committed: https://chromium.googlesource.com/chromium/src/+/e14aacd2baf5cf9c4a5e457384e0b0f73c0163c4
Patch Set 1 : 2017-03-30T14:27:13 #Patch Set 2 : 2017-03-30T14:52:21 #Patch Set 3 : 2017-03-30T15:19:28 #Patch Set 4 : 2017-03-30T15:57:29 #Patch Set 5 : 2017-04-11T15:54:13 Rename for Grate Blink Renaming #Messages
Total messages: 34 (25 generated)
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 ========== 2017-03-30T14:27:13 2017-03-30T14:26:12 BUG= ========== to ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. BUG=698633 TEST=n/a; no behavior changes ==========
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...
The CQ bit was checked by alancutter@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...
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 ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. BUG=698633 TEST=n/a; no behavior changes ========== to ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. This patch also helps issue 704763 by reducing update layout call. BUG=698633, 704763 TEST=n/a; no behavior changes ==========
yosin@chromium.org changed reviewers: + tkent@chromium.org, xiaochengh@chromium.org, yoichio@chromium.org - alancutter@chromium.org
Description was changed from ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. This patch also helps issue 704763 by reducing update layout call. BUG=698633, 704763 TEST=n/a; no behavior changes ========== to ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() and textInputInfo() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position from |textInputInfo()| and |textInputType()| of |InputMethodController| for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. To make this patch small for merging of workaround of [1], following patch will replace other use of VisibleSelection::rootEditableElement(). [1] http://crbug.com/704763 Opacity animation consuming main thread resources BUG=698633, 704763 TEST=n/a; no behavior changes ==========
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 ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() and textInputInfo() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position from |textInputInfo()| and |textInputType()| of |InputMethodController| for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. To make this patch small for merging of workaround of [1], following patch will replace other use of VisibleSelection::rootEditableElement(). [1] http://crbug.com/704763 Opacity animation consuming main thread resources BUG=698633, 704763 TEST=n/a; no behavior changes ========== to ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() and textInputInfo() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position from |textInputInfo()| and |textInputType()| of |InputMethodController| for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. This patch is intentionally not change all call sites of |rootEditableElement()| in |InputMethodController| to merge this patch as workaround of [1]. [1] http://crbug.com/704763 Opacity animation consuming main thread resources BUG=698633, 704763 TEST=n/a; no behavior changes ==========
PTAL PS#3 is all green. It seems bots are flaky...
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
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...
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1490864309252470, "parent_rev": "e6feb6d75d95126f683bd932488ecdea9891e356", "commit_rev": "9744d5bffb3fbdf761455b355ebc4faa757d1aaf"}
Message was sent while issue was closed.
Description was changed from ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() and textInputInfo() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position from |textInputInfo()| and |textInputType()| of |InputMethodController| for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. This patch is intentionally not change all call sites of |rootEditableElement()| in |InputMethodController| to merge this patch as workaround of [1]. [1] http://crbug.com/704763 Opacity animation consuming main thread resources BUG=698633, 704763 TEST=n/a; no behavior changes ========== to ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() and textInputInfo() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position from |textInputInfo()| and |textInputType()| of |InputMethodController| for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. This patch is intentionally not change all call sites of |rootEditableElement()| in |InputMethodController| to merge this patch as workaround of [1]. [1] http://crbug.com/704763 Opacity animation consuming main thread resources BUG=698633, 704763 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2782413002 Cr-Commit-Position: refs/heads/master@{#460705} Committed: https://chromium.googlesource.com/chromium/src/+/9744d5bffb3fbdf761455b355ebc... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/9744d5bffb3fbdf761455b355ebc...
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2785333002/ by sullivan@chromium.org. The reason for reverting is: This causes a crash in a telemetry benchmark on android. To reproduce, run: src/tools/perf/run_benchmark -v --browser=android-chromium --output-format=chartjson --upload-results --pageset-repeat=1 --also-run-disabled-tests --story-filter=browse:media:youtube system_health.common_mobile BUG=706865.
Reland since crash, CHECK(clean layout tree) after update layout with VIDEO with text track, is solved[1]. [1] http://crreb.com/372245 ⚐ LayoutTextTrackContainer::layout() should not modify DOM tree
The CQ bit was checked by yosin@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from tkent@chromium.org Link to the patchset: https://codereview.chromium.org/2782413002/#ps80001 (title: "2017-04-11T15:54:13 Rename for Grate Blink Renaming")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1491893904818190, "parent_rev": "68130af4b73ed4f2b62abb4d74b5da59a3854ea1", "commit_rev": "e14aacd2baf5cf9c4a5e457384e0b0f73c0163c4"}
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1491893904818190, "parent_rev": "68130af4b73ed4f2b62abb4d74b5da59a3854ea1", "commit_rev": "e14aacd2baf5cf9c4a5e457384e0b0f73c0163c4"}
Message was sent while issue was closed.
Description was changed from ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() and textInputInfo() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position from |textInputInfo()| and |textInputType()| of |InputMethodController| for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. This patch is intentionally not change all call sites of |rootEditableElement()| in |InputMethodController| to merge this patch as workaround of [1]. [1] http://crbug.com/704763 Opacity animation consuming main thread resources BUG=698633, 704763 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2782413002 Cr-Commit-Position: refs/heads/master@{#460705} Committed: https://chromium.googlesource.com/chromium/src/+/9744d5bffb3fbdf761455b355ebc... ========== to ========== Get rid of computeVisibleSelectionInDOMTreeDeprecated() in InputMethodController::textInputType() and textInputInfo() This patch gets rid of |computeVisibleSelectionInDOMTreeDeprecated()| by replacing it with |rootEditableElementOf()| with non-canonicalize position from |textInputInfo()| and |textInputType()| of |InputMethodController| for improving code health. Node: Because of selection can't cross editing boundary, root editable element for non-canonicalized position and canonicalized position are same. This patch is intentionally not change all call sites of |rootEditableElement()| in |InputMethodController| to merge this patch as workaround of [1]. [1] http://crbug.com/704763 Opacity animation consuming main thread resources BUG=698633, 704763 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2782413002 Cr-Original-Commit-Position: refs/heads/master@{#460705} Committed: https://chromium.googlesource.com/chromium/src/+/9744d5bffb3fbdf761455b355ebc... Review-Url: https://codereview.chromium.org/2782413002 Cr-Commit-Position: refs/heads/master@{#463575} Committed: https://chromium.googlesource.com/chromium/src/+/e14aacd2baf5cf9c4a5e457384e0... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/e14aacd2baf5cf9c4a5e457384e0...
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2843943002/ by sullivan@chromium.org. The reason for reverting is: This caused large memory regressions. See http://crbug.com/711366 for details. BUG=711366. |