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

Issue 20049007: Speed up moving cursor/selection up or down past non-renderered elements. (Closed)

Created:
7 years, 5 months ago by dmazzoni
Modified:
7 years, 5 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Visibility:
Public.

Description

Speed up moving cursor/selection up or down past non-renderered elements. Skips calling firstPositionInOrBeforeNode when a node doesn't have a renderer, since there couldn't possibly be a visible position there. This was particularly wasteful when trying to move the cursor up when at the beginning of a document, as it did a O(n^2) scan through the document head. See bug for easy repro steps. BUG=263499 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154977

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -5 lines) Patch
A LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements.html View 1 chunk +49 lines, -0 lines 3 comments Download
A + LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/editing/VisibleUnits.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dmazzoni
7 years, 5 months ago (2013-07-23 20:14:06 UTC) #1
leviw_travelin_and_unemployed
The code change lgtm. https://codereview.chromium.org/20049007/diff/1/LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements.html File LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements.html (right): https://codereview.chromium.org/20049007/diff/1/LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements.html#newcode16 LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements.html:16: description("Test moving up and down ...
7 years, 5 months ago (2013-07-24 18:13:56 UTC) #2
dmazzoni
https://codereview.chromium.org/20049007/diff/1/LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements.html File LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements.html (right): https://codereview.chromium.org/20049007/diff/1/LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements.html#newcode16 LayoutTests/editing/execCommand/move-up-down-should-skip-hidden-elements.html:16: description("Test moving up and down through non-renderered elements. This ...
7 years, 5 months ago (2013-07-24 18:22:11 UTC) #3
leviw_travelin_and_unemployed
Sorry, I finished this review awhile ago but never sent out my feedback! Sorry for ...
7 years, 5 months ago (2013-07-26 04:40:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/20049007/1
7 years, 5 months ago (2013-07-26 05:54:15 UTC) #5
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 06:13:29 UTC) #6
Message was sent while issue was closed.
Change committed as 154977

Powered by Google App Engine
This is Rietveld 408576698