Merge 76889 - 2011-01-27 Finnur Thorarinsson <firstname.lastname@example.org>
Reviewed by Ojan Vafai.
This addresses a regression introduced by r75784, as described in:
The problem is that originalEndContainer and originalEndOffset was
meant to capture the end of the document, but was being assigned after
a call to searchRange->setStart() (when scoping is restarted), which can
result in the Range being collapsed to start (thereby assigning the
wrong value to the Container/Offset pair).
This code is never triggered by layout tests, but I'm adding a regressiono
test on the Chromium side for this.