Commit Graph

93 Commits

Author SHA1 Message Date
Bobby Holley
5235649dd6 Bug 990290 - Get rid of dynamic XBL JSClasses. r=bz 2014-04-11 07:59:47 -07:00
Bobby Holley
f78fd78ef9 Bug 990290 - Store class objects in a weak map off the XBL global. r=bz
Note that we simultaneously rip out all of the crazy lifetime management for the
dynamic JSClasses here (it would be nice to do that in a separate patch, but it's
all kind of tied up together). With this patch, we simply have one dynamic JSClass
per class object, which is deleted in the finalizer. In the next patch, we remove
dynamic JSClasses entirely.
2014-04-11 07:59:47 -07:00
Bobby Holley
2c9355e7c3 Bug 990290 - Stop using the full-blown class object setup for precompilation. r=bz 2014-04-11 07:59:47 -07:00
Bobby Holley
e30d331b81 Bug 990290 - Remove silly LRU cache of nsXBLJSClass instances. r=bz 2014-04-11 07:59:47 -07:00
Bobby Holley
c540bd4fbd Bug 990290 - Remove unnecessary conditional and unindent. r=bz 2014-04-11 07:59:46 -07:00
Bobby Holley
98e6820130 Bug 990290 - Stop using ye olde JS_InitClass for XBL class objects. r=bz 2014-04-11 07:59:46 -07:00
Andrew McCreight
0b1b57cded Bug 992578, part 4 - Convert nsXBLPrototypeBinding::mResources to an nsAutoPtr. r=mrbkap 2014-04-10 07:05:21 -07:00
Andrew McCreight
b8afe1642a Bug 992578, part 3 - Make nsXBLResourceLoader::mLoader an nsRefPtr. r=mrbkap 2014-04-10 07:05:21 -07:00
Andrew McCreight
cbf080d3d8 Bug 992578, part 2 - Make nsXBLResourceLoader::mLoader private. r=mrbkap 2014-04-10 07:05:21 -07:00
Andrew McCreight
2b07cb95b1 Bug 992578, part 1 - Delete trailing whitespace in nsXBLPrototypeResources. r=mrbkap 2014-04-10 07:05:21 -07:00
Andrew McCreight
26e29cfb47 Bug 990715, part 6 - Convert nsBindingManager::mWrapperTable to nsInterfaceHashtable. r=bholley 2014-04-10 07:05:19 -07:00
Andrew McCreight
e349637d5e 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
66ddfdaa8e Bug 990715, part 4 - Inline SetOrRemoveObject in nsBindingManager. r=bholley 2014-04-10 07:05:19 -07:00
Andrew McCreight
d22326a3bb Bug 990715, part 3 - Inline RemoveObjectEntry in nsBindingManager. r=bholley 2014-04-10 07:05:19 -07:00
Andrew McCreight
f0715d7f8e 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
7f1996521d Bug 990715, part 1 - Remove trailing whitespace from nsBindingManager. r=bholley 2014-04-10 07:05:18 -07:00
Boris Zbarsky
67f4d02e6f Bug 993889 part 1. Remove "scope" argument from nsContentUtils::WrapNative. r=bholley 2014-04-10 00:58:41 -04:00
Geoff Brown
d0b48b9ecb Bug 962676 - Reset expected assertion counts for Android crashtests; r=blassey 2014-04-09 08:38:44 -06:00
Boris Zbarsky
fdbb455d4f Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
3f26a82832 Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Bobby Holley
23435e19a8 Bug 986730 - Put all anonymous content into the XBL scope. r=smaug 2014-04-06 12:32:39 -07:00
Bobby Holley
b4a8be6b33 Bug 986730 - Fix up a bunch of tests that assume that they can touch AC in content. r=mrbkap 2014-04-06 12:32:38 -07:00
Eric Faust
fb1731f8f3 Bug 890686 - Implement JS_GlobalObjectTraceHook, and install it appropriately. (r=billm) 2014-04-04 16:58:08 -07:00
Martin Stransky
081c9b7c0c Bug 983903 - [Gtk3] Ctrl+A doesn't work in textarea or input elements. r=Neil 2014-04-04 08:34:25 -04:00
Masayuki Nakano
852403f45d Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
Masayuki Nakano
32ead5cb46 Bug 984253 part.4 Rename nsJSEventListener to mozilla::JSEventHandler r=smaug 2014-04-02 11:00:46 +09:00
Masayuki Nakano
a5632ff179 Bug 984253 part.3 Rename nsEventHandler to mozilla::TypedEventHandler r=smaug 2014-04-02 11:00:45 +09:00
Masayuki Nakano
45e73fa02b Bug 984253 part.2 Merge nsIJSEventListener and nsJSEventListener r=smaug, sr=jst 2014-04-02 11:00:45 +09:00
Bobby Holley
6af85a5824 Bug 989183 - Check for nsXBLJSClass. r=bz 2014-04-01 21:34:34 -03:00
Masayuki Nakano
ad08b39137 Bug 989213 part.3 Rename nsVKList.h to mozilla/VirtualKeyCodeList.h r=smaug
--HG--
rename : dom/events/nsVKList.h => dom/events/VirtualKeyCodeList.h
2014-04-01 20:42:16 +09:00
Jon Coppeard
bd123acdd3 Bug 959787 - Handlify JS_ExecuteScript and JS::Evaluate APIs r=terrence r=bz 2014-04-01 11:34:39 +01:00
Masayuki Nakano
a63f35fff1 Bug 984271 part.2 Rename nsEventStateManager to mozilla::EventStateManager r=smaug
--HG--
rename : dom/events/nsEventStateManager.cpp => dom/events/EventStateManager.cpp
rename : dom/events/nsEventStateManager.h => dom/events/EventStateManager.h
2014-04-01 13:09:23 +09:00
Neil Rashbrook
8325a39b18 Bug 514280 Remove concrete classes from interface maps r=bsmedberg 2014-03-28 08:40:13 +00:00
Ms2ger
b765dd44d3 Bug 984006 - Remove xpcom/ds from local includes; r=ehsan 2014-03-27 21:05:14 +01:00
Andrew McCreight
9ab9dfaa2c Bug 988570 - Initialize nsXBLBinding::mUsingXBLScope. r=bholley 2014-03-27 09:24:33 -04:00
Bobby Holley
8ce8fa17a7 Bug 987672 - Use a more reliable Function constructor and |bind| implementation for marquee event handler compilation. r=bz 2014-03-25 12:36:39 -03:00
Bobby Holley
653713b343 Bug 986304 - Remove the scope object machinery attached to nsIJSEventListener. r=bz,f=smaug 2014-03-21 23:31:03 -03:00
Alessio Placitelli
93c7f6ceef Bug 950076 - Use the return value of GetNodeTextContent for OOM checks. r=jst 2014-03-20 20:51:16 +01:00
Bob Owen
c3cd40452d Bug 978042 - Part 8: AutoPushJSContext in nsXBLProtoImplField::InstallField. r=bholley 2014-03-19 12:09:33 +00:00
Jon Coppeard
8f185b4070 Bug 959787 - Handlify some more GCing APIs r=sfink 2014-03-20 09:32:37 +00:00
Ryan VanderMeulen
a902b4a4c8 Backed out changesets a17ee88f1fe7, 6e3aee4a9650, 07e5ed676919 (bug 950076) for Werror bustage. 2014-03-19 14:00:10 -04:00
Alessio Placitelli
a0352e2e61 Bug 950076 - Use the return value of GetNodeTextContent for OOM checks. r=jst 2014-03-19 13:05:03 -04:00
Bobby Holley
bb4da51f82 Bug 825392 - Add xpc::GetXBLScopeOrGlobal and Sprinkle some calls to it where necessary. r=bz 2014-03-19 13:35:45 -03:00
Bobby Holley
e9b2546e5d Bug 825392 - Infer the global from the reflector in DoInitJSClass. r=bz 2014-03-19 13:35:45 -03:00
Bill McCloskey
5a8a2d71fc Bug 862519 - [e10s] Better handling of key commands also handled by content (r=smaug) 2014-03-18 08:16:47 -07:00
Andrew McCreight
9d14962bdc Bug 983899, part 2 - Convert nsXBLService::gClassTable to nsDataHashtable. r=mrbkap 2014-03-18 14:25:39 -07:00
Andrew McCreight
69ec149e2d Bug 983899, part 1 - Delete some trailing whitespace in XBL. r=mrbkap 2014-03-18 14:25:39 -07:00
Ryan VanderMeulen
96a9545bc8 Backed out changeset 9c3f1b715943 (bug 862519) for multiple mochitest failures.
CLOSED TREE
2014-03-18 13:00:32 -04:00
Bill McCloskey
30eedea37f Bug 862519 - [e10s] Better handling of key commands also handled by content (r=smaug) 2014-03-18 08:16:47 -07:00
Bill McCloskey
b0318e2bb4 Back out bug 862519 on a CLOSED TREE 2014-03-18 08:14:47 -07:00