Commit Graph

353 Commits

Author SHA1 Message Date
Nathan Froyd
d66cf7dc03 Bug 796119 - part 2: don't #include prtypes.h in xpcom/ unless absolutely necessary; r=ehsan
"absolutely necessary" in this context means "needs PRUnichar", which is
the reason that nsString.h now #includes prtypes.h.
2012-10-01 17:01:01 -04:00
Ed Morley
52216acaf5 Backout 16ae4d5d27d7 for mochitest-other failures in test_mousescroll.xul 2012-10-02 17:38:49 +01:00
Vladimir Vukicevic
57bcf02a8d b=731974, requestAnimationFrame generates too short/long frames; r=bz,smaug,roc 2012-10-02 10:54:46 -04:00
Isaac Aggrey
e496b51126 Bug 795351: Replace LL_MAXINT, LL_MININT, LL_MAXUINT with stdint versions; r=ehsan 2012-09-28 14:55:23 -05:00
Isaac Aggrey
997db4d142 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Nathan Froyd
f7c99ce3fe Bug 792169 - introduce better, safer constructors for nsArray; r=bsmedberg 2012-09-21 12:12:32 -04:00
Ehsan Akhgari
6253cefbc6 Bug 784859 - Part 6: Remove the need for locking in all calls to TimeStamp::Now; r=bbondy 2012-09-08 14:13:17 -04:00
Ehsan Akhgari
e79ffee873 Bug 784859 - Part 5: Change the implementation of GetTickCount64Fallback so that it never locks; r=bbondy 2012-09-06 11:01:06 -04:00
Ehsan Akhgari
8404b33a6a Bug 784859 - Part 4: Use the native GetTickCount64 function where available; r=bbondy 2012-09-08 14:12:34 -04:00
Ehsan Akhgari
fa352821c8 Bug 784859 - Part 3: Refactor TickCount64 to make its signature similar to GetTickCount64; r=bbondy 2012-09-08 14:12:14 -04:00
Ehsan Akhgari
a3bc31597e Bug 784859 - Part 2: Avoid locking to store the computed result in the global variable in CalibratedPerformanceCounter; r=bbondy 2012-09-06 11:01:06 -04:00
Ehsan Akhgari
813695d719 Bug 784859 - Part 1: Use QueryPerformanceCounter directly if the machine has a stable TSC; r=bbondy 2012-09-06 11:01:06 -04:00
Ehsan Akhgari
c87c3701f1 Bug 788014 - Part 2: Reduce the inclusion of prtypes.h in the tree to help using stdint types; r=jrmuizel
--HG--
extra : rebase_source : 66b3b6b9858fb032bebcc070347f781bdf61770c
2012-09-06 17:54:59 -04:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Landry Breuil
994eaecaee Bug 785738 Part 1: Use INT64_MAX/MIN instead of LL_MAXINT/MININT constants. r=ehsan 2012-08-30 09:10:26 +02:00
Joe Olivas
2f86f8951b Bug 786789 - Optimize TimeDuration::ToSeconds on Windows to avoid blocked store forwards; r=ehsan 2012-08-29 21:09:01 -04:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Kyle Huey
31fc8217c9 Bug 774888: Error out if there's no TimeStamp implementation. r=glandium 2012-08-18 12:15:22 -07:00
Ms2ger
3f950b5744 Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg 2012-08-09 09:09:40 +02:00
Aryeh Gregor
e5f7097bbc Bug 780832 - Make nsSupportsArray::GrowArrayBy infallible. r=dougt 2012-08-07 11:21:38 +03:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
David Zbarsky
1ab8257975 Bug 706179 Part 1: Add support for animations to the Layers API r=roc, dbaron, cjones 2012-07-31 10:28:20 -07:00
Ryan VanderMeulen
ed3645f4ca Merge m-c to inbound. 2012-07-30 20:14:22 -04:00
Mark Finkle
70a01196ec Backout 169ff207ed19, a34baed70c1b, f9ccdd490bd7, 39550ed860e6, 2194a2dd66b2, 908eb2e26843, a76e0a267f26 due to mobile viewport bustage (bug 778580) 2012-07-30 14:36:12 -04:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Ehsan Akhgari
b40b21d633 Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
7644f69a87 Bug 777292 - Cast NS_ENUMERATOR_FALSE to nsresult and complain in comments; r=ehsan 2012-07-27 17:03:25 +03:00
Aryeh Gregor
96fc9d649c Bug 777292 - Annotate some incorrect conversions to nsresult; r=ehsan 2012-07-27 17:03:25 +03:00
David Zbarsky
12752872fe Bug 706179: Add support for animations to the Layers API r=roc, dbaron, cjones 2012-07-27 13:23:44 -07:00
Ed Morley
be8bf4beae Backout 1244b8a8e57a (bug 755084), 32d16d0f87c9 (bug 706179), 8548e016d4a9 (bug 768440), 697f5b87eae9 (bug 768440), 808fc2bd4e8c (bug 755084), 54b1484cd125 (bug 755084), 876726b632c0 (bug 706179) for xul android R3 failures 2012-07-25 16:37:04 +01:00
David Zbarsky
2008ff368b Bug 706179: Add support for animations to the Layers API r=roc, dbaron, cjones 2012-07-25 01:48:09 -07:00
Matt Brubeck
2e41f92cb5 Back out f4f5189b1d0c, 3b4f0606c547, b8a5a1ab8a5f, 5078933d6954, 7e0260c45de9 (bug 768440, bug 755084, bug 706179) because of reftest failures 2012-07-23 20:25:51 -07:00
David Zbarsky
dfd3e3d5ba Bug 706179: Add support for animations to the Layers API r=roc, dbaron, cjones 2012-07-23 17:34:22 -07:00
Joshua Cranmer
4b8f318e78 Bug 773637 - Kill NS_SCRIPTABLE annotations, Part 1: Remove NS_*PARAM annotations. r=ehsan
--HG--
extra : rebase_source : a0b4bc50fece36d9a90fed61431635948bfa33b5
2012-07-06 15:14:07 -05:00
Mounir Lamouri
3b0b1234f1 Bug 767519 - Add NS_flooredModulo to nsMathUtils. r=bz
--HG--
extra : rebase_source : d16e5d8e94a50c1e3319d866e3aa27ae6160edd8
2012-07-05 16:18:37 +02:00
Nathan Froyd
88be55d049 Bug 765326 - atom-table numbers should include the static atom table; r=njn 2012-06-15 15:51:42 -04:00
Ehsan Akhgari
ddcea4e3b7 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (XPCOM parts); r=bsmedberg 2012-06-05 19:51:58 -04:00
Shriram Kunchanapalli
372a1fb214 Bug 760162: Remove obsolete comment about nsCRT::mem* functions in nsCRT.h; r=dougt f=sgautherie 2012-06-06 13:19:08 +01:00
Geoff Lankow
00f3a215c9 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Shriram Kunchanapalli
52a4aa2063 Bug 743581: Removes nsCRT::strlen(const PRUnichar*). f=sgautherie r=dougt 2012-05-30 18:43:39 +01:00
Tim Abraldes
6a9acb3da8 bug 752756. Read UTF-16le and UTF-8 BOMs in nsINIParser on Windows. Add parameter to nsIINIParserWriter::writeFile() specifying the charset of the file (BOM will be written). r=bsmedberg 2012-05-23 10:09:10 -07:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benjamin Smedberg
4f91700da9 Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Robert Longson
6449306e50 Bug 756404 - Address post-landing review comments from bug 512525. r=jwatt 2012-05-18 11:41:30 +01:00
Robert Longson
3d82caf05b Bug 512525 - Implement SVG Fragment Identifier parsing and animation hyperlinking - Part 2 main implementation. r=jwatt 2012-05-17 11:02:41 +01:00
Benoit Jacob
17b0e7f92d Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Benoit Jacob
d8e93df7c7 Bug 732875 - 7/8 - CheckedInt pre-move-to-MFBT fixes - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
13a9a42e75 Bug 732875 - 6/8 - switch CheckedInt to consistently using bool - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
e35b282c60 Bug 732875 - 5/8 - update CheckedInt docs - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
ef47f45090 Bug 732875 - 4/8 - CheckedInt: make nonstandard features optional - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
3ee7ede282 Bug 732875 - 3/8 - update CheckedInt typedefs - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
a7fef72412 Bug 732875 - 2/8 - Let CheckedInt support the 3 families of integer types: stdint, standard integer types, and PR types - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
9d830b49fa Bug 732875 - 1/8 - switch CheckedInt to support stdint types instead of PR int types - r=jwalden 2012-05-14 15:50:19 -04:00
Ed Morley
8b2dbc3dca Backout 345ae68f15f4, b3b40121ac8d, 0d18b7a246d7, 9dbb6064ab58, dee9d7fa8eb6, 63eec6bfa948, 323c6be7cfe8 & f4aac7523a48 (bug 732875) for compilation failures 2012-05-14 21:05:24 +01:00
Benoit Jacob
8fbc0a34da Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Benoit Jacob
18f6630abb Bug 732875 - 7/8 - CheckedInt pre-move-to-MFBT fixes - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
9554e87017 Bug 732875 - 6/8 - switch CheckedInt to consistently using bool - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
3c6ce6e2f6 Bug 732875 - 5/8 - update CheckedInt docs - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
f0ec7cfbf8 Bug 732875 - 4/8 - CheckedInt: make nonstandard features optional - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
4ae76344fa Bug 732875 - 3/8 - update CheckedInt typedefs - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
c27e71b298 Bug 732875 - 2/8 - Let CheckedInt support the 3 families of integer types: stdint, standard integer types, and PR types - r=jwalden 2012-05-14 15:50:19 -04:00
Benoit Jacob
1ff98a1da2 Bug 732875 - 1/8 - switch CheckedInt to support stdint types instead of PR int types - r=jwalden 2012-05-14 15:50:19 -04:00
Jeff Muizelaar
3fb566b90d Bug 751727. Remove NSPR TimeStamp implementation. r=roc
PR_IntervalNow() is not necessarily monotonic and so we shouldn't be using it
for implementing TimeStamp, especially now that it is exposed to web content
(Bug 539095).

Furthermore, it seems that the nspr implementation is being used
unintentionally on some platforms. For example, we used to use it on Android
and just now I see that it is being used in FF12 on Ubuntu.

--HG--
extra : rebase_source : cacc7f2c1d614631b93768e5979cc0820db46d54
2012-05-04 01:17:55 -04:00
Shriram Kunchanapalli
bb6f3e9ec6 Bug 150073 - Remove nsCRT:: in nsCRT::strlen(const char *). r=dougt 2012-02-18 19:17:01 +05:30
Andrew McCreight
528a282d03 Bug 737075 - unmark gray strongly held observers implemented in JS. r=bsmedberg, smaug 2012-04-30 12:01:11 -07:00
Nicholas Nethercote
228e65798f Bug 747803 - Remove NS_SIZE_IN_HEAP. r=bz. 2012-04-19 14:15:23 +10:00
Patrick Wong
30fd6e9e6a Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar 2012-04-24 14:43:00 -04:00
Ryan VanderMeulen
095958dc8d Backout 48213b973bfb (bug 695515) due to suspected OSX orange. 2012-04-24 20:51:53 -04:00
Anant Narayanan
2829aaa288 Bug 695515 - Remove last use of memmem. r=khuey 2012-04-24 08:21:12 -07:00
Ryan VanderMeulen
e30ff35d31 Backout 17deb5f61b4d (bug 150073) due to build bustage. a=shouldausedtryfirst 2012-04-03 20:22:42 -04:00
Shriram Kunchanapalli
05c95fc3b7 Bug 150073 - Remove nsCRT:: in nsCRT::strlen. f=sgautherie, r=dougt 2012-02-18 19:17:01 +05:30
Mark Capella
38934b4912 Bug 712936 - Convert users of PR_STATIC_ASSERT to MOZ_STATIC_ASSERT. r=jwalden 2012-04-02 17:21:24 -07:00
Peter Van der Beken
5b56e246af Add include guards to nsVariant.h. No bug. r=bz. 2012-03-29 13:18:32 -07:00
Justin Lebar
0dbaf73150 Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
--HG--
extra : rebase_source : 6fa267a89878cc1a766d8618569debcea9b12e48
2012-03-12 18:53:18 -04:00
Jacob Holzinger
acfe99c129 Bug 696242 - Convert NS_RegisterStaticAtoms and nsCSSScanner::ReportUnexpectedParams to take an array-reference rather than a pointer and length, making it impossible to pass a pointer/length that are inconsistent. r=jwalden
--HG--
extra : rebase_source : 882b5b4d500b1fa242c0a3cfa3084e4171cbaa9d
2012-03-08 18:22:57 -08:00
Nathan Froyd
4cd89227bb Bug 730825 - Part 2: remove nsDoubleHashtable.h; r=bsmedberg 2012-03-02 09:52:26 -05:00
Justin Lebar
5816447226 Bug 729952 - Part 2: Use a better hash function in nsCRT, nsTHashtable, and pldhash. r=bz 2012-03-02 17:20:44 -05:00
Justin Lebar
b682bbe4a5 Bug 731789 - Rename mfbt/StdInt.h to mfbt/StandardInteger.h, so stdint types work from cpp files inside mfbt. r=waldo 2012-02-29 22:56:43 -05:00
Boris Zbarsky
e4551269c3 Bug 730414 followup comment to address review comments 2012-02-29 21:44:02 -05:00
Boris Zbarsky
0b7f09aca1 Bug 730414. Expose a quick way to get a hash key for an atom. r=bsmedberg 2012-02-29 21:40:51 -05:00
Nathan Froyd
394b88c410 Bug 700659 - Delete nsHashSets code. r=bsmedberg 2012-02-27 11:26:58 -05:00
Nathan Froyd
e37b12ca9b Bug 722689 - remove nsHashSets from nsCheapSets; r=bsmedberg 2012-02-10 11:30:40 -08:00
aceman
4dafee9c7c Bug 406336 - Fix indexOf and enumerate documentation. r=benjamin 2012-02-22 14:05:23 +01:00
Robert O'Callahan
d7020ffbe7 Bug 727695. Add TimeDuration::FromMicroseconds. r=cjones 2012-02-19 21:53:40 +13:00
Nicholas Nethercote
a7ad4ef70e Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Andrew McCreight
8a73fee0b0 Bug 720292 - add more cycle collector edge names. r=smaug 2012-01-23 15:25:53 -08:00
Nicholas Nethercote
b75befa8ee Bug 715770 (part 3) - Remove nsRecyclingAllocator. r=bsmedberg. 2012-01-17 17:29:52 -08:00
Daniel Holbert
4358375b16 Bug 679832 followup: Use StdInt.h-provided intptr_t to let nsCheapSets int-to-void* cast be cross-platform. r=bsmedberg 2012-01-12 17:01:18 -08:00
Jeff Walden
35274f19bf Bug 716112 - Add an optional second argument to MOZ_ASSERT to allow explanations to accompany assertions, if desired. r=cjones
--HG--
extra : rebase_source : a6be7ef89c91a58df489057ca4ea67791b6881a0
2012-01-06 15:51:27 -06:00
Daniel Holbert
27309ebef6 Bug 679832: In nsCheapSets, cast 32-bit value to intptr_t before converting it to 64-bit void*, to silence GCC 4.6 warning. r=bsmedberg 2012-01-11 12:45:55 -08:00
Joe Drew
968e1ea0b4 Bug 717047 - Use <cmath> instead of math.h in nsMathUtils.h. r=bjacob
--HG--
extra : rebase_source : 4062a696008f27124c477367b043bc0f1d96710e
2012-01-10 18:04:12 -05:00
Brian R. Bondy
54527b0e1a Bug 481815 - Provide a Windows service for silent updates. r=rstrong. 2012-01-04 23:19:14 -05:00
Jeff Walden
78a88c9865 Bug 714572 - Fix nearly all clang warnings building image/. r=bholley
--HG--
extra : rebase_source : 585983448ac6dae86d309530d5ddbda856bdcfa9
2012-01-02 14:23:41 -06:00
Jeff Muizelaar
3868ab3810 Bug 714649. Make ExpirationTrackerObserver final. r=roc
This deals with the warning about virtual destructors and will probably let us
devirtualize the call to ->Destroy()
2012-01-02 12:23:00 -05:00
Jeff Muizelaar
87d4795188 Bug 711491. Add a StringBuilder class. r=bgirard
--HG--
extra : rebase_source : ff726c89f01ca985167e7b0e7a45f6ef86cc27e6
2011-12-16 08:53:30 -05:00
Nicholas Nethercote
b81726077d Bug 712835 (part 3 of 3) - Move AtomImpl and PermanentAtomImpl out of the header. r=khuey.
--HG--
extra : rebase_source : d3fafaa3582faa1642b146d06fe0dfc457639e0a
2011-12-22 17:24:44 -08:00
Nicholas Nethercote
f6824360d3 Bug 712835 (part 2 of 3) - Add a memory reporter for the nsAtomTable. r=khuey.
--HG--
extra : rebase_source : 3c934649d072e0d519c905cb8baf49b12bce0312
2011-12-22 17:24:43 -08:00
Jeff Walden
9110dc5c3b Bug 712129 - Implement MOZ_STATIC_ASSERT and MOZ_STATIC_ASSERT_IF. r=luke 2011-12-19 16:58:30 -05:00
Jeff Walden
d58b48ade0 Bug 711799 - Add MOZ_FINAL a bunch of places to silence Clang warnings. r=dbaron
--HG--
extra : rebase_source : e87978380d0821746e7df78dfacc7e381aefccb3
2011-12-17 22:47:45 -05:00
Matt Brubeck
62cc037b2e Back out bcf9ce858829 and a3bade82ac92 (bug 711799) for build failures 2011-12-19 10:43:08 -08:00