Граф коммитов

3892 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato ca9ba56b72 Bug 1269246 - Remove unnecessary PromiseFlatString. r=hsivonen
MozReview-Commit-ID: HMZfLqE0RXn
2016-05-02 14:30:40 +09:00
Nicholas Nethercote 2511b2c327 Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.

MozReview-Commit-ID: 1VS4Dney4WX

--HG--
extra : rebase_source : b26919c1b0fcb32e5339adeef5be5becae6032cf
2016-04-27 14:16:50 +10:00
Jonathan Kew 4a8c24fce5 Bug 1265631 - followup with adjustments for review comments on patch 3. no_r=me 2016-04-26 11:19:19 +01:00
Jonathan Kew 545b8fc9cc Bug 1265631 - patch 3 - Add surrogate support to nsJISx4051LineBreaker so that supplementary-plane characters get correct line-breaking behavior. r=masayuki 2016-04-26 10:32:19 +01:00
Jonathan Kew 0b98a9737f Bug 1265631 - patch 2 - Implement GetLineBreakClass() accessor to get Unicode line-break class from ICU or nsUnicodeProperties data. r=masayuki 2016-04-26 10:32:17 +01:00
Jonathan Kew 982b1a0979 Bug 1265631 - patch 1 - Add line-break data from Unicode's LineBreak.txt to nsUnicodeProperties for builds without ICU. r=masayuki 2016-04-26 10:32:15 +01:00
Xidorn Quan 19931babd5 Bug 1097499 part 8 - Move CountGraphemeClusters to mozilla::unicode. r=emk
MozReview-Commit-ID: J9yR8RPs5u8

--HG--
extra : source : 7b937b3ba984e84da808cd072037726b56da1826
2016-04-22 09:18:41 +10:00
Xidorn Quan 20a1eb1cd7 Bug 1097499 part 7 - Add reverse function of GetFullWidth. r=emk
MozReview-Commit-ID: HRDoZPzr1GO

--HG--
extra : source : 84cb256d16e07d5316db23d5a08353cc7f1abe2a
2016-04-22 09:18:41 +10:00
Jonathan Kew c60f6a1ae4 Bug 1266391 - Introduce an enum class mozilla::unicode::Script, and use this instead of bare integers to specify script codes for better type checking. r=masayuki 2016-04-21 18:58:59 +01:00
Jan Beich 60e6250747 Bug 1263325 - Unbreak build with libc++ and config/gcc_hidden.h after bug 1239083. r=glandium
MozReview-Commit-ID: 4y4j6o7V54D

--HG--
extra : transplant_source : %E2%27%20%2A%9Db%EE%252%AD%8F%CC%99_%C9%83%F3%ED%CD%CC
2016-04-11 11:38:54 +00:00
Masatoshi Kimura 44ae48d72a Bug 1255863 - Followup to fix an assertion. r=hsivonen 2016-04-09 17:55:40 +09:00
Ryan VanderMeulen 7543d4f06c Bug 1261190 - Skip no-NO in test_bug22310.js for Win10 failures. r=smontagu 2016-04-07 09:08:22 -04:00
Masatoshi Kimura 9696b4bdf6 Bug 1255863 - Stop using nsTableEncoderSupport subclasses in GBK/GB18030 encoders. r=hsivonen 2016-04-06 20:07:31 +09:00
Nicholas Nethercote c8c2a2bc4d Bug 1262324 (part 2) - Introduce nsUConvProp. r=emk.
This patch fixes the hack of using a trio of |const char*| pointers to
represent a property that has two strings and a length.

--HG--
extra : rebase_source : 9f603b768146a78baf9fa2b4096cccfae9f87322
2016-04-06 13:31:38 +10:00
Nicholas Nethercote 827c11faae Bug 1262324 (part 1) - Remove "locale.all" prefix from Unix charsets. r=emk.
Currently, every entry in unixcharset.properties starts with "locale.all", and
then when searching them we prepend "locale.all" to the key.

This patch removes the prefixes in both cases, and saves 4 KiB in .text in the
process.

--HG--
extra : rebase_source : 0baa9e383b53e6ee8a3a0379214bb55470a6fe6c
2016-03-24 06:33:21 +11:00
Ted Mielczarek 58e2e722d0 bug 1239083 - use moz.build files to build ICU. r=glandium,waldo
Also fixes bug 926980 - load ICU data from an archive file.

Stop invoking ICU's autoconf build system. Instead, have hand-authored
moz.build files under config/external/icu to build what we need. In addition,
we'll commit a pre-built copy of the ICU data file (currently icudt56l.dat)
under config/external/icu/data to avoid having to build ICU host tools to
generate it. config/external/icu/data also contains some assembly files
which can generate an object file containing the ICU data file contents
so that the JS shell (or standalone JS builds) can be linked directly to
the data without having to deal with the external data file. This requires
yasm or GNU as.

Various bits of packaging have been updated to account for the ICU data file.
XPCOM initialization now sets the ICU data directory so ICU can locate its
data file.

The update-icu.sh script has been modified to read the list of C/C++ source
files out of the ICU Makefiles and update `sources.mozbuild` files under
config/external/icu, as well as build a local copy of ICU using its
autoconf build system to generate the ICU data file to be committed in-tree.


MozReview-Commit-ID: 8Pfkzqt6S1W

--HG--
extra : rebase_source : 31426cddddb5543e0191059ba2f2eb069abe7727
2016-04-05 10:09:12 -04:00
Nicholas Nethercote d376f9f82e Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
do_GetAtom() is currently just a synonym for NS_NewAtom().

--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11:00
Jonathan Kew 883e90e9df Bug 1256559 - To avoid VS2013 vs 2015 issues, just cast the size_t values to unsigned and print them with %u in the debug messages here; r=khuey
--HG--
extra : rebase_source : a285239f0b600164f58eaa11189c1c2c91a5bf51
extra : histedit_source : fe5ad5b950960a3e97fb5940201d525e8c342ab6
2016-03-21 12:14:13 +00:00
Mike Hommey 0a771514a8 Bug 1256988 - Replace tests on MOZ_WIDGET_GTK with tests on MOZ_WIDGET_TOOLKIT containing gtk. r=chmanchester
But only do that for the AC_SUBST. The AC_DEFINE is still useful.
2016-03-17 06:49:44 +09:00
Nicholas Nethercote dfe9948e43 Bug 1255655 - Const-ify k{Unix,Win}Charsets and kLangGroups. r=smontagu.
--HG--
extra : rebase_source : 178ec56c7c10747b4bf7eac7cf9982fa95ee80f0
2016-03-11 12:58:17 +11:00
Gregory Szorc a3f1e3bce6 Bug 1256514 - Disable C4577 to unblock compilation on VS2015; r=poiru
As part of unblocking building with VS2015u1 in automation, I'm mass
disabling compiler warnings that are turned into errors. This is not
the preferred mechanism to fix compilation warnings. So hopefully
this patch never lands because someone insists of fixing the underlying
problem instead. But if it does land, hopefully the workaround is
only temporary. That being said, the warning occurs in 3rd party ICU
code. So I'm not sure what my options are for fixing this.

MozReview-Commit-ID: 9gOSotjaQsN

--HG--
extra : rebase_source : c1a6c51bcdd4e1a882f371e7beba4f88d5c059a4
2016-03-14 18:41:48 -07:00
Mike Hommey 406dacd54a Bug 1255763 - Remove OSTYPE define in intl/locale/unix/moz.build. r=gps
OSTYPE was removed in bug 752406.
2016-03-12 09:03:37 +09:00
Nathan Froyd 6971b769d3 Bug 1253010 - part 2 - provide a non-XPCOM way to create new nsIDateTimeFormat instances; r=smontagu
To avoid hitting the component manager from the security manager, we
need a way of creating nsIDateTimeFormat instances that don't go through
the component manager.  The only wrinkle is that these formatters are
platform-dependent.  Let's write a thin wrapper over nsIDateTimeFormat
that abstracts away the platform details.
2015-12-05 10:30:53 -05:00
Eric Rahm c3a2dbf3de Bug 1251780 - Remove unicharutil_standalone library. r=rbarker 2016-03-03 12:16:41 -08:00
Birunthan Mohanathas 9137955c65 Bug 1235261 - Part 2: Switch some uses of AutoFallibleTArray to AutoTArray. r=froydnj
This changes some function signatures to take a nsTArray<T>& instead of a
FallibleTArray<T>& because AutoTArray does not inherit from FallibleTArray.

This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-02-02 17:36:30 +02:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas 53bb27f2a4 Bug 1235261 - Part 2: Switch some uses of AutoFallibleTArray to AutoTArray. r=froydnj
This changes some function signatures to take a nsTArray<T>& instead of a
FallibleTArray<T>& because AutoTArray does not inherit from FallibleTArray.

This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-01-31 17:12:12 +02:00
Birunthan Mohanathas 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Chris Peterson 1d19e74439 Bug 1242120 - Remove switch fallthrough to avoid -Wimplicit-fallthrough warning in dom/canvas/. r=mtseng
dom/canvas/WebGLContextGL.cpp:1329:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2016-01-22 21:36:49 -08:00
Masatoshi Kimura d624addc38 Bug 1241432 - Implement GB18030-2005. r=smontagu 2016-01-22 21:32:03 +09:00
Stuart 7ae9575cc9 Bug 1220716 - Removing nsICurrentCharsetListener. r=emk 2016-01-14 14:50:27 +09:00
Jonathan Kew a3e547e385 Bug 724538 - Regenerate Unicode property data with updated script. r=emk 2016-01-13 15:45:22 +00:00
Jonathan Kew 06f42574aa Bug 724538 - When ICU is available in the build, replace most of nsCharProps2 fields with ICU property accessors. r=emk 2016-01-13 15:45:22 +00:00
Christoph Kerschbaumer e3fa4c14bf Bug 1232782 - Convert JS callsites to use open2 within intl/ (r=sicking) 2016-01-11 12:16:15 -08:00
Chris Peterson d835800c0b Bug 1235233 - Fix -Wimplicit-fallthrough warning in intl/uconv/. r=emk
intl/uconv/ucvja/nsJapaneseToUnicode.cpp:340:11 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-11-22 22:11:12 -08:00
Gordon Su 2d53a19d16 Bug 1214169 - Always use ICU in nsCollationMacUC. r=emk. 2015-12-16 17:27:44 +09:00
Jan Beich 814acd7ab8 Bug 1228208 - Make sure ICU flags are prepended before system flags. r=glandium 2015-12-02 09:40:50 +00:00
Jan Beich c0ba7bb75e Bug 1228227 - Unbreak build with libc++ and config/gcc_hidden.h after bug 1075758. r=Waldo r=glandium
--HG--
extra : rebase_source : b463943ef8ed558156a97fab4ca7fed1ea85a65a
2015-12-01 18:24:45 +00:00
Mike Hommey 2a82df055d 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 e186a30ada 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 ff91b54508 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 30966e0b67 Backed out changeset fb72e312f137 (bug 1157727)
--HG--
extra : rebase_source : ffa0070599954ddc44f682fc30d15ff87354be64
2015-11-25 15:37:03 +01:00
Ted Clancy a5ce3508aa 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 2c6805ed5d 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 ede259b626 Bug 1210165 - Tweak the update-icu script ready for release 56. r=waldo 2015-11-20 11:33:13 +00:00
Mike de Boer 760b5b8791 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 bbcedca36e 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 8f0ce84f5b 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 444a1b7d98 Bug 1221550 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in intl/; r=smontagu 2015-11-03 15:49:22 -05:00