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

1054 Коммитов

Автор SHA1 Сообщение Дата
Iris Hsiao 394f455b8e Backed out changeset c7174ac72d14 (bug 1347272) for build bustage
--HG--
extra : amend_source : b4f3d5997190ce3db799e3586131cc3cb9ce034d
2017-03-28 18:16:33 +08:00
Zibi Braniecki 70c168c03f Bug 1347272 - Move ChromeRegistry::IsLocaleRTL to LocaleService::IsAppLocaleRTL. r=jfkthame
MozReview-Commit-ID: BDhgIKNSOEL

--HG--
extra : rebase_source : 8440ae6b21887bae5142c86220f02092d1b12aed
2017-03-14 12:35:06 -07:00
Zibi Braniecki ca25902077 Bug 1347306 - Hand over language negotiation from ChromeRegistry to LocaleService. r=jfkthame
MozReview-Commit-ID: RIPZUHN4LW

--HG--
extra : rebase_source : 3011d3c9f1887c9943d6636ea959bb643644bd3e
2017-03-14 15:28:47 -07:00
Makoto Kato 7127efa43c Bug 943287 - Part 3. nsICollation fallback version for Android. r=hsivonen
Beta and release channel of Android still turn off ICU.  So we should add UTF-8 version of nsICollation for fallback.
Some people want to keep --enale-intl-api=no for faster build on developer environment, so even if non-Android, it will be required.


MozReview-Commit-ID: 3RcjqoVip1W

--HG--
rename : intl/locale/unix/nsCollationUnix.cpp => intl/locale/nsCollationAndroid.cpp
extra : rebase_source : 6844f32efe8c37b020f30bc745d4d4d8e95c4158
2017-03-23 13:43:38 +09:00
Makoto Kato 80c217bbec Bug 943287 - Part 2. Use ICU version of nsICollation on all platform. r=hsivonen
nsICollation for macOS version uses ICU, so we should use it on all platform since nightly and aurora can use ICU on all platform.

MozReview-Commit-ID: 4nTzDCjOQXJ

--HG--
rename : intl/locale/tests/unit/test_collation_mac_icu.js => intl/locale/tests/unit/test_collation.js
extra : rebase_source : 3b47f9a521e79be929bb4c39d0c68b9438075e4c
2017-03-23 13:42:49 +09:00
Makoto Kato aa97ad5859 Bug 943287 - Part 1. Rename nsCollation.cpp to nsCollationFactory.cpp. r=hsivonen
nsCollation.cpp implements nsCollationFactory and nsCollation utils classes.
To remove nsIPlatfromCharset dependency, I would like to remove nsCollaction utils class.  So at first, I would like to rename it to nsCollactionFactory.cpp. (then, nsICollation implementation will be nsCollation.cpp)

MozReview-Commit-ID: FaG3vfzi9cl

--HG--
rename : intl/locale/nsCollation.cpp => intl/locale/nsCollationFactory.cpp
rename : intl/locale/nsCollation.h => intl/locale/nsCollationFactory.h
extra : rebase_source : 25eebf52634310891d1bbcc974635b5cc4b1c402
2017-03-23 13:42:00 +09:00
Makoto Kato 4113212e91 Bug 1349855 - Remove unused nsILocale. r=emk
After landing bug 1301640, 1st parameter of nsIScriptableDateFormat.FormatDateTime() is ignored now.  So it is unnecessary to create nsILocaleService from locale parameter.

MozReview-Commit-ID: GlqC0D9shdy
2017-03-24 11:02:03 +09:00
Zibi Braniecki cb77ac3b2d Bug 1347002 - Add LocaleService::GetAvailableLocales. r=jfkthame
MozReview-Commit-ID: 99I5WgdzXlb

--HG--
extra : rebase_source : 44e1316fd90b5f28fca6feb23dfdf112e74ed7c0
2017-03-13 17:33:24 -07:00
Zibi Braniecki 9a76e90f11 Bug 1348259 - Switch nsLanguageAtomService to use OSPreferences::GetSystemLocale. r=m_kato
MozReview-Commit-ID: DvKbtrpfNJe

--HG--
extra : rebase_source : 7a62729ce4251c7cd046449c84f5072ed66cf7c9
2017-03-21 16:20:07 -07:00
Zibi Braniecki b17d737c5b Bug 1348797 - Add null-check to validTagChars test in LocaleService::NegotiateLanguages. r=jfkthame
--HG--
extra : amend_source : f6dde0867a6cf10b5b2f50c3cfcf3f383d708d28
2017-03-20 15:14:58 -04:00
Zibi Braniecki 71e93b5c82 Bug 1346611 - Introduce LocaleService::GetDefaultLocale. r=jfkthame
MozReview-Commit-ID: 8aMkbrh0SqI

--HG--
extra : rebase_source : fd05894d2fa613385bc236a0aee6ad9265e9d581
2017-03-14 13:04:59 -07:00
Makoto Kato 20cb071f24 Bug 1347431 - Skip some xpcshell tests that is failure on Android without ENABLE_INTL_API. r=snorp
Sicne some tests doesn't work with --with-intl-api=no, we should skip it on Android

MozReview-Commit-ID: IjlH3aQdiqb

--HG--
extra : rebase_source : ac6d91bf291f6268ea29bcb29180b2f5197e012c
2017-03-16 12:54:25 +09:00
Zibi Braniecki 7cb5e257c7 Bug 1346617 - Add LocaleService::SetRequestedLocales. r=jfkthame
MozReview-Commit-ID: FrziO9fOs3R

--HG--
extra : rebase_source : a2f1b5c31317c80666fbda334ea7bfcef28397b6
2017-03-12 12:34:56 -07:00
Zibi Braniecki fbfa4998fa Bug 1346819 - Port SanitizeAsBCP47 to LocaleService. r=baku,jfkthame
MozReview-Commit-ID: 2SXD5HaJPXr

--HG--
extra : rebase_source : 44404dfd577f13fde722ef5c13a29f853766786d
2017-03-13 08:31:43 -07:00
Zibi Braniecki f096c9aab9 Bug 1346674 - Migrate all uses of nsILocaleService::GetApplicationLocale to mozILocaleService::GetAppLocale. r=jfkthame
MozReview-Commit-ID: 2E7mj3yQnxB

--HG--
extra : rebase_source : 97ba5b1738b2f116ec75830ed1b23f279680035e
2017-03-12 20:39:22 -07:00
Carsten "Tomcat" Book c1edc7067d merge mozilla-inbound to mozilla-central a=merge 2017-03-13 15:22:26 +01:00
Makoto Kato 3cb0726c57 Bug 1345762 - Rename OSPreferences_unix.cpp to OSPreferences_android.cpp. r=gandalf
OSPreferences_unix.cpp is used on Android only.  So we should rename it to OSPreferences_android.cpp
Also, we should create android directory into intl/locale, then move OSPreferences_android.cpp and nsAndroidCharset.cpp into it.

MozReview-Commit-ID: 2CUbV1Yc2fu

--HG--
rename : intl/locale/unix/OSPreferences_unix.cpp => intl/locale/android/OSPreferences_android.cpp
rename : intl/locale/unix/nsAndroidCharset.cpp => intl/locale/android/nsAndroidCharset.cpp
extra : rebase_source : f677428cc899c767e784b9f2c793b84e3fd95c11
2017-03-09 16:35:27 +09:00
Makoto Kato e07ff992fd Bug 1343766 - Add DateTimeFomat without ICU for Android. r=emk
MozReview-Commit-ID: FWeBliqlXv3
2017-03-10 12:58:21 +09:00
Zibi Braniecki 76830b8830 Bug 1337694 - Add language negotiation heuristics to LocaleService. r=jfkthame
MozReview-Commit-ID: 1WjJiKgyaWA

--HG--
extra : rebase_source : 7baac37cf78599605ed274d7165ad8746626828c
2017-02-24 17:23:39 -08:00
Makoto Kato 989d78dec8 Bug 1344596 - Allow OSPreferences API without ENABLE_INTL_API. r=gandalf
Since we have to keep --with-intl-api=no setting, we allow OSPrefrences API wiout ENABLE_INTL_API.

MozReview-Commit-ID: 8sQHW6iq9Ss

--HG--
extra : rebase_source : 94e2efbeeb70f3edc519ffc9bfeaf7416ea1dc0e
2017-03-06 11:03:46 +09:00
David Major ed0b8f8653 Bug 1344615: Remove nsXPCOMStrings.{h,cpp} r=bsmedberg
These are now dead code.

MozReview-Commit-ID: AClU0Qx3kmN

--HG--
extra : rebase_source : df83cf89292da1519bb26027c11e14923d5c54a0
2017-03-06 17:52:54 +13:00
David Major 058a3a25a4 Bug 1344615: Rewrite a few straggling users of NS_String* APIs. r=bsmedberg
I've moved the body of the APIs into the few remaining callers.

MozReview-Commit-ID: 9ALoSmQHkGM

--HG--
extra : rebase_source : e0e747dec23424446b18d53ab65e4fa262e16554
2017-03-06 17:52:09 +13:00
Zibi Braniecki d0bfa17fb3 Bug 1344141 - Do not BCP47 canonicalize languages from ChromeRegistry in LocaleService. r=jfkthame
MozReview-Commit-ID: I6xMPhZRUUv

--HG--
extra : rebase_source : 3ce24ccbaba2e51715c121e343b682cd6088bda4
2017-03-03 13:31:26 -08:00
Zibi Braniecki 1618c4af60 Bug 1342753 - Use app locale in DateTimeFormat.cpp, instead of OS locale. r=m_kato
MozReview-Commit-ID: SPsNYxe493

--HG--
extra : rebase_source : b611ad61c83577ac1d42adce504ceb1b3731f59e
2017-02-27 09:36:50 -08:00
Daniel Holbert 95a650ec1b Bug 1343975: Get rid of all dos/windows linebreaks in Mozilla C++ code. r=ehsan
This is an automated patch, generated by the following command:
find . -name "*.h" -exec fromdos {} \; && \
  find . -name "*.cpp" -exec fromdos {} \; && \
  hg revert -C gfx/angle \
               gfx/sfntly \
               media/webrtc \
               media/libstagefright \
               media/openmax_il \
               other-licenses

MozReview-Commit-ID: Gunlz3vE3h6
2017-03-02 13:08:29 -08:00
Zibi Braniecki fbabbc6c00 Bug 1308329 - Extend OSPreferences API to cover date/time styles. r=jfkthame
MozReview-Commit-ID: HnuWfS8UEDH

--HG--
extra : rebase_source : 6e09bb36c1d4fe89ed22c2fc5ef8de3ff8ed484d
2017-02-08 17:17:51 -08:00
Zibi Braniecki eb0f2e4c51 Bug 1344445 - Add LocaleService::GetRequestedLocales. r=jfkthame
MozReview-Commit-ID: 76xYTKk6OHh

--HG--
extra : rebase_source : 867dd72ad280ba0ec3ffe50bd254226436d76eea
2017-03-06 13:24:45 -08:00
Sebastian Hengst 67b7f2faa5 Backed out changeset 288bc41a2ffe (bug 1344445) for bustage due to unused variable rv at LocaleService.cpp:70:14. r=backout 2017-03-11 18:58:55 +01:00
Zibi Braniecki fb5ca0e430 Bug 1344445 - Add LocaleService::GetRequestedLocales. r=jfkthame
MozReview-Commit-ID: 76xYTKk6OHh

--HG--
extra : rebase_source : 497cb0474ef414bb2690444bfa590b8f817f7392
2017-03-06 13:24:45 -08:00
Makoto Kato 797b5df988 Bug 1225696 - Part 3. Revert the order of kDateFormat. r=jorgk
MozReview-Commit-ID: A1gWYkHi28v
2017-02-24 20:33:53 +09:00
Tooru Fujisawa 8abf3f1675 Bug 1340924 - Remove Iterator consumer from intl/. r=Pike 2017-02-22 16:11:34 +09:00
Jonathan Kew 041dc3257f Bug 1341094 - Update mozILocaleService.getAppLocales to avoid use of jsapi. r=smaug 2017-02-20 21:14:25 +00:00
Makoto Kato 5ad41e1593 Bug 1225696 - Part 1. Add kDateFormatMonthLong and kDateFormatYearMonthLong to DateTimeFormat. r=emk
MozReview-Commit-ID: CT2Gzd0AEXb

--HG--
extra : rebase_source : 6b98c53f5a88e38cd19081b8a2559685a69ecc36
2017-02-20 12:47:18 +09:00
David Major 773fd87a6b Bug 1338928: Add constexpr to static data under intl/ for better codegen on Windows. r=emk
MozReview-Commit-ID: I47OgjC0K5F
2017-02-15 15:08:31 +13:00
Jonathan Kew 17fb7377be Bug 1339119 - Actually use the locale from macOS instead of throwing it away in OSPreferences::ReadSystemLocales. r=gandalf 2017-02-13 17:51:13 +00:00
Gregory Moore 65e4e6d86d Bug 1329841 - Added support into DateTimeFormat*.cpp for kDateFormatYearMonth and kDateFormatWeekday date format selectors. r=emk
MozReview-Commit-ID: 5LpCbpTUMKw

--HG--
rename : intl/locale/DateTimeFormatICU.cpp => intl/locale/DateTimeFormat.cpp
extra : rebase_source : e1f49db15578be0e3578da7c0b44898befc3dfae
2017-02-08 14:08:30 -08:00
Jonathan Kew 2f76f2869c Bug 1336281 followup - Unify the JS-callable and C++-only versions of LocaleService::GetAppLocale, and declare it as a read-only attribute in IDL. r=gandalf 2017-02-08 21:12:16 +00:00
Jonathan Kew 928fbd7db2 Bug 1337129 - Fix up #include paths used in unit tests for new intl services. r=gandalf 2017-02-08 21:12:14 +00:00
Wes Kocher 95ae929bd7 Merge m-c to autoland, a=merge
MozReview-Commit-ID: AY7XekuIyIs
2017-02-07 16:56:19 -08:00
Zibi Braniecki b8f991e41b Bug 1335983 - Migrate nsCollation::CreateCollection to use LocaleService::GetAppLocale. r=jfkthame
MozReview-Commit-ID: 5GEnL7Kihpj

--HG--
extra : rebase_source : 413d880035b49da82db0530379425d31ac31a82e
2017-02-07 12:52:03 -08:00
Gregory Moore d394752f2f Bug 1331466 - Added functionality to FormatPRExplodedTime to take into account timezone information given in the PRExplodedTime parameter. r=emk
MozReview-Commit-ID: HsRi1Uwfdgq

--HG--
extra : rebase_source : fdbc52677e3d946990f95229f36915436b4d743a
extra : amend_source : b307a9b67f171c23a691bb0d561475efbcc984aa
2017-02-06 14:02:38 -08:00
Carsten "Tomcat" Book 092e5dc5f1 merge mozilla-inbound to mozilla-central a=merge 2017-02-07 14:08:46 +01:00
Makoto Kato 64e728ef62 Bug 1336879 - Use Vista+ API directly for nsWin32Locale. r=emk
MozReview-Commit-ID: FaPCetrI8JZ
2017-02-07 10:47:41 +09:00
Zibi Braniecki 6d4115599f Bug 1336281 - Expose mozILocaleService. r=jfkthame
MozReview-Commit-ID: 3fTtad7tAg6

--HG--
extra : rebase_source : ae108187419d7b5698899cebe1ddb7aae46ae156
2017-02-05 12:29:39 -08:00
Zibi Braniecki 1aa7bc8b32 Bug 1333184 - Introduce OSPreferences API. r=jfkthame
MozReview-Commit-ID: ALvLGtBmRgn

--HG--
extra : rebase_source : fb237beec41e7b93eeac862be285074acfc36a77
2017-02-05 11:41:43 -08:00
Zibi Braniecki da241c5563 Bug 1332207 - Introduce mozilla::intl::LocaleService. r=jfkthame
MozReview-Commit-ID: AV1bvCt6tmP

--HG--
extra : rebase_source : 1951fbecf24d991d204c0bf00de3336878886df1
2017-01-25 15:58:14 -08:00
Wes Kocher a9ce32d9a5 Backed out 2 changesets (bug 1335983) for build bustage a=backout
Backed out changeset 5a9559ded976 (bug 1335983)
Backed out changeset de2b0d90e2da (bug 1335983)

MozReview-Commit-ID: 377KQDU1QqJ
2017-02-07 12:34:30 -08:00
Zibi Braniecki 6d98bad59d Bug 1335983 - Migrate nsCollation::CreateCollection to use LocaleService::GetAppLocale. r=jfkthame
MozReview-Commit-ID: bJVrVj2dAS

--HG--
extra : rebase_source : f3a28e003415f0c58462a73b5fd987455e102fc5
2017-02-06 14:57:09 -08:00
Makoto Kato d2e954db28 Bug 1332565 - Turn off test_intl_on_worker.js test on Android's xpcshell. r=Waldo
MozReview-Commit-ID: HoZ7KvSsTix
2017-01-20 17:07:35 +09:00
Mark Banner 16e6d381ac Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ

--HG--
extra : rebase_source : daa8efb3409031fea553f4fd0c9d0746e38dc308
extra : histedit_source : b4c23aacf678ba0d0ac9c09191a7c494ead11a08
2017-01-18 10:30:39 +00:00
Gregory Moore c337ff9019 Bug 1301640 - Replaced per-platform variants of nsIDateTimeFormat with single, ICU-backed version that has static c++ callers. r=emk
Also removed unused format selectors and removed option to pass in a locale. Changed all callers to use new version.

MozReview-Commit-ID: Gq0b1c3C1eO

--HG--
rename : intl/locale/unix/nsDateTimeFormatUnix.cpp => intl/locale/DateTimeFormatUnix.cpp
extra : source : 7e747433d1c9fae8a0acb4090f61335fcc165e4c
2016-11-21 15:58:37 -08:00
Masatoshi Kimura a473040cee Backed out changeset 7e747433d1c9 (bug 1301640) for causing bug 1325751. r=backout
MozReview-Commit-ID: GEYAveO6sUj
2016-12-25 10:43:04 +09:00
Gregory Moore fc8f05853a Bug 1301640 - Replaced per-platform variants of nsIDateTimeFormat with single, ICU-backed version that has static c++ callers. r=emk
Also removed unused format selectors and removed option to pass in a locale. Changed all callers to use new version.

MozReview-Commit-ID: Gq0b1c3C1eO

--HG--
rename : intl/locale/unix/nsDateTimeFormatUnix.cpp => intl/locale/DateTimeFormatUnix.cpp
extra : rebase_source : 54d8cfd01edce5f0a78c8b5c6eb89a245c12af01
2016-11-21 15:58:37 -08:00
Sebastian Hengst b546cd8468 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: intl. r=RyanVM
MozReview-Commit-ID: 6jNipDaL7br

--HG--
extra : rebase_source : 9186ab26dfc74cb2c4dbb24e5cb7279d6a8b33c2
2016-11-05 11:29:19 +01:00
Jonathan Kew 22a661f150 Bug 1301655 - pt 9 - Update test_bug22310.js to remove use of nsIScriptableDateFormat. r=gandalf 2016-10-28 12:04:07 +01:00
aceman c52dc70005 Bug 1303466 - Export nsUConvPropertySearch.h so it can be found for dom/encoding/Unified_cpp_dom_encoding0.cpp. r=hsivonen
--HG--
extra : rebase_source : f45c2f7429b192926f3ed528c401b7d0fae6f977
2016-09-16 15:38:00 -04:00
Sylvestre Ledru 0d42c61ec9 Bug 1306509 - Fix a build error with -Werror=unused-variable r=njn
MozReview-Commit-ID: 4mFbamoWjoR

--HG--
extra : rebase_source : c2bc212e5a2c836576db316cb3bddc06b9f631e9
2016-09-29 18:34:03 -05:00
Arthur Edelstein 215601494b Bug 1174386 - Make workers inherit the default Intl locale from the main thread, rather than using a bogus fallback value. r=jwalden, r=baku
--HG--
extra : rebase_source : 09f66db9914cdf865388669082f3efaca37ce558
2016-08-08 13:33:39 -07:00
Igor 175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Jeff Walden 5a875fc573 Backed out changeset c3f06ba15fda -- worker setup isn't happening quite as early as it was assumed to occur, so we have impermissible cross-thread happenings occurring sometimes. r=three-to-five-oranges-per-push-per-philor 2016-08-08 19:43:15 -07:00
Arthur Edelstein 099e7246db Bug 1174386 - Make workers inherit the default Intl locale from the main thread, rather than using a bogus fallback value. r=jwalden 2016-08-08 13:33:39 -07: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
Kit Cambridge edd0c6d29f Back out 2 changesets (bug 1174386) for mochitest and xpcshell bustage.
Backed out changeset 71634609bbaf (bug 1174386)
Backed out changeset 9726b95aadf6 (bug 1174386)

MozReview-Commit-ID: CBB0CFQSjQu
2016-07-13 09:41:34 +02:00
Carsten "Tomcat" Book 0dd9cf8167 Backed out changeset 37aed188b674 (bug 1174386) unexpected pass in 576878.xhtml 2016-07-13 09:24:09 +02:00
Kit Cambridge 6bb5701fc8 Back out 2 changesets (bug 1174386) for mochitest and xpcshell bustage.
Backed out changeset 71634609bbaf (bug 1174386)
Backed out changeset 9726b95aadf6 (bug 1174386)

MozReview-Commit-ID: CBB0CFQSjQu

--HG--
extra : amend_source : 612af0b1385f6f2cfdcae3918b03ab297f1f7d78
2016-07-12 21:33:29 -07:00
Nicholas Nethercote a913f99107 Bug 1285554 - Remove remnants of widget/qt. r=dougt,mshal.
Because bug 1282866 removed Qt support but missed a bunch of things.
* * *
Bug 1285554 - more

--HG--
extra : rebase_source : c48d2485f1fdf1c961e08d91651bbca41e3a1a53
2016-07-12 09:16:45 +10:00
Arthur Edelstein 214a38a3e8 Bug 1174386 - Make workers inherit the default Intl locale from the main thread, rather than using a bogus fallback value. r=jwalden
--HG--
extra : rebase_source : bb58c75416d4942affef3617ec427b2745261cf3
2016-07-11 18:57:25 -07: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
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Makoto Kato 40d86ab615 Bug 1268336 - Don't generate unixcharset.properties.h on Android build. r=mshal
Since Android build doesn't compile nsUNIXCharset.cpp, it is unnecessary to generate this header file.

MozReview-Commit-ID: 7JgepIN8s93

--HG--
extra : rebase_source : 5373832a05d41c73bd419a071a9ca87a092c6381
2016-05-16 17:09:29 +09: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
Makoto Kato ca9ba56b72 Bug 1269246 - Remove unnecessary PromiseFlatString. r=hsivonen
MozReview-Commit-ID: HMZfLqE0RXn
2016-05-02 14:30: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
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
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
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
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
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 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02: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
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
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
Nathan Froyd 444a1b7d98 Bug 1221550 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in intl/; r=smontagu 2015-11-03 15:49:22 -05:00
Nathan Froyd 01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Aniket Vyas 9f9f485704 Bug 1197309 - remove PR_snprintf calls in intl/; r=froydnj 2015-10-15 21:43:53 -04:00
Carsten "Tomcat" Book 08997000eb 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 e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -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
Shu-yu Guo 64db2267cf 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 a5644ff815 Bug 912470 part 1 - Implement Encoding Standard-compliant big5 decoder. r=emk. 2015-06-16 15:26:10 +03:00
Phil Ringnalda 354efcb7fe 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 93e9ac505d Bug 912470 part 1 - Implement Encoding Standard-compliant big5 decoder. r=emk. 2015-06-16 15:26:10 +03:00