gecko-dev/editor/txtsvc
Masayuki Nakano 61af94acbd Bug 1367683 Optimize initializing nsRange r=smaug
nsRange::DoSetRange() adds/remove its root to/from mutation observer, initializes common ancestor, registers itself to the common ancestor, unregisters itself from old common ancestor, and notifies selection listeners of selection change.

However, those runtime cost is expensive but on the other hand, a lot of callers set both start and end of the range and that causes calling DoSetRange() twice.

This patch renames Set() to SetStartAndEnd() for easier to understand the meaning and make it call DoSetRange() only once.

MozReview-Commit-ID: FRV55tuBAgg

--HG--
extra : rebase_source : 67adf929cf119e2425f7d3741651217522094590
2017-05-30 13:18:25 +09:00
..
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
nsFilteredContentIterator.cpp Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsFilteredContentIterator.h Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug 2016-01-12 18:16:59 +00:00
nsIInlineSpellChecker.idl Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsISpellChecker.h Bug 1330912 - Part 1. Add async version of SetCurrentDictionary using list. r=Ehsan 2017-04-10 18:29:16 +09:00
nsITextService.h Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00
nsITextServicesDocument.h Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00
nsITextServicesFilter.idl Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00
nsTSAtomList.h Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsTextServicesCID.h Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00
nsTextServicesDocument.cpp Bug 1367683 Optimize initializing nsRange r=smaug 2017-05-30 13:18:25 +09:00
nsTextServicesDocument.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsTextServicesFactory.cpp Bug 1028565 - Part 3: Flatten editor/txtsvc/{public,src}/ directories. r=ehsan 2014-06-25 15:08:34 -07:00