gecko-dev/editor
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
..
composer Bug 1365383 - Spellchecker should consider that callback isn't set. r=masayuki 2017-05-18 14:50:25 +09:00
libeditor Bug 1367683 Optimize initializing nsRange r=smaug 2017-05-30 13:18:25 +09:00
reftests Bug 1361645 - Change reftest condition stylo to styloVsGecko r=dbaron 2017-05-25 11:26:12 +08:00
txmgr Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
txtsvc Bug 1367683 Optimize initializing nsRange r=smaug 2017-05-30 13:18:25 +09:00
AsyncSpellCheckTestHelper.jsm Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
moz.build Bug 1325281 Get rid of nsIEditorIMESupport r=m_kato 2017-05-09 15:21:22 +09:00
nsEditorCID.h
nsIContentFilter.idl
nsIDocumentStateListener.idl
nsIEditActionListener.idl
nsIEditor.idl Bug 1349178 Make nsIEditor.transactionManager readonly r=m_kato 2017-03-21 20:57:15 +09:00
nsIEditorMailSupport.idl Bug 1272893 - Remove nsISupportsArray from GetEmbeddedObjects() in editor. r=masayuki 2016-09-15 04:33:00 +02:00
nsIEditorObserver.idl
nsIEditorSpellCheck.idl
nsIEditorStyleSheets.idl
nsIEditorUtils.idl Bug 1259517 - Make dropping images in editors work in e10s. r=baku 2016-06-21 15:17:37 -07:00
nsIHTMLAbsPosEditor.idl
nsIHTMLEditor.idl Bug 1312991 Get rid of nsIHTMLEditor::SetDocumentTitle() and mozilla::SetDocumentTitleTransaction r=smaug 2016-12-26 17:46:23 +09:00
nsIHTMLInlineTableEditor.idl
nsIHTMLObjectResizer.idl Bug 1349426 - Remove nsIHTMLObjectResizeListener. r=masayuki 2017-03-27 15:16:40 +09:00
nsIPlaintextEditor.idl Bug 1358025 - Part 2. Add SetText Transaction API. r=masayuki 2017-05-25 14:30:50 +09:00
nsITableEditor.idl
nsIURIRefObject.idl
nsPIEditorTransaction.idl