Commit Graph

36 Commits

Author SHA1 Message Date
Benoit Jacob
2e1ef0025a Bug 1004098 - Make nsTArray use size_t in its interface (32bitness is fine as an internal detail) - r=froydnj, sr=bsmedberg 2014-05-08 21:03:35 -04:00
Arpad Borsos
11f28b0265 Bug 493701 - part 1: add nsTObserverArray::BackwardIterator; r=bzbarsky
--HG--
extra : rebase_source : cb875dcd70b76b819abb1d516db74e55a3babd54
2013-12-10 13:28:31 +01:00
Randell Jesup
86cd5daff6 Bug 940329: avoid warnings from using size_t in ImplCycleCollectionTraverse() r=ehsan 2014-04-27 00:29:18 -04:00
Chris Peterson
4b2389ff01 Backed out changeset 18034a2d0732 (bug 940329) for build bustage 2014-04-26 23:11:47 -07:00
Randell Jesup
000c46808d Bug 940329: avoid warnings from using size_t in ImplCycleCollectionTraverse() r=ehsan 2014-04-27 00:29:18 -04:00
Nathan Froyd
5e810ecabe Backout f615a0532971:154fb9a9e0bc (bug 493701) for Cpp bustage 2014-04-26 13:12:10 -04:00
Arpad Borsos
8bb9ef822b Bug 493701 - part 1: add nsTObserverArray::BackwardIterator; r=bzbarsky
--HG--
extra : rebase_source : cf37f9cf8ee8a4198741eea69d0fcedef64053fc
2013-12-10 13:28:31 +01:00
Catalin Iacob
4f03e5bb1a Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02:00
Trevor Saunders
e49a019dfb bug 842078 - fix iteration of mChildrenList r=smaug 2013-02-20 16:33:44 -05:00
Andrew McCreight
033e25a0c1 Bug 814738 - Modernize Traverse for nsTObserverArray. r=smaug 2012-11-23 11:13:39 -08:00
Andrew McCreight
0beff55dae Bug 807713 - add warning comment for nsTObserverArray::ElementAt. r=sicking 2012-11-23 10:50:05 -08:00
Benoit Jacob
4a50000d0e Bug 806279 - CC macros refactoring: part 1: implement type-generic CC UNLINK/TRAVERSE macros - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Andrew McCreight
5ec424dfd3 Bug 807713 - add operator[] for nsTObserverArray. r=bsmedberg 2012-11-02 17:57:05 -07: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
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Bonnie Surender
e360fa128a Fixing bug 715041. Add support for Idle API. r=bent, jst 2012-06-29 01:32:21 -07:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Nicholas Nethercote
726ecd352b Bug 723799 - Use mallocSizeOf in the DOM memory reporters. r=mounir.
--HG--
extra : rebase_source : 2eb96d2f901bbe4cc1ff6dbccdec4dc4099b08fc
2012-02-01 13:58:01 -08:00
Nicholas Nethercote
8f335f567c Bug 707865 - Convert nsTArray::SizeOf() to nsTArray::SizeOfExcludingThis(). r=jlebar.
--HG--
extra : rebase_source : d802d58bc7dedda2490878793923adc0ab55f779
2011-12-15 14:59:53 -08:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Justin Lebar
72783f7f69 Bug 682437 - Add memory reporter for History::mObservers. r=bz
--HG--
extra : rebase_source : f280a6beefd32319816ff8720f7bf65c04343b1e
2011-09-14 17:37:45 -07:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Jonathan Protzenko
99c88d604b Move comment for nsTObserverArray near the start of the file, r=bz a=bz over IRC. DONTBUILD 2011-01-14 18:15:27 +01:00
Boris Zbarsky
b891fc7b78 Bug 578696 part 1. Create new macros to notify nsTObserverArray observers without holding strong refs. No behavior changes yet. r=sicking 2010-07-21 11:33:31 -04:00
Metal Sonic
4c1b34d634 Bug 507387 - fix copyright holder; Mozilla Corporation -> Mozilla Foundation. r=gerv. 2009-12-21 21:50:30 +00:00
dwitte@stanford.edu
8a06010627 fix OS/2 bustage. 2007-12-21 17:06:43 -08:00
dwitte@stanford.edu
4c3f53bfbf add assertion. 2007-12-21 03:22:31 -08:00
dwitte@stanford.edu
e1f9209274 relanding part of 407442. 2007-12-19 23:30:04 -08:00
dwitte@stanford.edu
2b31364ac3 back out changes. 2007-12-19 03:07:41 -08:00
dwitte@stanford.edu
63050186f2 reland nsTObserverArray changes only. 2007-12-18 22:03:05 -08:00
dwitte@stanford.edu
8b3567b59d backing out to investigate Ts increase 2007-12-18 20:12:11 -08:00
dwitte@stanford.edu
3b75d76adb implement nsTObserverArray using nsTArray, clean up the interface, provide an nsAutoTObserverArray, and use it to reduce allocations in nsEventListenerManager. b=407442, r+sr=sicking, a=beltzner 2007-12-18 17:06:34 -08:00
jonas@sicking.cc
5378dfb532 Bug 408123: Use nsTObserverArray rather than array copy to deal with listeners going away while firing event. r=smaug sr=jst 2007-12-13 17:41:48 -08:00
asqueella@gmail.com
70469d1cb5 fix bug 369214 (ASSERTION: The observer list changed while being iterated over!: 'count == mObservers.Count()' in libpr0n) by switching the observers list to use nsTObserverArray. r=stuart a=1.9 blocker 2007-09-22 12:40:57 -07:00
jwalden@mit.edu
e3c4baccae Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
Olli.Pettay@helsinki.fi
0a6d3668cd Bug 380674, Move nsTObserverArray from content/* to xpcom/*, r=bsmedberg 2007-05-22 12:39:14 -07:00