Avoid 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

Review URL: https://codereview.chromium.org/1369713002

Cr-Commit-Position: refs/heads/master@{#351001}
3 files changed