Boris Zbarsky
cecc26dd7d
Bug 771636 part 2. Implement default values for WebIDL enums. r=peterv
2012-07-31 00:22:23 -04:00
Boris Zbarsky
ef58b84a88
Bug 771636 part 1. Rearrange default-value handling so we actually set C++ values directly instead of round-tripping through jsval. r=peterv
2012-07-31 00:22:22 -04:00
Brian Hackett
6c4ed4bfd1
Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin
2012-07-30 05:19:09 -06:00
Boris Zbarsky
1488e1e348
Bug 777438. Make sure our C++ declarations are in the right order when a dictionary has a dictionary member. r=khuey
2012-07-27 00:09:10 -04:00
Boris Zbarsky
5b52d060a9
Bug 775844. Make sure to examine constructor signatures when looking for union types. r=peterv
2012-07-27 00:09:10 -04:00
Boris Zbarsky
df76788f1c
Bug 775845. Fail codegen for variadic arguments until we add support for them. r=peterv
2012-07-27 00:09:09 -04:00
Boris Zbarsky
edaca081b0
Bug 775852. Actually follow the WebIDL spec for creating JS representations of sequences. r=khuey
2012-07-27 00:09:09 -04:00
Boris Zbarsky
508ab718fd
Bug 764456 part 5. Actually look at hasConcreteDescendant in hasInterfacePrototypeObject() so that we can avoid codegen for [NoInterfaceObject] interfaces hat are only implemented via "implements". r=peterv
2012-07-19 14:48:58 -04:00
Boris Zbarsky
25b38f4088
Bug 764456 part 4. Make sure consequential interface used as arguments are non-castable. r=peterv
2012-07-19 14:48:58 -04:00
Boris Zbarsky
3a9c08b23e
Bug 764456 part 3. Clean up meaning of 'castable' and use thereof a bit. r=peterv
2012-07-19 14:48:58 -04:00
Peter Van der Beken
9c6caad19d
Fix for bug 774775 (XRayWrapper does not handle new bindings constants) - refactor code. r=bz.
2012-07-18 13:52:07 +02:00
Peter Van der Beken
452ad37940
Fix for bug 774775 (XRayWrapper does not handle new bindings constants). r=bz.
2012-07-17 22:54:25 +02:00
Ed Morley
2deb5e4d6e
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-07-18 13:32:24 +01:00
Ms2ger
189c2a63aa
Bug 765464 - Part c: Throw some TypeErrors; r=khuey
2012-07-18 12:36:08 +02:00
Boris Zbarsky
d30e831e1d
Bug 773519. Speed up string argument conversion in DOM bindings by faking an XPCOM string. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
08f95d8f6f
Bug 768537 part 2. Allow dictionaries to be initialized with null or undefined, and treat them as dictionaries in which everything has its default value. r=peterv
2012-07-17 12:18:53 -04:00
Ed Morley
8abd69784e
Backout 9deb8edb5070 (bug 773519), ea5a243a60f1 & 0cad1e553bea (bug 768537) for compilation failures
2012-07-17 17:48:11 +01:00
Boris Zbarsky
1d055c6609
Bug 773519. Speed up string argument conversion in DOM bindings by faking an XPCOM string. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
c768da737b
Bug 768537 part 2. Allow dictionaries to be initialized with null or undefined, and treat them as dictionaries in which everything has its default value. r=peterv
2012-07-17 12:18:53 -04:00
Peter Van der Beken
62f0ed62b1
Fix for bug 762280 (Use nsContentUtils::PreserveWrapper for preserving expandos). r=bz.
2012-07-16 16:52:53 +02:00
Peter Van der Beken
d2595f63e1
Fix for bug 756258 (Support union types in new DOM bindings). r=bz.
2012-05-18 23:25:47 +02:00
Boris Zbarsky
b952a86b40
Bug 742152. Move distinguishing index determination and verification of type-identity of preceding arguments out of codegen and into the WebIDL parser. r=jlebar
2012-06-22 16:18:50 -04:00
Boris Zbarsky
491c38b4aa
Bug 764456 part 1. Flag consequential interfaces in the WebIDL data model. r=khuey
2012-06-22 16:18:50 -04:00
Boris Zbarsky
f2d10569f7
Bug 764698. Fix isDistinguishableFrom for dictionaries to work right. r=peterv
2012-06-21 12:29:11 -04:00
Ms2ger
c244d818ec
Bug 766615 - Fix nullable WebIDL dictionaries; r=bz
2012-06-21 09:21:53 +02:00
Ms2ger
022f426440
Bug 764539 - Stringify the prototype class in Paris bindings to "InterfacePrototype" instead of "Interface Prototype"; r=bz
2012-06-21 09:20:28 +02:00
Ms2ger
b567e34561
Bug 765704 - Don't throw when setting XHR.responseType to an invalid value; r=bz
2012-06-21 09:11:07 +02:00
Boris Zbarsky
46f92197e9
Bug 763911. Add support for interface members of dictionaries. r=khuey
2012-06-19 12:09:37 -04:00
Boris Zbarsky
548bfae095
Bug 764420. Fix ArrayBufferView unwrapping to allow DataViews. r=khuey
2012-06-19 12:08:39 -04:00
Boris Zbarsky
6aae0341c3
Bug 746570. Get rid of bogus uses of rstrip() that are leaving random trailing spaces in the middle of our string. r=peterv
2012-06-15 16:25:51 -04:00
Boris Zbarsky
6d6455d86f
Bug 764104. Avoid collisions with C++ reserved words by using initial-caps for WebIDL enum values. r=peterv
2012-06-15 16:25:51 -04:00
Boris Zbarsky
60ae23ad37
Bug 750297 part 2. Switch WebGLUniformLocation to Paris bindings. r=peterv, bjacob
2012-06-15 16:25:51 -04:00
Boris Zbarsky
3417cf0e8b
Bug 750297 part 1. Add support for objects that do not have a wrapper cache in WebIDL bindings. r=peterv
2012-06-15 16:25:50 -04:00
Boris Zbarsky
11ae7922e9
Bug 742153 part 4. Allow strings inside sequences and dictionaries. r=peterv
2012-06-12 10:22:05 -04:00
Boris Zbarsky
3c4e09b808
Bug 742153 part 3. Implement codegen for dictionary arguments. r=peterv
...
Another implementation option would be to put all the dictionaries in a single
file and have a static global set of ids which works across all dictionaries
and is initialized once at startup or so. That would also handle cross-file
dictionary inheritance better.
One problem that remains is the fake descriptor business. At the moment this
does not allow interface types inside dictionaries. We could probably work
around this by either refactoring code to make it possible to get the declType
independently of the actual conversion template (whether because it lives in a
separate function or because the conversion template generator knows to just
return an empty string when the fake descriptor provirder is passed) or by
figuring out a way to pass an actual descriptor provider to dictionary codegen.
2012-06-12 10:22:05 -04:00
Boris Zbarsky
a550f31d7d
Bug 742153 part 2. Rename isSequenceMember to isMember, since it will apply to both sequences and dictionaries. r=peterv
2012-06-12 10:22:05 -04:00
Kyle Huey
d42d206076
Bug 763573: Don't export PrimitiveConversions.h. r=bz
2012-06-11 13:04:34 -07:00
Boris Zbarsky
bb37c2a5a0
Bug 761707 part 2. Drop the vestigial jsclass argument to UnwrapDOMObject. r=bholley
2012-06-06 15:59:46 -04:00
Boris Zbarsky
1ccda2efe0
Bug 761707 part 1. Rip out the various infrastructure for allowing different slot indices on different DOMJSClass instances. r=bholley
2012-06-06 15:59:46 -04:00
Boris Zbarsky
d8299d963a
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Boris Zbarsky
bd63b368ca
Backed out changeset f96e0f078b49 (bug 748266) because the test suite is bogus and we're failing a crashtest too.
2012-05-31 16:20:49 -04:00
Boris Zbarsky
d25bb48544
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Peter Van der Beken
51a7de4e8f
Fix for bug 759275 (Specialize unwrapping to HTML elements in dom bindings). r=bz.
2012-05-21 23:29:58 +02:00
Peter Van der Beken
3f5726c007
Fix for bug 759278 (Support binarynames for attributes too in new DOM bindings). r=bz.
2012-05-18 23:25:47 +02:00
Boris Zbarsky
26111ae37d
Bug 743906 part 3. Stop listing default values for optional arguments with no defaults, now that we're guaranteed to only examine such values if argc is big enough. r=peterv
2012-05-29 23:45:18 -04:00
Boris Zbarsky
89e01282f1
Bug 743906 part 2. Use Optional<> for optional arguments that don't have default values. r=peterv
2012-05-29 23:45:18 -04:00
Boris Zbarsky
f68192a4f6
Bug 755636 part 2. Add some tests (not exhaustive!) for sequence codegen and fix the bugs they uncover. r=peterv
2012-05-25 01:08:26 -04:00
Boris Zbarsky
794994cab4
Bug 755636 part 1. Convert sequence argument codegen to dom::Sequence. r=peterv
2012-05-25 01:08:22 -04:00
Boris Zbarsky
d5b6f25379
Bug 749864. Codegen for typed array and arraybuffer arguments. r=peterv
2012-05-25 01:07:03 -04:00
Boris Zbarsky
308bec7942
Bug 753642. Rip out the codegen for the Xray-related bits of worker bindings, since we don't have Xrays in workers. r=peterv
2012-05-23 12:44:48 -04:00