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
Go to file
Emilio Cobos Álvarez 619cb14d87 Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz
The main renaming was generated with the following python script:

```

import sys
import re

CAMEL_CASE_REGEX = re.compile(r"(^|_|-)([A-Z])([A-Z]+)")
DISPLAY_REGEX = re.compile(r"\bNS_STYLE_DISPLAY_([^M][A-Z_]+)\b")

def to_camel_case(ident):
  return re.sub(CAMEL_CASE_REGEX,
                lambda m: m.group(2) + m.group(3).lower(), ident)

def constant_to_enum(constant):
  return "StyleDisplay::" + to_camel_case(constant) + ("_" if constant == "NONE" else "")

def process_line(line):
  return re.sub(DISPLAY_REGEX,
                lambda m: constant_to_enum(m.group(1)), line)

lines = []
with open(sys.argv[1], "r") as f:
  for line in f:
    lines.append(process_line(line))

with open(sys.argv[1], "w") as f:
  for line in lines:
    f.write(line)
```

And the following shell commands:

```
find . -name '*.cpp' -exec python display.py {} \;
find . -name '*.h' -exec python display.py {} \;
```

MozReview-Commit-ID: 91xYCbLC2Vf
2016-09-01 20:41:17 -07:00
accessible Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
addon-sdk Bug 1299631 - Avoid accessing dead windows in test-firefox-windows.js. r=zer0 2016-09-01 15:28:14 -07:00
b2g Bug 1296579 - Remove the SimplePush API r=kitcambridge,baku 2016-09-01 20:17:03 +02:00
browser Bug 1167575. Ensure that we don't exit modal state while we're still waiting on a Gecko runnable in the event-loop-spinning code in nsPrompter.js. r=dolske 2016-09-01 21:31:22 -04:00
build Backed out changeset 0d714827d06c for causing local build failures on Android (bug 1292674) 2016-09-01 13:34:01 -04:00
caps Bug 1297687 - Use the OriginAttributes associated with a window principal when creating a Sandbox with an expanded principal; r=baku 2016-09-01 14:34:23 -04:00
chrome Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
config Bug 1298466 - avoid some spammy warnings for ICU when compiling with clang-cl; r=ted.mielczarek 2016-08-25 17:13:51 -04:00
db/sqlite3 Bug 1293367 - Upgrade to SQLite 3.14.1. r=asuth 2016-08-18 22:02:22 -04:00
devtools Backed out changeset 37f554c467ca (bug 1295753) for browser_parsable_script.js failures a=backout 2016-09-01 11:12:00 -07:00
docshell Bug 1282882 - Remove LoadContextInfo and LoadContext private browsing flags; r=jdm,mayhemer 2016-08-26 13:06:48 -04:00
dom Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
editor Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
embedding Bug 712936 - Convert users of PR_STATIC_ASSERT to C++11 static_assert(). r=Ms2ger 2016-08-23 11:24:54 -04:00
extensions Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
gfx Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
gradle/wrapper Bug 1263390 - Use Gradle 2.10 and Android Gradle plugin 2.0. r=mcomella 2016-04-19 20:01:38 +02:00
hal Bug 1299493 - Remove Navigator.get/hasFeature(); r=baku 2016-08-31 18:02:46 -04:00
image Bug 725119 - fuzz for reftests with Skia content on Android. r=mchang 2016-08-31 15:53:33 -04:00
intl Bug 1295053 (part 6) - Don't use NS_METHOD for intl/uconv/ functions. r=froydnj. 2016-08-16 12:12:29 +10:00
ipc Bug 1051567 - Make sure we resend file descriptors for the first chunk of a message. r=billm 2016-08-30 18:26:59 +08:00
js Bug 1297706 - Syntax parse with statements. r=jandem 2016-09-01 13:55:58 +02:00
layout Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
media Merge m-c to autoland, a=merge 2016-08-29 17:57:01 -07:00
memory Bug 1291356 - Enable multiple jemalloc arenas for MOZ_STYLO builds. r=me 2016-08-26 20:21:48 +09:00
mfbt Bug 1051567 - Make sure we resend file descriptors for the first chunk of a message. r=billm 2016-08-30 18:26:59 +08:00
mobile Merge m-c to inbound, a=merge CLOSED TREE 2016-09-01 17:54:19 -07:00
modules Merge m-c to inbound, a=merge 2016-08-29 17:54:53 -07:00
mozglue Bug 1297807 - Remove old JNI stubs; r=snorp 2016-08-26 12:26:46 -04:00
netwerk Merge autoland to m-c. a=merge 2016-08-31 09:52:43 -04:00
nsprpub Bug 1293329, land NSPR_4_13_BETA2, r=ted 2016-08-27 11:06:04 +02:00
other-licenses Bug 1296449, statically link mbsdiff.exe, like we do for mar.exe r=glandium 2016-08-22 16:59:33 +12:00
parser Bug 1298818 - Throw correct exception for names that start with Unicode characters that are only allowed at start; r=jst 2016-09-01 20:37:35 +03:00
probes Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
python Bug 1297718 - Add config.status to sys.modules for dependency detection; r=glandium 2016-08-26 10:04:07 -04:00
rdf bug 778777 - kill off most of rdf/tests/ irc-r=ted 2016-08-18 09:23:24 -04:00
release/docker Bug 1294040 - Funsize should accept downloads from https://archive.mozilla.org r=philor a=automation DONTBUILD 2016-08-10 09:44:36 -04:00
security Merge m-c to autoland, a=merge 2016-08-30 18:15:33 -07:00
services Merge inbound to m-c a=merge 2016-09-01 17:51:22 -07:00
startupcache Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
storage Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
taskcluster Bug 1292762 - Set GRADLE_USER_HOME to avoid sdk-manager-plugin intermittent. r=sebastian 2016-08-31 11:38:13 -07:00
testing Merge m-c to inbound, a=merge CLOSED TREE 2016-09-01 17:54:19 -07:00
toolkit Back out changeset 58b07057fe25 (bug 1299159) on suspicion of breaking Windows PGO builds 2016-09-01 19:43:22 -07:00
tools Bug 1299540 - Fix WindowsError when running eslint from msys, r=smacleod 2016-08-31 14:32:44 -04:00
uriloader Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
view Bug 1293596 (part 2) - Rework nsIWidget bounds getters. r=mstange. 2016-08-19 09:03:04 +10:00
widget Merge autoland to m-c. a=merge 2016-08-31 09:52:43 -04:00
xpcom Back out changeset 58b07057fe25 (bug 1299159) on suspicion of breaking Windows PGO builds 2016-09-01 19:43:22 -07:00
xpfe Bug 1293596 (part 4) - Tweak nsIWidget::Create. r=mstange. 2016-08-19 09:03:17 +10:00
.clang-format
.clang-format-ignore
.eslintignore Bug 1298559 - Enable eslint for /browser/base/content/test/ r=mattn 2016-08-31 12:53:24 -04:00
.eslintrc Bug 1245916: Unify eslint global discovery rules. r=pbrosset 2016-02-05 11:37:50 -08:00
.flake8 Bug 1283129 - Flake8 linter is accidentally linting some eslint related .lint files, r=maja_zf 2016-06-29 10:37:27 -04:00
.gdbinit bug 985566 - add some pretty printers to .gdbinit r=froydnj r=glandium 2016-06-02 13:33:07 -04:00
.gdbinit_python bug 985566 - add some pretty printers to .gdbinit r=froydnj r=glandium 2016-06-02 13:33:07 -04:00
.gitignore Bug 1287827 - Part 2. Build changes for removing Loop. r=glandium 2016-07-30 08:48:29 +01:00
.hgignore Bug 1287827 - Part 2. Build changes for removing Loop. r=glandium 2016-07-30 08:48:29 +01:00
.hgtags No bug - Tagging mozilla-central 465d150bc8be5bbf9f02a8607d4552b6a5e1697c with FIREFOX_AURORA_50_BASE a=release DONTBUILD CLOSED TREE 2016-08-01 07:05:25 -07:00
.lldbinit Bug 1254128 - Make the Mozilla .lldbinit use the full path for topsrcdir. r=sparky 2016-03-01 16:36:08 +00:00
.taskcluster.yml Bug 1298455 - Tag and use decision image 0.1.5; r=dustin 2016-08-26 11:10:30 -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
aclocal.m4 merge mozilla-inbound to mozilla-central a=merge 2016-07-27 16:35:44 +02:00
Android.mk
AUTHORS
build.gradle Bug 1268453 - Use Android Gradle plugin 2.1. r=mcomella 2016-04-29 14:48:43 +02:00
client.mk Bug 1295751 - Make it possible to copy configure.in to configure. r=gps 2016-08-16 19:35:00 -07:00
client.py
CLOBBER Bug 1289951 maybe needs a=CLOBBER CLOSED TREE 2016-09-01 15:16:48 -07:00
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 1296503 - Switch config.status to unicode literals. r=ted 2016-08-24 07:32:52 +09:00
GNUmakefile
gradle.properties Bug 1218370 - Use Gradle daemon in srcdir builds. r=me 2015-10-26 09:28:14 -07:00
gradlew Bug 1123416 - Part 1: Make topsrcdir a valid Gradle project root. r=sebastian 2015-10-21 15:07:55 -07:00
LEGAL
LICENSE
mach Bug 1279020 - [mach] Follow symlinked mach binary when searching for a srcdir, r=gps 2016-06-09 17:20:02 -04:00
Makefile.in bug 1262337 - add symbols for test plugins to symbols zip on Windows. r=gps 2016-08-22 06:42:59 -04:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
moz.configure Bug 1294803 - Move MOZ_SYSTEM_FFI to moz.configure in preparation for moving libffi to our build system. r=glandium 2016-08-22 15:07:07 -07:00
mozilla-config.h.in Bug 1231314 - Turn mozilla-config.h and js-confdefs.h into CONFIGURE_DEFINE_FILES. r=gps 2015-12-15 08:06:11 +09:00
old-configure.in Backed out changeset 0d714827d06c for causing local build failures on Android (bug 1292674) 2016-09-01 13:34:01 -04:00
README.txt
settings.gradle Bug 1233882 - Fold base Gradle project into app Gradle project. r=sebastian,mcomella 2016-02-17 19:25:54 -08:00
test.mozbuild Bug 1229233 - Add a (incomplete) end-to-end build test. r=gps 2015-12-01 13:57:52 +09:00

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:

    http://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:

    http://developer.mozilla.org/en/docs/Creating_a_patch
    http://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 http://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 -
    http://nightly.mozilla.org/