Commit Graph

730 Commits

Author SHA1 Message Date
Kan-Ru Chen
f21980e3e5 Bug 1081858 - Part 2. Add EastAsianWidthFWH data from Unicode's EastAsianWidth.txt to nsUnicodeProperties for builds without ICU. r=jfkthame
MozReview-Commit-ID: EOtAPx5ZY1U
2016-10-26 19:15:27 +08:00
Jonathan Kew
3a650cc4a5 Bug 1312440 - Remove (unused) paired bracket data from our Unicode property tables when ICU is available. r=emk 2016-10-26 09:40:20 +01:00
Phil Ringnalda
93eb57bc06 Backed out 5 changesets (bug 1081858) for Android line-breaking reftest failures
Backed out changeset ac6306117c61 (bug 1081858)
Backed out changeset d9e96e907d0a (bug 1081858)
Backed out changeset 0dd35a1f895f (bug 1081858)
Backed out changeset ba420f595902 (bug 1081858)
Backed out changeset 44f9c7e8d124 (bug 1081858)

MozReview-Commit-ID: LV4YOozX3Ol
2016-10-25 20:38:20 -07:00
Kan-Ru Chen
ee45259740 Bug 1081858 - Followup, initialize nsCharProps2 properly. on a CLOSED TREE r=bustage
MozReview-Commit-ID: 2NHBuOsceOL
2016-10-26 09:28:41 +08:00
Kan-Ru Chen
7366a10541 Bug 1081858 - Part 4. Implement segment break transformation rules. r=jfkthame
MozReview-Commit-ID: BcOm4LVWGzW
2016-10-26 08:37:04 +08:00
Kan-Ru Chen
62f72040da Bug 1081858 - Part 3. Implement IsEastAsianWidthFWH using ICU or nsUnicodeProperties data. r=jfkthame 2016-10-26 08:37:04 +08:00
Kan-Ru Chen
3c0597029f Bug 1081858 - Part 2. Add EastAsianWidthFWH data from Unicode's EastAsianWidth.txt to nsUnicodeProperties for builds without ICU. r=jfkthame
MozReview-Commit-ID: EOtAPx5ZY1U
2016-10-26 08:37:03 +08:00
Dhanesh B. Sabane
a2ef7b10a8 Bug 1308137 - Remove code around IBMBIDI_SUPPORTMODE_*. r=xidorn
MozReview-Commit-ID: 96g2DBfpfX9

--HG--
extra : rebase_source : e8a299ab8ca6af6e93cf29ab9351282076e2aa1d
2016-10-16 18:05:17 +05:30
Jonathan Kew
db16886be0 Bug 728180 - Use ICU normalization functions to implement nsUnicodeNormalizer when ENABLE_INTL_API is defined, in place of our obsolete/unmaintained normalization code. r=emk 2016-09-29 12:27:50 +01:00
Jonathan Kew
594fdb205d Bug 1305700 - pt 3 & 4 - Clean up/simplify use of ENABLE_INTL_API conditionals in nsUnicodeProperties (code rearrangement, no change in behavior). r=m_kato 2016-09-28 10:52:51 +01:00
Jonathan Kew
7f21325a4a Bug 1305700 - pt 1 & 2 - Exclude case mappings from nsUnicodePropertyData.cpp, and use ICU case mappings instead of our own table when building with ENABLE_INTL_API. r=m_kato 2016-09-28 10:47:05 +01:00
Xidorn Quan
73cb8d2d09 Bug 898984 - Part 2: Support surrogate pair in XUL cropped element. r=jfkthame 2013-08-11 03:41:00 +09:00
Xidorn Quan
8c11d66ab2 Bug 898984 - Part 1: Add ClusterReverseIterator in nsUnicodeProperties. r=jfkthame 2013-08-11 03:37:00 +09:00
Jonathan Kew
e45cb1544d Bug 1296050 - When checking whether bidi resolution is needed, ignore Unicode directional-control characters that do not actually introduce right-to-left-ness. r=xidorn 2016-09-05 14:15:32 +01:00
Igor
175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Nicholas Nethercote
bab6d17ebf Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.

--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Xidorn Quan
76db18facb Bug 1284406 part 3 - Export ICU headers in include/unicode. r=glandium
MozReview-Commit-ID: FuwAgEGjhxm

--HG--
extra : source : c07ceab42b47b18a1e8d436e7c888bdd113575fa
2016-07-20 15:00:13 +10:00
Xidorn Quan
17ee95ed83 Bug 1284406 part 1 - Move warning suppression of C4577 to global level. r=glandium
MozReview-Commit-ID: 66TD5A3L73D

--HG--
extra : source : e35f507952ccb081e77d5ba78c1b0d2ed566ac73
2016-07-20 15:00:13 +10:00
Benjamin Smedberg
bf05496a83 Bug 1282866 - remove widget/qt and other supporting QT code, r=dougt. This patch does not remove all of the checks for MOZ_WIDGET_QT (which are dead code), but that will be a followup mentored bug.
MozReview-Commit-ID: EGqHHhCD7vD

--HG--
extra : rebase_source : a4b9593959dd3ba80189db47eabb056ea207490f
extra : amend_source : a744d833693f0fe7adbea961c00bb5fb55a91580
2016-07-07 12:14:25 -04:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Chris Peterson
353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07: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
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
Eric Rahm
c3a2dbf3de Bug 1251780 - Remove unicharutil_standalone library. r=rbarker 2016-03-03 12:16:41 -08: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
Jan Beich
814acd7ab8 Bug 1228208 - Make sure ICU flags are prepended before system flags. r=glandium 2015-12-02 09:40:50 +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
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
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
Aniket Vyas
9f9f485704 Bug 1197309 - remove PR_snprintf calls in intl/; r=froydnj 2015-10-15 21:43:53 -04:00
Simon Montagu
5e7980e26f Bug 1201468: Map UErrorCode to nsresult, r=jfkthame 2015-10-06 02:59:00 -07:00
Chris Peterson
71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Nicholas Nethercote
98d9b76132 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.

--HG--
extra : rebase_source : 7fcbb06ca94b93bab4b75f6701b7f8a4838f1767
2015-09-10 08:01:24 -07:00
Makoto Kato
0763e5826f 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
544d70a000 Bug 1170072 - Part 1. Make GetCharProps1 as static function. r=jfkthame 2015-09-07 11:54:46 +09:00
Jonathan Kew
e681e88f6d Bug 1201533 - Remove the GetEastAsianWidth API and its supporting character-property data. r=smontagu 2015-09-06 19:39:49 +01:00
Nicholas Nethercote
f44287005f 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.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Makoto Kato
a0118a68d2 Bug 1175413 - Cleanup usages of MOZ_ICU_CFLAGS. r=mshal 2015-07-23 09:53:48 +09:00
Simon Montagu
04f33e7cf4 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
824a27884c Bug 1183209 patch 2: update data generation tools to Unicode 8, r=jfkthame 2015-07-15 05:55:09 -07:00
Kartikaya Gupta
9ccb6bc5e1 Bug 1169433 - Remove UnicharSelfTest and turn NormalizationTest into a gtest. r=glandium,smontagu 2015-06-04 13:44:55 -04:00
Mike Hommey
ea7750bcb1 Bug 991983 - Define SOURCES as SourcePath. r=gps 2015-05-28 07:34:15 +09:00