gecko-dev/layout/printing
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
..
crashtests No Bug - Twiddle stylo reftest expectations some more. r=me 2017-02-25 17:58:53 -08:00
ipc Bug 1359490 - add an event loop spinning abstraction function; r=gerald 2017-05-15 09:34:19 -04:00
moz.build
nsIPrintProgress.idl
nsIPrintProgressParams.idl
nsIPrintStatusFeedback.idl
nsPagePrintTimer.cpp Bug 1342872 - part2: Name the nsPagePrintTimer runnable and associate its nsITimers with a DocGroup r=bevistseng,jwatt 2017-03-30 22:49:43 +08:00
nsPagePrintTimer.h Bug 1354443 part.2 nsPrintEngine::Disconnect() should clear mPrintObj r=dholbert 2017-04-27 17:17:20 +09:00
nsPrintData.cpp Bug 1360135 Get rid of nsPrintData::mSelectedPO because it's unused r=dholbert 2017-05-10 17:25:56 +09:00
nsPrintData.h Bug 1360135 Get rid of nsPrintData::mSelectedPO because it's unused r=dholbert 2017-05-10 17:25:56 +09:00
nsPrintEngine.cpp Bug 1367683 Optimize initializing nsRange r=smaug 2017-05-30 13:18:25 +09:00
nsPrintEngine.h Bug 1354443 part.1-1 Make nsPrintData refcountable r=dholbert 2017-05-09 17:08:20 +09:00
nsPrintObject.cpp Bug 1342994 Part 2 - Use UniquePtr to replace explicit new/delete and non-owing pointers in printing APIs. r=dholbert 2017-03-06 16:28:20 +08:00
nsPrintObject.h Bug 1342994 Part 2 - Use UniquePtr to replace explicit new/delete and non-owing pointers in printing APIs. r=dholbert 2017-03-06 16:28:20 +08:00
nsPrintPreviewListener.cpp
nsPrintPreviewListener.h
PrintTranslator.cpp
PrintTranslator.h Bug 1355931 - move font serialization from ScaledFont to UnscaledFont. r=jrmuizel 2017-04-14 14:11:00 -04:00