Skip to content
Snippets Groups Projects
Commit 5a875cad authored by Jim Chen's avatar Jim Chen
Browse files

Bug 811755 - Use PreContentIterator to correctly handle boundary cases; r=masayuki

parent 1dac9245
No related branches found
No related tags found
No related merge requests found
......@@ -369,7 +369,7 @@ nsContentEventHandler::SetRangeFromFlatTextOffset(
uint32_t aNativeLength,
bool aExpandToClusterBoundaries)
{
nsCOMPtr<nsIContentIterator> iter = NS_NewContentIterator();
nsCOMPtr<nsIContentIterator> iter = NS_NewPreContentIterator();
nsresult rv = iter->Init(mRootContent);
NS_ENSURE_SUCCESS(rv, rv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment