Bug 119350

Summary: Speed up moving cursor/selection up or down past non-renderered elements
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: arpitabahuguna, darin, enrica, kling, koivisto
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Ryosuke Niwa
Reported 2013-07-31 13:43:34 PDT
Merge https://chromium.googlesource.com/chromium/blink/+/965746ed22a5e210eb8c33adf300deab9a9c8332 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.
Attachments
Arpita Bahuguna
Comment 1 2013-08-19 04:33:02 PDT
Darin Adler
Comment 2 2013-08-19 08:47:31 PDT
*** This bug has been marked as a duplicate of bug 119882 ***
Note You need to log in before you can comment on or make changes to this bug.