Commit Graph

1085 Commits

Author SHA1 Message Date
Gordon Su
a76893e36f Bug 1214169 - Always use ICU in nsCollationMacUC. r=emk. 2015-12-16 17:27:44 +09:00
Jan Beich
6263cbf48c Bug 1228208 - Make sure ICU flags are prepended before system flags. r=glandium 2015-12-02 09:40:50 +00:00
Jan Beich
151133bf60 Bug 1228227 - Unbreak build with libc++ and config/gcc_hidden.h after bug 1075758. r=Waldo r=glandium 2015-12-01 18:24:45 +00:00
Mike Hommey
547d572dd9 Bug 1229293 - Enforce order when setting a HierarchicalStringList, and forbid reassignment. r=gps
The current implementation of HierarchicalStringList allows the following:

   FOO.bar = [
       'foo',
       'bar',
   ]

while

   FOO.bar += [
       'foo',
       'bar',
   ]

would be invalid because of the StrictOrderingOnAppendList enforcement.

It also allows to overwrite the entire list with a subsequent

   FOO.bar = [
	'baz',
   ]

while we've explicitly forbidden such things for every other list.

While in the vicinity, fix HierarchicalStringList._get_export_variable to not
call the HierarchicalStringList constructor uselessly.
2015-12-02 11:04:37 +09:00
Mats Palmgren
54af341c78 Bug 1228755 - Map "C.UTF-8" to "en-US.UTF-8" in GetXPLocale(). r=smontagu 2015-11-29 17:58:36 +01:00
Ted Clancy
81a556ce8d Bug 1157727 - Part 1: Add paired bracket type property to our character data (patch originally by :tedders1, updated by :jfkthame). r=jfkthame 2015-10-06 01:26:23 -07:00
Carsten "Tomcat" Book
21f41275c4 Backed out changeset fb72e312f137 (bug 1157727) 2015-11-25 15:37:03 +01:00
Ted Clancy
f82605b72a Bug 1157727 - Part 1: Add paired bracket type property to our character data (patch originally by :tedders1, updated by :jfkthame). r=jfkthame 2015-10-06 01:26:23 -07:00
Jonathan Kew
701ca65f95 Bug 1210165 - Update in-tree ICU to release 56.1. implied-rs=waldo, who reviewed the script that generates it 2015-11-20 11:37:51 +00:00
Jonathan Kew
ed2be7cff8 Bug 1210165 - Tweak the update-icu script ready for release 56. r=waldo 2015-11-20 11:33:13 +00:00
Mike de Boer
c998b9222b Bug 1048850 - Part 2: make 'ruleNum' an object member to allow the property to be passed to content pages. r=Standard8 2015-11-18 17:09:34 +01:00
Henri Sivonen
08f918f297 Bug 1214619 - Remove nsISaveAsCharset as much as possible without breaking extensions in popular use. r=emk. 2015-10-22 11:18:45 +03:00
Mike Hommey
be6191e808 Bug 1198952 - Work around GNU make 3.82 bug when recursing the ICU build system. r=gps 2015-11-11 13:13:06 +09:00
Nathan Froyd
ee4d8ac1e4 Bug 1221550 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in intl/; r=smontagu 2015-11-03 15:49:22 -05:00
Birunthan Mohanathas
a535083ab4 Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Henri Sivonen
ef0fc8abf3 Bug 1202366 - Implement the encoder error mode "HTML" for nsFormSubmission without nsISaveAsCharset. r=NOT_emk. 2015-10-22 11:12:42 +03:00
Jonathan Almeida [:jonalmeida]
4172650d0a Bug 1175555 - Build flag to exclude hyphenation dictionaries from Android builds. r=nalexander 2015-09-23 22:28:59 -04:00
Nicholas Nethercote
e49efba560 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.
2015-10-19 18:05:20 -07:00
Nathan Froyd
e4e2da55c9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Aniket Vyas
a23d5b7f69 Bug 1197309 - remove PR_snprintf calls in intl/; r=froydnj 2015-10-15 21:43:53 -04:00
Carsten "Tomcat" Book
d7f143eaad Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
b9e5717f50 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
b5f316de44 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Simon Montagu
5381d57cba Bug 1201468: Map UErrorCode to nsresult, r=jfkthame 2015-10-06 02:59:00 -07:00
Chris Peterson
dd2fcb9b7d Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
sajitk
e388f7e233 Bug 1203477 - Moved Mozilla specific files to glue directory, and third party files to hyphen directory. Adjusted moz.build files. r=glandium 2015-09-16 21:01:00 +02:00
Christoph Kerschbaumer
1d65dd6fe1 Bug 1205153 - Use channel->Open2() in intl/strres/nsStringBundleTextOverride.cpp (r=sicking) 2015-09-15 19:49:55 -07:00
Shu-yu Guo
45211869c8 Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Henri Sivonen
1e118e16a6 Bug 912470 addendum - Pass override static analysis. r=emk. 2015-09-11 09:35:52 +03:00
Henri Sivonen
4972edc4dc Bug 912470 part 2 - Implement Encoding Standard-compliant big5 encoder. r=emk. 2015-09-03 15:21:57 +03:00
Henri Sivonen
1c2b51d5b2 Bug 912470 part 1 - Implement Encoding Standard-compliant big5 decoder. r=emk. 2015-06-16 15:26:10 +03:00
Phil Ringnalda
8c77c63a10 Back out 2 changesets (bug 912470) for static analysis bustage
CLOSED TREE

Backed out changeset 8ecf2f65d4f0 (bug 912470)
Backed out changeset 19af08a9c288 (bug 912470)
2015-09-10 09:37:51 -07:00
Henri Sivonen
8b06149c69 Bug 912470 part 2 - Implement Encoding Standard-compliant big5 encoder. r=emk. 2015-09-03 15:21:57 +03:00
Henri Sivonen
3672b55134 Bug 912470 part 1 - Implement Encoding Standard-compliant big5 decoder. r=emk. 2015-06-16 15:26:10 +03:00
Nicholas Nethercote
5f59618546 Bug 1203412 - Fix a warning in intl/unicharutil/. r=emk.
This change is for the following warning-as-error that shows up on "B2G L
Emulator" builds: "error: call to 'sprintf' declared with attribute warning:
sprintf is often misused; please use snprintf".

The patch also removes two ALLOW_COMPILER_WARNINGS=True flags, which are no
longer necessary.
2015-09-10 08:01:24 -07:00
Makoto Kato
b2c7b13c7d Bug 1170072 - Part 2. Use ICU instead of GetCharProps1 and its supporting data if ICU is turned on. r=jfkthame 2015-09-07 11:56:13 +09:00
Makoto Kato
9bd627e4ba Bug 1170072 - Part 1. Make GetCharProps1 as static function. r=jfkthame 2015-09-07 11:54:46 +09:00
Jonathan Kew
464d68dda1 Bug 1201533 - Remove the GetEastAsianWidth API and its supporting character-property data. r=smontagu 2015-09-06 19:39:49 +01:00
Ted Clancy
5ee26fc455 Bug 1198216 - Check for presence of ICU::Timezone::recreateDefault() before using. r=jwalden 2015-08-27 07:57:19 -07:00
Christoph Kerschbaumer
cec76d947c Bug 1197925 - Use channel->Open2() in intl/hyphenation/hnjstdio.cpp (r=sicking) 2015-09-02 11:37:57 -07:00
Christoph Kerschbaumer
6e2873af5c Bug 1197923 - Use channel->Open2() in intl/strres/nsStringBundle.cpp (r=sicking) 2015-09-02 11:37:16 -07:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Ted Clancy
1d2268697d Bug 1172609 - Part 9: Add threadsafe recreateDefault() method to ICU::Timezone. r=waldo 2015-08-05 19:07:34 -07:00
Ted Clancy
c5f1233172 Bug 1172609 - Part 8: Fix the tz detection code. r=waldo 2015-08-05 19:05:04 -07:00
Birunthan Mohanathas
e1f0334d06 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Makoto Kato
f676e73f32 Bug 1175413 - Cleanup usages of MOZ_ICU_CFLAGS. r=mshal 2015-07-23 09:53:48 +09:00
Simon Montagu
2794a73d24 Bug 1183209 patch 3: update generated data files to Unicode 8, and adapt internal XIDMOD types to the new types in Unicode's xidmodifications.txt, r=jfkthame 2015-07-15 05:55:24 -07:00
Simon Montagu
ca2a9d7d2f Bug 1183209 patch 2: update data generation tools to Unicode 8, r=jfkthame 2015-07-15 05:55:09 -07:00
Birunthan Mohanathas
47ed3a3675 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Makoto Kato
6d7eef4337 Bug 1179106 - Remove units data from ICU. r=Waldo 2015-07-08 18:49:58 +09:00