gecko-dev/modules
Masayuki Nakano be86e183fd Bug 1486370 - Change nsAutoCopyListener to a static class r=smaug
nsAutoCopyListener is a singleton class but refcountable and a selection
listener.  nsFrameSelection adds it to only normal Selection when it's on
macOS or it's enabled by the pref.  Additionally, it's always first selection
listener since it's added immediately after Selection instance is created.

So, we can make it a static class, and normal Selection instance should have
a bool to decide whether it should notify nsAutoCopyListener of its changes.
Then, we can save the cost of grabbing it with local RefPtr and the virtual
call.

Additionally, this patch renames nsAutoCopyListener to mozilla::AutoCopyListener
and optimizes constructor of nsFrameSelection (using bool var cache to retrieve
the pref, avoid retrieving the pref on macOS).

Differential Revision: https://phabricator.services.mozilla.com/D4504

--HG--
rename : layout/generic/nsAutoCopyListener.h => layout/generic/AutoCopyListener.h
extra : moz-landing-system : lando
2018-08-30 07:36:23 +00:00
..
brotli Bug 1474122 - Update brotli to version 1.0.5. r=jfkthame 2018-07-07 16:00:53 -04:00
fdlibm Bug 1438599 - Part 2: Import fdlibm from FreeBSD (revision b21ccf63f28a3a4692d8a31419e0a725a1b1a800). r=jwalden 2018-02-18 22:56:46 +09:00
freetype2 Bug 1458905 - Update to FreeType 2.9.1. r=jfkthame 2018-05-08 11:48:29 -04:00
libjar Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium 2018-08-28 15:56:01 +10:00
libmar Bug 1473113 - Defer initializing the MAR index until it's needed. r=rstrong 2018-07-11 10:12:08 -07:00
libpref Bug 1486370 - Change nsAutoCopyListener to a static class r=smaug 2018-08-30 07:36:23 +00:00
pdfium Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
woff2 Bug 1440658 - Update woff2 library to latest upstream code (currently at 1bccf208bca986e53a647dfe4811322adb06ecf8, release 1.0.2). r=fredw 2018-02-23 14:32:23 +00:00
xz-embedded Bug 1477048 - part 1 - remove '86' in CONFIG['OS_TEST'] stanzas from moz.build files; r=gps 2018-07-24 16:08:56 -04:00
zlib
moz.build