Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
Masayuki Nakano f337b95b60 Bug 1372829 - part2: mozilla::EditorBase should cache raw pointer of nsISelectionController and nsIDocument with nsWeakPtr r=froydnj,m_kato
mozilla::EditorBase stores nsISelectionController and nsIDocument with nsWeakPtr.  However, nsWeakPtr requires QI to retrieve actual pointer and it makes some damage to the performance.  If mozilla::WeakPter were available for them, it'd be great.  However, it's not available with nsISelectionController nor nsIDocument because it's possible to implement SupportsWeakPtr only with their subclasses but the subclasses shouldn't be referred by editor.  Therefore, this patch creates mozilla::CachedWeakPtr<class T> which stores both raw pointer (as cache) and nsWeakPtr and when its cache is requested, it checks if the object referred by nsWeakPtr is still alive.

Additionally, this patch hides the members from subclasses of EditorBase for reducing the maintenance cost.

MozReview-Commit-ID: FvtM7453Vv8

--HG--
extra : rebase_source : a524a8ea327c3993645fafa81db8aef65090f1e0
2017-06-20 00:55:00 +09:00
.cargo Bug 1277338 - Part 1: Turn js/src into the mozjs-sys crate; r=sfink 2016-10-13 16:12:42 -07:00
.vscode Add some task definitions to run mach from VSCode (bug 1323308). r=gps 2017-05-04 18:03:54 +03:00
accessible Bug 1370225 - Enabled the ESLint comma-style rule across mozilla-central. r=standard8 2017-06-15 18:24:17 +01:00
addon-sdk Bug 1372309 - make test-ui-action-button turn off photon and make it work on hidpi devices, r=aswan 2017-06-14 11:47:28 +01:00
browser Bug 1373707 - Enable e10s-multi for users with webextensions on Release. r=Felipe 2017-06-16 10:28:29 -07:00
build Bug 1373667 - Only use sccache if enabled. r=ted 2017-06-16 10:34:09 -04:00
caps Bug 1252211 - Remove DOMCI for TreeSelection, XULCommandDispatcher and XULControllers. r=bz. 2017-05-18 09:07:25 +02:00
chrome Merge inbound to m-c. a=merge 2017-05-25 16:34:16 -04:00
config Bug 1370695 - Remove build system code handling binary components. r=glandium 2017-06-13 16:01:45 -07:00
db Bug 1371364 - Upgrade to SQLite 3.19.3. r=mak 2017-06-08 15:23:34 -04:00
devtools Bug 1372814 - Add test case and performance measurement in test-perf.html . r=bgrins 2017-06-14 17:13:52 +02:00
docshell Bug 1362903 - Use reftest-wait to ensure this test finishes. r=smaug 2017-06-19 11:34:15 +09:00
dom Bug 1372829 - part2: mozilla::EditorBase should cache raw pointer of nsISelectionController and nsIDocument with nsWeakPtr r=froydnj,m_kato 2017-06-20 00:55:00 +09:00
editor Bug 1372829 - part2: mozilla::EditorBase should cache raw pointer of nsISelectionController and nsIDocument with nsWeakPtr r=froydnj,m_kato 2017-06-20 00:55:00 +09:00
embedding Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
extensions merge mozilla-central to autoland. r=merge 2017-06-18 00:21:41 +02:00
gfx Backed out 2 changesets (bug 1365772) for valgrind failures a=backout 2017-06-19 13:53:23 -07:00
gradle/wrapper Bug 1300094 - Update Gradle to 2.14.1 and Gradle Plugin to 2.1.3 r=sebastian 2016-09-22 14:31:01 -07:00
hal Bug 1366356 - Decrease the process priority of content processes that are not running a foreground tab - part 2 - enabled if the platform specific code is ready, r=smaug 2017-06-07 09:59:00 +02:00
image Bug 1267075 - Part 3: cancel imgRequestProxy if asyncOpen2 failed. r=tnikkel 2017-06-16 10:12:09 +08:00
intl Bug 1372886 - Remove dead parameters from nsIConverterInputStream.init(). r=hsivonen 2017-06-17 19:30:09 +09:00
ipc Backed out changeset 05a5f9d8249f (bug 1343728) 2017-06-16 22:20:37 +02:00
js Bug 1221148 - Allow passing blob:// URIs to mozIJSSubScriptLoader; r=smaug 2017-06-07 11:00:24 -04:00
layout Bug 1369985 - Look for text run boundary based on transformed text when needed. r=jfkthame 2017-06-18 11:18:32 +10:00
media merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-06-18 20:35:11 +02:00
memory Bug 1369626 - Remove MALLOC_XMALLOC. r=njn 2017-06-02 15:19:20 +09:00
mfbt Bug 1353593 - Part 1: Allow implicit conversion of non-const char16ptr_t to wchar*. r=froydnj 2017-06-12 16:20:47 -07:00
mobile Bug 1372486 - Part 5: Fix Fennec resources path defined in moz.build to pass `mach build check`. r=nalexander,nechen 2017-06-19 23:30:10 +08:00
modules Backed out 4 changesets (bug 981796) for android failures in test_bug414291.html a=backout 2017-06-19 16:41:55 -07:00
mozglue Bug 1372375: Avoid locks in EnsureWalkThreadReady during the profiler's critical section. r=mstange 2017-06-13 18:30:48 -04:00
netwerk Bug 1363546 - Store and report HSTS upgrade source r=francois,keeler,mayhemer p=francois 2017-05-23 15:31:37 -07:00
nsprpub Bug 1350291, landing final NSPR 4.15 RTM tag, no code change, just version number, r=me 2017-06-06 12:19:16 +02:00
other-licenses Bug 1343537 - Implement ARIA DPUB extension. r=surkov 2017-06-13 15:06:08 -04:00
parser merge mozilla-central to autoland. r=merge 2017-06-18 00:21:41 +02:00
probes Bug 1344878 - add BUG_COMPONENT to probes/* files. r=Ms2ger 2017-03-24 09:50:48 -04:00
python Bug 1373951 - Use the existing list of thirdparty code instead an hardcoded list r=gps 2017-06-20 00:17:58 +02:00
rdf Bug 1330235 - Remove NS_STDCALL_FUNCPROTO and replace its usage with decltype. r=froydnj 2017-05-09 23:00:37 +10:00
security Bug 1363546 - Store and report HSTS upgrade source r=francois,keeler,mayhemer p=francois 2017-05-23 15:31:37 -07:00
services Bug 1357798 - Ensure URLs don't end up in sync error telemetry. r=markh 2017-06-12 13:38:39 -04:00
servo servo: Merge #17410 - Support nested requestAnimationFrame in the presence of reftest-wait (from asajeffrey:compositor-nested-rAF-with-reftest-wait); r=jdm 2017-06-19 13:25:36 -07:00
startupcache Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
storage Bug 1166166 - Shrink storage cache off main thread r=mak 2017-06-01 14:46:53 -07:00
taskcluster Bug 1319804 - Move mochitest-chrome to ubuntu 16.04. r=jmaher 2017-06-18 10:18:46 -04:00
testing Backed out 4 changesets (bug 981796) for android failures in test_bug414291.html a=backout 2017-06-19 16:41:55 -07:00
third_party No bug - Revendor rust dependencies 2017-06-16 14:55:25 +00:00
toolkit Bug 1347182 - Add support for setting the background color of all toolbars using a WebExtension theme. r=jaws,mattw 2017-06-15 19:20:26 +02:00
tools Merge mozilla-central to autoland 2017-06-19 14:52:55 +02:00
uriloader Bug 1354920 - Typo fixes around 'algorithm'. r=MattN 2017-06-06 17:50:25 -07:00
view Bug 1354933. Add some asserts for document viewer teardown. r=mats 2017-06-03 01:31:12 -05:00
widget Backed out 2 changesets (bug 1365772) for valgrind failures a=backout 2017-06-19 13:53:23 -07:00
xpcom Bug 1372829 - part2: mozilla::EditorBase should cache raw pointer of nsISelectionController and nsIDocument with nsWeakPtr r=froydnj,m_kato 2017-06-20 00:55:00 +09:00
xpfe Bug 1372994 - Clear up leftover ISO-8859-1 encoding names. r=emk 2017-06-15 10:35:22 +03:00
.clang-format Bug 1322321 - Update the clang format file to match more our coding style r=ehsan 2016-12-06 17:43:17 -10:00
.clang-format-ignore Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
.clang-tidy Bug 1319396 - Update the list of checkers in the .clang-tidy file r=Ehsan 2016-11-22 12:30:19 +01:00
.cron.yml Bug 1369908 - Schedule linux64-ccov, and linux64-jsdcov on all mozilla-central pushes. r=jmaher 2017-06-13 13:04:08 -04:00
.eslintignore Bug 1369028 - Add build infrastructure for follow-on search telemetry system add-on. r=Mossop 2017-06-08 15:57:08 +01:00
.eslintrc.js Bug 1359011 - Make the mozilla/recommended eslint configuration the default for the whole tree. r=mossop 2017-04-25 20:12:21 +01:00
.flake8 Bug 1288432 - Use new mozlint configuration for flake8 linter, r=bc 2017-06-02 09:46:01 -04:00
.gdbinit Bug 1317802 - don't stop for SIGSYS in .gdbinit; r=jld 2016-11-16 01:13:22 -05:00
.gdbinit_python Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.gitignore Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.hgignore Bug 1364410 - Fix quantum-pageload test so it runs locally on windows via mach; r=jmaher 2017-06-05 14:51:06 -04:00
.hgtags No bug - Tagging mozilla-central f9605772a0c9098ed1bcaa98089b2c944ed69e9b with FIREFOX_BETA_55_BASE a=release DONTBUILD CLOSED TREE 2017-06-12 12:50:30 +01:00
.inferconfig Bug 1357629 - Add httpclientandroidlib to .inferconfig ignore list r=nalexander,njpark 2017-04-18 20:05:25 -07:00
.lldbinit Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.taskcluster.yml Bug 591688 - Notify when decision task fails r=dustin,gps 2017-04-12 21:01:46 -07:00
.ycm_extra_conf.py Bug 1293534: Fix .ycm_extra_conf after bug 1195748. r=gps 2016-08-09 10:30:58 -07:00
AUTHORS Bug 1111333 - Enable double-tap-drag to zoom. r=kats 2017-05-23 19:53:06 +02:00
Android.mk
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2017-06-12 13:48:15 +01:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1307301 - Don't attempt to compress compressed files when packing the symbols archive. r=ted 2017-04-27 22:51:19 -07:00
README.txt Bug 1349108 - Update links in README.txt to HTTPS r=RyanVM 2017-03-21 00:11:02 -04:00
aclocal.m4 Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
build.gradle Bug 1318823 - Use com.getkeepsafe.dexcount in Gradle builds. r=sebastian 2016-11-18 18:28:58 -08:00
client.mk Bug 1317778 - Emit a depfile with python configure dependencies so Make will know when to re-run configure. r=glandium 2016-12-02 10:05:57 -08:00
client.py
configure.in Bug 1295751 - Make it possible to copy configure.in to configure. r=gps 2016-08-16 19:35:00 -07:00
configure.py Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
gradle.properties
gradlew
mach Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
moz.build bug 1370176, generic configuration for l10n, r=flod,gps 2017-06-05 10:28:33 +02:00
moz.configure Bug 1367847 Support makensis on MinGW Linux for Windows builds r=glandium 2017-06-07 20:56:21 -05:00
mozilla-config.h.in Bug 1371266 - libpng should be built with -std=c89. r=glennrp 2017-06-08 06:29:03 -07:00
npm-shrinkwrap.json Bug 1371669 - Add support for npm 5. r=standard8 2017-06-09 17:18:52 +03:00
old-configure.in Bug 1371465 - Move MSVS_VERSION to moz.configure and properly define for vs2017; r=glandium 2017-06-14 16:52:55 -07:00
package.json Bug 1371669 - Add support for npm 5. r=standard8 2017-06-09 17:18:52 +03:00
settings.gradle Bug 1291363 - Add geckoview and geckoview_example Gradle projects. r=jchen,sebastian 2016-10-05 20:23:38 -07:00
test.mozbuild

README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://nightly.mozilla.org/