Boris Zbarsky
0c03ae1518
Bug 742206 part 1. Introduce a simple mozilla::dom::Date for use in WebIDL bindings. r=smaug
2013-05-02 14:38:19 -04:00
Boris Zbarsky
88d9554942
Bug 865940. Remove AsMutable now that our binding stack variables aren't const. r=bholley
2013-04-25 22:46:18 -04:00
Boris Zbarsky
7a5392b28d
Bug 861493. When passing arguments to an Xray for a WebIDL constructor, make sure to do the argument unwrapping before entering the content compartment. r=bholley,waldo
...
There are several changes here:
1) Adds some MutableThis methods to Optional, Nullable, and dictionaries to
effectively allow doing a const_cast without knowing the actual type being
templated over. I needed this because I do not in fact know that type in
the relevant code. I'm open to suggestions for a better name for this
method.
2) Adds some operator& to RootedJSValue to make it look more like a JS::Value,
and in particular so I can JS_WrapValue the thing in it.
3) Adds a Slot() method to NonNullLazyRootedObject, just like NonNull has.
4) Adds an operator& to LazyRootedObject to make it look more like JSObject* so
I can JS_WrapObject the thing in it.
5) Implements the actual rewrapping of the arguments into the content compartment.
6) Fixes a small preexisting bug in which we didn't look at named constructors
in getTypesFromDescriptor (this was causing my tests to not compile).
7) Changes Xrays to not enter the content compartment when calling a WebIDL
constructor.
8) Adds some friend API to report things as not being functions.
2013-04-25 19:03:05 -04:00
Boris Zbarsky
3da96fa3de
Bug 863898. Add support for dictionary arguments in JS-implemented WebIDL bindings. r=mccr8
2013-04-25 12:29:55 -04:00
Andrea Marchesini
62b8b6bea9
Bug 864747 - Optional<T&> should be able to receive a value in the constructor. r=bz
2013-04-24 08:36:10 -04:00
Olli Pettay
b589a2e03c
Bug 862987 - Include nsAutoPtr.h in BindingDeclarations.h, r=bz
...
--HG--
extra : rebase_source : b3059811b16fa5a2bec070176a276ece18178baf
2013-04-17 23:17:44 +03:00
Joshua Cranmer
45e3447406
Bug 856108 - Port static analyses to clang, part 2b: use MOZ_STACK_CLASS in dom. r=Ms2ger
2013-04-11 22:20:18 -05:00
Boris Zbarsky
4cf80a8cde
Bug 860473 part 1. Root WebIDL dictionary ParseJSON. r=evilpie, smaug
2013-04-11 14:31:05 -04:00
Boris Zbarsky
f257517c68
Bug 846972 part 2. Add the WebIDL APIs for StyleSheet and CSSStyleSheet. r=peterv
2013-03-17 10:42:59 -04:00
Jon Coppeard
8d5fd16382
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 35cbf3cc4da4598c2e9e6975028ef397718849db
2013-03-06 16:41:43 +00:00
Ed Morley
fe417ad697
Backed out changeset 28ef4bdff455 (bug 848395)
2013-03-07 13:03:35 +00:00
Jon Coppeard
fa71007e65
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 866879df05e3ec3f8e93570eb3f6b71103636b41
2013-03-06 16:41:43 +00:00
Boris Zbarsky
09a15646fc
Bug 845666. Add support for sequences containing other sequences (or dictionaries containing sequences) to WebIDL. r=peterv
...
This keeps simple sequence arguments and variadics using an auto array, while everything else uses a non-auto array.
2013-03-02 01:07:43 -05:00
Boris Zbarsky
09e1ed17ee
Bug 837645. Support 'any' values in sequences and dictionaries. r=smaug,peterv
2013-02-06 14:23:45 +00:00
Boris Zbarsky
fd2a017af5
Bug 836920 followup. Fix warnins-as-errors bustage. r=tree-is-aflame-dance-around-it
2013-02-06 10:21:50 +00:00
Boris Zbarsky
12c45cc91b
Bug 836920. Move dom::Optional<> and dom::Sequence to BindingDeclarations.h so using dictionaries in interfaces whose name comes before 'PrimitiveConversions' alphabetically does not break. r=peterv
...
All the code is just moving except the Optional<nsAString>::operator=
that takes a FakeDependentString. That had to be changed so it has no
dependency on the actual definition of FakeDependentString.
2013-02-06 09:56:15 +00:00
Boris Zbarsky
651d3b27a9
Fix comment. Followup for bug 834877. DONTBUILD
2013-01-29 10:31:34 -05:00
Boris Zbarsky
4677dafdc2
Bug 834877 part 1. Add a DOMString struct to use for binding return values. r=peterv
2013-01-29 09:42:14 -05:00
Peter Van der Beken
b9d2ae906f
Fix for bug 816088 (webIDL bindings try to extract nsISupports from the global object in static properties in workers). r=bz.
...
--HG--
extra : rebase_source : 5668d9e01bff0fe7831d98018428856e5940a620
2012-12-03 17:07:49 +01:00
Ed Morley
bc0702d0d7
Backout f3c145bd1dd2 & 5075690572a9 for OS X startup failures
2013-01-28 11:08:21 +00:00
Peter Van der Beken
b46afdef94
Fix for bug 816088 (webIDL bindings try to extract nsISupports from the global object in static properties in workers). r=bz.
...
--HG--
extra : rebase_source : 68e5630591f6209e2af9c5cd2321fed8edd3de24
2012-12-03 17:07:49 +01:00
Boris Zbarsky
90a34fb045
Bug 816421. Make Document.visibilityState a WebIDL enum. r=peterv
...
A lot of the changes here are just so I can actually build after including DocumentBinding.h in nsIDocument.h
2012-12-25 14:00:15 -08:00