Boris Zbarsky
9cc662a2d6
Bug 915971. Rename FooReturnValue unions to OwningFoo, because we use them for more than just return values. r=dzbarsky
2013-09-17 11:16:02 -04:00
Boris Zbarsky
b0ce18e505
Bug 915419. Add support for "object" types in owning unions (so union return values and unions in dictionaries and sequences. r=dzbarsky, smaug
...
Adds RootedUnion and NullableRootedUnion structs that are used on the
stack for union return values when the union needs rooting. It also
adds a TraceUnion method on union return values, which is called by
(Nullable)RootedUnion or by dictionary tracing. TraceUnion traces
typed array and object members of unions (the only things unions can
contain so far that might need tracing). Union return values are
changed to store raw JSObject* or typed array structs instead of
Rooted versions of both; the tracing is now handled via TraceUnion.
The wrapping code for dictionary arguments to constructors is fixed to
actually work. This required adding GetAs* methods to union return
values that return references to the internal data.
The SetToObject method is adjusted to actually work for union return
value structs and not assume it's being generated for a
union-conversion struct, and we now generate SetToObject methods as
needed for union return values.
2013-09-12 22:34:16 -04:00
Nathan Froyd
15bc82ea6a
Bug 912197 - part 5 - move WebIDL.mk over to moz.build; r=khuey
2013-09-05 11:20:26 -04:00
Boris Zbarsky
84d48a8c9f
Bug 912948 part 2. Add support for [Clamp] and [EnforceRange] on writable attributes. r=khuey
2013-09-09 22:10:45 -04:00
Boris Zbarsky
1304d99cb9
Bug 912948 part 1. Add support for [Clamp] and [EnforceRange] on dictionary members. r=khuey
2013-09-09 22:10:44 -04:00
David Zbarsky
7a1dc33163
Bug 767926 - Implement unions as member types of sequences or dictionaries for WebIDL r=bz
2013-09-09 14:39:17 -04:00
Mike Hommey
05b3f24e0e
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Andrea Marchesini
d80e13725f
Bug 887364 - URL API for main thread. r=ehsan
2013-09-04 13:07:21 -04:00
Boris Zbarsky
400dee397c
Bug 910220 part 3. Always generate a defineProperty hook for DOM proxies. r=peterv
2013-08-31 00:21:31 -04:00
Boris Zbarsky
e804f0ffca
Bug 910220 part 2. Use the new API in codegen to only throw when needed. r=peterv
2013-08-31 00:21:28 -04:00
David Zbarsky
426663fc36
Bug 903277. Support default values other than null for WebIDL unions. r=bzbarsky
2013-08-29 23:29:38 -04:00
Guillaume Abadie
c981a4bb3a
Bug 645792 - Replace throwing an exception by returning null on HTMLCanvasElement::GetContext. r=bjacob
...
CLOSED TREE
2013-08-29 10:14:22 -04:00
Ryan VanderMeulen
c8c1dbcab7
Backed out changeset a58d895d8197 (bug 645792) for OSX leaks.
2013-08-29 13:46:10 -04:00
Guillaume Abadie
894d5bc932
bug 645792 - replace throwing an exception by returning null on HTMLCanvasElement::GetContext - r=bjacob
2013-08-29 10:14:22 -04:00
Boris Zbarsky
e077229d95
Bug 868799 part 3. Use RootedTypedArray in codegen. r=smaug
2013-08-29 00:30:05 -04:00
Brian O'Keefe
0ee041b9fd
Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal
2013-08-15 09:02:09 -04:00
Boris Zbarsky
fde2af5f9d
Bug 907548. URL.prototype should be undefined, since we don't implement the URL API. r=khuey
2013-08-22 09:46:26 -04:00
Ms2ger
2fab82586f
Bug 883284 - Part c: Move LIBXUL_LIBRARY into moz.build (d-e); r=mshal
2013-08-22 08:56:00 +02:00
Ms2ger
c590a6ce46
Bug 903778 - Move dom::Date into its own files; r=khuey
2013-08-22 08:30:38 +02:00
Boris Zbarsky
3a9063d67a
Bug 900898 part 4. Support typed arrays inside sequences and variadics. r=smaug
2013-08-05 13:40:02 -04:00
Boris Zbarsky
5506e8ee8f
Bug 900898 part 3. Support typed arrays inside dictionaries. r=smaug
2013-08-05 13:40:01 -04:00
Boris Zbarsky
82ba945cef
Bug 900898 part 2. Move to using Nullable<TypedArray> to represent possibly-null TypedArray structs. r=smaug
2013-08-05 13:40:01 -04:00
Boris Zbarsky
ba0d3d3f9a
Bug 707564 part 4. Teach WebIDL Xrays about the GetOwnProperties methods on WebIDL objects that have NewResolve. r=smaug
2013-08-03 23:38:55 -04:00
Boris Zbarsky
22412e781e
Bug 707564 part 3. Give WebIDL bindings with NewResolve hooks Enumerate hooks as well, so enumerating them correctly resolves all the properties. r=smaug
2013-08-03 23:38:54 -04:00
Ryan VanderMeulen
2a93f2cff1
Merge m-c to inbound.
2013-07-30 15:41:57 -04:00
Mina Almasry
cb2423ca33
Bug 897185 - toJSON only deals with attributes whose types are serializable. r=bz
...
Now jsonifiers only include serializable attributes in their returned object, as
per spec.
2013-07-30 10:04:04 -04:00
Boris Zbarsky
93e6a9f666
Bug 895728 part 4. Fix unions to work with the new boolean/numeric/string setup. r=khuey
2013-07-30 10:39:35 -07:00
Boris Zbarsky
d05c7d0e2f
Bug 895728 part 3. Fix overload resolution to work with the new boolean/numeric/string setup. r=khuey
2013-07-30 10:39:34 -07:00
David Zbarsky
a4a3a95214
Bug 865998: Implement WebIDL union return values r=bz
2013-07-26 11:25:54 -07:00
Mina Almasry
d88dc366d5
Bug 760851 - Add jsonifier WebIDL declaration and add toJSON to performance.timing. r=bz
...
This patch adds a jsonifier declaration to WebIDL's. The declaration adds an autogenerated method toJSON() on the given webidl. This patch also adds jsonifier and toJSON() to PerformanceTiming.webidl, and performance.timing, respectively.
2013-07-26 12:00:49 -04:00
Boris Zbarsky
76a7d33bf7
Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv
2013-07-22 08:15:43 -04:00
Masatoshi Kimura
a99030e14f
Bug 885107 - Fix testharness tests outside dom/imptests. r=dbaron
2013-07-17 20:26:23 +09:00
Ryan VanderMeulen
4033000ea2
Backed out changesets 0a196c0e9f96 (bug 895974) and 0d8aa14f5ed3 (bug 895009) for causing intermittent Linux32 mochitest-1 asserts on a CLOSED TREE.
2013-07-22 18:18:17 -04:00
Boris Zbarsky
a0654061a1
Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv
2013-07-22 08:15:43 -04:00
Ed Morley
2baf010d88
Backed out changeset e12c6f7d6676 (bug 885107) on suspicion of causing bug 894952
2013-07-18 14:43:52 +01:00
Masatoshi Kimura
616a6b3538
Bug 885107 - Fix testharness tests outside dom/imptests. r=dbaron
2013-07-17 20:26:23 +09:00
Trevor Saunders
238525e2d8
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Boris Zbarsky
520e6c7b89
Bug 884373. Align WebIDL handling of default parameters with ES6. r=khuey
2013-06-26 10:59:46 -04:00
Boris Zbarsky
4cb7712ac9
Bug 883358 part 2. Use the new information in bindings error reporting. r=smaug
2013-06-17 16:31:13 -04:00
Ryan VanderMeulen
c8233b1b9b
Backed out 3 changesets (bug 883358) for Android mochitest-3 failures on a CLOSED TREE.
...
Backed out changeset 84b35dd1879d (bug 883358)
Backed out changeset b5e6522257cb (bug 883358)
Backed out changeset 757a3f2e5de6 (bug 883358)
2013-06-17 19:51:12 -04:00
Boris Zbarsky
6c79df6cef
Fix test fallout from bug 883358 so we can stop having a CLOSED TREE. No review.
2013-06-17 18:24:04 -04:00
Boris Zbarsky
f9c3279c5d
Bug 883358 part 2. Use the new information in bindings error reporting. r=smaug
2013-06-17 16:31:13 -04:00
James Kitchener
aaa284cd89
Bug 796850 - Change XMLHttpRequest interface to support ByteString r=bz
2013-06-13 01:20:10 -04:00
James Kitchener
6d46bd7a62
Bug 796850 - Implement Code Generation for Bytestring in WebIDL bindings r=bz
2013-06-13 01:18:35 -04:00
Boris Zbarsky
4c44f5a456
Bug 829248. Implement basic support for [TreatUndefinedAs=Missing] in WebIDL. r=khuey
...
This does not add support for [TreatUndefinedAs=Missing] in overloaded
methods, since it's not clear what that should really look like.
This also does not require that [TreatUndefinedAs=Missing] on an
argument force it on all later arguments, since it's not clear that we
want that long-term.
2013-06-05 20:51:21 -04:00
Ehsan Akhgari
5be6cc599a
Bug 861371 - Allow Web IDL enums to have names starting with a digit; r=bzbarsky
...
--HG--
extra : rebase_source : 5ebf235e9408bdfdfd37504e2f79c65978ccf51d
2013-06-03 17:54:46 -04:00
Mike Shal
6f32ddf61c
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Boris Zbarsky
df4472c441
Bug 874154. Make sure we don't end up with uninitialized JSObject* or JS::Value in dictionaries. r=ms2ger
2013-05-21 14:15:30 -04:00
Boris Zbarsky
0550b4483a
Bug 861587. Rejigger the WebIDL binding build system to do all binding codegen in a single python process while still using our dependency tracking for bindings to minimize the number of bindings we try to regenerate. r=khuey
2013-05-09 13:05:33 -04:00
Reuben Morais
4d7c90ddd3
Bug 873647 - Teach codegen how to wrap Dates in constructors. r=bz
...
--HG--
extra : rebase_source : f4267f15b7076aacb47fb94e4173a05dac8de255
2013-05-17 13:52:32 -07:00