Nicholas Nethercote
c7c44871cd
Bug 1187781 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in dom/xbl/ with iterators. r=mrbkap.
2015-11-15 14:55:10 -08:00
Birunthan Mohanathas
ac37dec517
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Nathan Froyd
4e6d8f6705
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
2015-10-18 01:24:48 -04:00
Andrew McCreight
fe41228ae8
Bug 1182975 - Part 3: Convert the rest of the uses of EnumerateEntries in nsBindingManager to Iterator(). r=wchen
2015-07-14 08:11:00 -04:00
Andrew McCreight
7cc7a8793d
Bug 1182975 - Part 2: Convert EnumRuleProcessors to use an iterator. r=wchen
2015-07-14 08:11:00 -04:00
Andrew McCreight
1dab914c78
Bug 1182975 - Part 1: Use early return consistently when iterating over mBoundContentSet. r=wchen
2015-07-14 08:11:00 -04:00
Dragana Damjanovic
f5e3e71a6d
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Ehsan Akhgari
47fd0c0cef
Bug 1157059 - Avoid calling AddRef on the pointer enclosed in an nsCOMPtr in nsBindingManager::DoProcessAttachedQueue(); r=baku
2015-04-22 07:34:12 -04:00
Andrea Marchesini
3905e91404
Bug 1134280 - Get rid of Tag() - patch 2.9 - dom/svg, dom/xml, dom/xslt and dom/xbl - Fix all the occurrences, m=smaug, r=surkov
2015-03-03 11:09:00 +00:00
Andrew McCreight
8843d9965e
Bug 1124261, part 1 - Remove some null checks from XBL. r=smaug
2015-01-30 10:55:11 -08:00
William Chen
1c4becf643
Bug 1096635 - Update XBL insertion parent for dynamic default content. r=mrbkap
2014-11-14 17:02:29 -08:00
Nicholas Nethercote
663b82ea3b
Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
...
* * *
imported patch rm-dummy-params
2014-08-06 06:31:21 -07:00
Bobby Holley
981f29b71c
Bug 1048330 - Null-check the XBL scope in more places. r=smaug
2014-08-05 12:10:34 -04:00
Bob Owen
fe79cd6ed2
Bug 1037564 Part 1: Replace AutoPushJSContext in nsBindingManager::GetBindingImplementation. r=bholley
2014-07-14 18:49:18 +01:00
Steven Michaud
6f6e21ba3d
Bug 1021240 - Calling alert from property getter can freeze Firefox. r=bz
2014-07-01 13:30:13 -05:00
Bill McCloskey
a1067f708b
Bug 1017310 - Associate JS compartments with add-on chrome XBL (r=bholley)
2014-06-23 16:33:37 -07:00
Neil Rashbrook
7a0f5707b8
Bug 1026008 Incorrect XBL behaviour with multiple insertion points r=mrbkap
2014-06-22 12:53:01 +01:00
Ms2ger
7f901a51fa
Bug 1022855 - Rename nsCSSStyleSheet to mozilla::CSSStyleSheet; r=heycam
2014-06-20 12:32:49 +02:00
Ms2ger
78134e6fa1
Backout revision 308e51eae10c for build bustage.
2014-06-20 13:00:08 +02:00
Ms2ger
f747edc3e4
Bug 1022855 - Rename nsCSSStyleSheet to mozilla::CSSStyleSheet; r=heycam
2014-06-20 12:32:49 +02:00
Wes Kocher
b1e3d115ed
Backed out 2 changesets (bug 1026008, bug 1025264) for debug crashtest leaks on a CLOSED TREE
...
Backed out changeset d7ab14487c62 (bug 1026008)
Backed out changeset 0b04aefdd3e3 (bug 1025264 )
2014-06-19 17:13:12 -07:00
Neil Rashbrook
87b9aa6c6e
Bug 1026008 Incorrect XBL behaviour with multiple insertion points r=mrbkap
2014-06-19 23:57:42 +01:00
Cameron McCormack
628c853833
Bug 1025725 - Part 3: Encapsulate nsXBLPrototypeResources::mStyleSheetList. r=bzbarsky
2014-06-19 17:02:56 +10:00
Benoit Jacob
3b25b83743
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
William Chen
ac3e471385
Bug 996151 - Clear out XBL binding and insertion parent of content even if nsBindingManager is destroyed. r=mrbkap
2014-04-29 11:37:02 -07:00
Andrew McCreight
cc25d02dbd
Bug 990715, part 6 - Convert nsBindingManager::mWrapperTable to nsInterfaceHashtable. r=bholley
2014-04-10 07:05:19 -07:00
Andrew McCreight
dae0f24855
Bug 990715, part 5 - Convert mWrapperTable to an nsAutoPtr in nsBindingManager. r=bholley
...
Using a raw PLDHashtable lets you represent an uninitialized hashtable by nulling out ops,
but for something higher level, you need to use an nsAutoPtr to the hash table.
2014-04-10 07:05:19 -07:00
Andrew McCreight
1381d3a15e
Bug 990715, part 4 - Inline SetOrRemoveObject in nsBindingManager. r=bholley
2014-04-10 07:05:19 -07:00
Andrew McCreight
0580ceac9e
Bug 990715, part 3 - Inline RemoveObjectEntry in nsBindingManager. r=bholley
2014-04-10 07:05:19 -07:00
Andrew McCreight
40a1920c27
Bug 990715, part 2 - Inline AddObjectEntry in nsBindingManager. r=bholley
...
There's a lot of generic hashtable methods in nsBindingManager for some reason.
Inlining them will make later transformations easier.
2014-04-10 07:05:19 -07:00
Andrew McCreight
305b83b49b
Bug 990715, part 1 - Remove trailing whitespace from nsBindingManager. r=bholley
2014-04-10 07:05:18 -07:00
Bobby Holley
d4da948749
Bug 825392 - Add xpc::GetXBLScopeOrGlobal and Sprinkle some calls to it where necessary. r=bz
2014-03-19 13:35:45 -03:00
Andrew McCreight
aded529f53
Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug
2014-02-27 10:04:09 -08:00
Robert O'Callahan
74cb0dbc0b
Bug 946065. Part 4: Move content/xbl to dom/ and flatten away 'src' directory. r=Ms2ger
2014-01-10 16:03:25 +13:00