mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
61af94acbd
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 |
||
---|---|---|
.. | ||
moz.build | ||
nsFilteredContentIterator.cpp | ||
nsFilteredContentIterator.h | ||
nsIInlineSpellChecker.idl | ||
nsISpellChecker.h | ||
nsITextService.h | ||
nsITextServicesDocument.h | ||
nsITextServicesFilter.idl | ||
nsTextServicesCID.h | ||
nsTextServicesDocument.cpp | ||
nsTextServicesDocument.h | ||
nsTextServicesFactory.cpp | ||
nsTSAtomList.h |