DescriptionAvoid creating duplicate Range objects when handling misspellings.
When iterating over the input text and marking its misspellings, avoid
creating duplicate Range objects from the check & paragraph EphemeralRanges
if they're identical.
This addresses a performance regression on trunk (non-Oilpan) for
blink_perf.dom.textarea-edit introduced by the EphemeralRange-switching
https://codereview.chromium.org/1331893002
R=haraken
BUG=530740
Committed: https://crrev.com/70e3de94ab4b4a6ce2e9009f593f89aaf6eafdad
Cr-Commit-Position: refs/heads/master@{#351001}
Patch Set 1 #
Total comments: 6
Patch Set 2 : push Range de-dup into SpellCheckRequester::create() #
Total comments: 2
Patch Set 3 : add SpellCheckRequest::dispose() #Patch Set 4 : compile fix #
Messages
Total messages: 14 (3 generated)
|