Commit Graph

697 Commits

Author SHA1 Message Date
Peter Van der Beken
096abd5a26 Fix for bug 838269 (Support cross-global |... instanceof DOMInterface|). r=bz.
--HG--
extra : rebase_source : e5ad1d7da8029394e3ecb38909eca406a675dbe9
2013-01-08 19:05:36 +01:00
Trevor Saunders
625a020456 bug 819027 - remove unneeded performance nsISupports inheritance r=bz, mccr8 2012-12-06 16:01:59 -05:00
Robert O'Callahan
9146383988 Bug 837034. Part 2: Convert DOMMediaStream to use WebIDL. r=peterv,jesup
--HG--
rename : content/media/nsDOMMediaStream.cpp => content/media/DOMMediaStream.cpp
rename : content/media/nsDOMMediaStream.h => content/media/DOMMediaStream.h
extra : rebase_source : 483fca748444db20ed0d35cb586485f277e1808c
2013-02-15 21:04:11 +13:00
Masatoshi Kimura
b9f50fa45b Bug 841479 - Remove nsISupports inheritance from TextDecoder and TextEncoder. r=bz 2013-02-15 05:36:50 +09:00
Trevor Saunders
dacbf11a24 bug 840906 - densISupportsify nsDOMRGBCSSColor r=mccr8 2013-02-13 16:39:23 -05:00
Andrea Marchesini
c614e41e70 Bug 840559 - Convert MediaError to WebIDL. r=smaug 2013-02-14 10:59:21 -05:00
Ryan VanderMeulen
0e981ca346 Backed out 12 changesets (bug 834732) for b2g bustage and OSX mochitest-1 crashes on a CLOSED TREE. 2013-02-12 20:54:48 -05:00
Bobby Holley
e9d5a91d21 Bug 834732 - Make nsCxPusher.Push(JSContext*) infallible. r=mrbkap
We leave the nsIDOMEventTarget* versions fallible for now, but this makes the
common case a lot simpler. Note that this means that pushing a null JSContext,
a bug, is no longer handled at runtime. But I think we should just assert
against it, since there are already callers that don't check the return value.
2013-02-13 00:22:26 +01:00
Bobby Holley
5a1f2c3927 Bug 834732 - Remove PushBehavior. r=mrbkap
Now that we only have ALWAYS_PUSH and ASSERT_SCRIPT_CONTEXT, we have uniform
release-mode behavior everywhere. Remove the crap.
2013-02-13 00:22:26 +01:00
Bobby Holley
863479340f Bug 834732 - Get rid of footgun bool param for nsCxPusher and use an explicit enum. r=mrbkap
The goal here is to get rid of this crap entirely, and make nsCxPusher always
push. But that's a scary change, so we do it in chunks. This patch, in particular,
should have zero behavioral change. This means preserving some very wrong behavior.
For instance, currently SafeAutoJSContext never pushes a damn thing, because the
safe JSContext doesn't have an associated nsIScriptContext. We preserve this
behavior, and in fact convert various similarly-buggy consumers to
SafeAutoJSContext, so that we can hoist the behavioral change into a subsequent
patch.
2013-02-13 00:22:26 +01:00
Ed Morley
6735c60a03 Merge latest green inbound changeset to mozilla-central 2013-02-12 14:43:06 +00:00
Ms2ger
6577c45b1f Bug 838178 - Remove dom/bindings/stubgenerator; r=ehsan 2013-02-12 11:14:01 +01:00
Ms2ger
aed4c33395 Bug 838160 - Part b: Move HTMLOutputElement to Paris bindings; r=bz 2013-02-12 11:11:01 +01:00
Ms2ger
4d718db681 Bug 835065 - Part c: Move SVGComponentTransferFunctionElement and subclasses to Paris bindings; r=bz 2013-02-12 11:10:24 +01:00
Andrea Marchesini
daa80d9394 Bug 839033 - Convert HTMLProgressElement to WebIDL. r=Ms2ger 2013-02-11 13:56:31 -05:00
Ryan VanderMeulen
4cbf80f0ff Backed out changesets, cf285bf3c6fc, e8b847157094, and dd86a8178cec (bug 839033) for bustage.
--HG--
rename : content/html/content/src/HTMLProgressElement.h => content/html/content/src/nsHTMLProgressElement.cpp
2013-02-09 17:51:10 -05:00
Andrea Marchesini
f32baf38ac Bug 839033 - Convert HTMLProgressElement to WebIDL. r=Ms2ger 2013-02-09 17:21:15 -05:00
Andrea Marchesini
f6e4c4ef39 Bug 839439 - Convert HTMLAreaElement to WebIDL. r=Ms2ger 2013-02-08 11:34:48 -05:00
Andrea Marchesini
df416443da Bug 839056 - Convert HTMLOptGroupElement to WebIDL. r=Ms2ger 2013-02-08 11:34:48 -05:00
Andrea Marchesini
01f03b4f30 Bug 839056 - Rename nsHTMLOptGroupElement to HTMLOptGroupElement. r=Ms2ger
--HG--
rename : content/html/content/src/nsHTMLOptGroupElement.cpp => content/html/content/src/HTMLOptGroupElement.cpp
rename : content/html/content/src/nsHTMLOptGroupElement.h => content/html/content/src/HTMLOptGroupElement.h
2013-02-08 11:34:48 -05:00
Andrea Marchesini
0a9bd0e10e Bug 839105 - Convert HTMLFieldSetElement to WebIDL. r=Ms2ger 2013-02-08 11:34:48 -05:00
Andrea Marchesini
596e176e0b Bug 838172 - Convert AudioChannelManager to WebIDL. r=peterv 2013-02-08 11:34:47 -05:00
Ms2ger
937b64f610 Bug 839179 - Part b: Move HTMLButtonElement to Paris bindings; r=bz 2013-02-08 13:50:30 +01:00
Ms2ger
e21a8a0da7 Bug 839053 - Part b: Move HTMLLinkElement to Paris bindings; r=bz 2013-02-08 13:50:30 +01:00
Boris Zbarsky
e4c3c27ffc Bug 839116 part 2. Convert HTMLSharedElement to WebIDL. r=ms2ger
--HG--
rename : dom/webidl/HTMLLIElement.webidl => dom/webidl/HTMLBaseElement.webidl
rename : dom/webidl/HTMLLIElement.webidl => dom/webidl/HTMLDirectoryElement.webidl
rename : dom/webidl/HTMLLIElement.webidl => dom/webidl/HTMLHeadElement.webidl
rename : dom/webidl/HTMLLIElement.webidl => dom/webidl/HTMLHtmlElement.webidl
rename : dom/webidl/HTMLLIElement.webidl => dom/webidl/HTMLParamElement.webidl
rename : dom/webidl/HTMLLIElement.webidl => dom/webidl/HTMLQuoteElement.webidl
2013-02-08 12:20:11 +00:00
Boris Zbarsky
beb028cc97 Bug 836850. Allow a single C++ class to implement multiple WebIDL interfaces. r=peterv
--HG--
rename : content/html/content/test/test_li_attributes_reflection.html => content/html/content/test/test_dl_attributes_reflection.html
rename : content/html/content/test/test_li_attributes_reflection.html => content/html/content/test/test_ul_attributes_reflection.html
2013-02-08 12:20:11 +00:00
Peter Van der Beken
871110115e Fix for bug 838228 (toString on an Xray for an interface object should stringify like Function.prototype.toString). r=bz.
--HG--
rename : content/html/content/test/test_map_attributes_reflection.html => content/html/content/test/test_ol_attributes_reflection.html
extra : rebase_source : 9bd7efb927e4eac96569ed629ee230dbf555fb63
2013-02-01 15:33:58 +01:00
Andrea Marchesini
06e54c8580 Bug 839022 - Convert HTMLSourceElement to WebIDL. r=Ms2ger 2013-02-07 10:39:10 -05:00
Andrea Marchesini
b49aa911c6 Bug 838750 - Convert HTMLMeterElement to WebIDL. r=Ms2ger 2013-02-07 10:00:39 -05:00
Andrea Marchesini
c7fe255f30 Bug 838233 - Convert HTMLHRElement to WebIDL. r=Ms2ger 2013-02-07 09:57:59 -05:00
Ms2ger
b2db47bbc9 Bug 838160 - Part b: Move HTMLMetaElement to Paris bindings; r=bz 2013-02-07 09:08:58 +01:00
Ms2ger
6c3cfca206 Bug 837597 - Part b: Move HTMLModElement to Paris bindings; r=bz 2013-02-07 09:08:58 +01:00
Ms2ger
60173e31fd Bug 837597 - Part b: Move HTMLMapElement to Paris bindings; r=bz 2013-02-07 09:08:57 +01:00
Ryan VanderMeulen
6d4e2b111c Backed out changesets 34927afb65e2 and 2d0b056ced49 (bug 838559) for mochitest failures.
--HG--
rename : content/html/content/src/HTMLMenuElement.cpp => content/html/content/src/nsHTMLMenuElement.cpp
rename : content/html/content/src/HTMLMenuElement.h => content/html/content/src/nsHTMLMenuElement.h
2013-02-06 16:22:59 -05:00
Andrea Marchesini
214954d593 Bug 838559 - Convert HTMLMenuElement to WebIDL. r=Ms2ger 2013-02-06 14:19:20 -05:00
Andrea Marchesini
c0ac3d2eb1 Bug 838559 - Rename nsHTMLMenuElement to HTMLMenuElement. r=Ms2ger
--HG--
rename : content/html/content/src/nsHTMLMenuElement.cpp => content/html/content/src/HTMLMenuElement.cpp
rename : content/html/content/src/nsHTMLMenuElement.h => content/html/content/src/HTMLMenuElement.h
2013-02-06 14:19:20 -05:00
Boris Zbarsky
b93c5f76e5 Bug 837645. Support 'any' values in sequences and dictionaries. r=smaug,peterv 2013-02-06 14:23:45 +00:00
Boris Zbarsky
6436114c6f 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
eb1ea6872b 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
2a8f41fca8 Bug 830992 part 2. Switch DOMTransaction to WebIDL codegen. r=wchen,peterv 2013-02-06 09:42:33 +00:00
Boris Zbarsky
88ce96ae8c Bug 830992 part 1. Make it possible to pass CallbackObject& as the thisObj for callback functions. r=peterv 2013-02-06 09:42:17 +00:00
Andrea Marchesini
5973a08965 Bug 813253 - URL.createobjectURL in WebWorker. r=bent 2013-02-05 18:17:17 -05:00
Robert O'Callahan
6d8b72a707 Bug 804387. Part 9: Update WebAudio implementation to integrate with AudioNodeStream. r=ehsan
This is a mega-patch that was too hard to disentangle. Here's what it does:
-- Create infrastructure around AudioNode::UpdateOutputEnded to detect
when a node can no longer produce any output. When that becomes true,
disconnect it from the AudioNode graph.
-- Have AudioNode implement JSBindingFinalized to use as input in
UpdateOutputEnded.
-- Give every AudioNode a MediaStream, and give every connection
a MediaInputPort.
-- Actually play the audio that reaches the AudioContext's destination node.
-- Force AudioContext to use the audio sample rate defined by MediaStreamGraph.
-- Fix AudioBufferSourceNode's start and stop methods to possibly throw and
take default 'when' parameters.
-- Create an AudioNodeStream for AudioBufferSourceNode and give it a
AudioBufferSourceNodeEngine that does what's needed. Set parameters for
this engine in the start() and stop() methods.
-- Create AudioBuffer::GetThreadSharedChannelsForRate, which is responsible
for stealing the contents of any JS array buffers, and bundling them up
into a thread-shared read-only buffer object which can be used as
part of an AudioChunk. This method will also be responsible for
resampling and caching as necessary.

--HG--
rename : content/media/MediaStreamGraph.cpp => content/media/MediaStreamGraphImpl.h
extra : rebase_source : 9fa0ec0efa304acd6513e427103d6339c78efa53
2013-02-05 12:07:25 +13:00
Andrea Marchesini
b822140315 Bug 838124 - Convert BatteryManager to WebIDL. r=peterv 2013-02-05 07:54:49 -05:00
Ehsan Akhgari
598f705578 Backed out 14 changesets (bug 804387) because of Android M2 crashes
Backed out changeset 80e8530f06ea (bug 804387)
Backed out changeset 3de2271ad47f (bug 804387)
Backed out changeset 00f86870931c (bug 804837)
Backed out changeset 0e3f20927c50 (bug 804387)
Backed out changeset e6ef90038007 (bug 804387)
Backed out changeset 0ad6f67a95f9 (bug 804387)
Backed out changeset d0772aba503c (bug 804387)
Backed out changeset 5477b87ff03e (bug 804387)
Backed out changeset 1d7ec5adc49f (bug 804387)
Backed out changeset 11f4d740cd6c (bug 804387)
Backed out changeset e6254d8997ab (bug 804387)
Backed out changeset 372322f3264d (bug 804387)
Backed out changeset 53d5ed687612 (bug 804387)
Backed out changeset 000b88ac40a7 (bug 804387)
2013-02-05 01:29:28 -05:00
Robert O'Callahan
41a1e70799 Bug 804837. Part 9: Update WebAudio implementation to integrate with AudioNodeStream. r=ehsan
This is a mega-patch that was too hard to disentangle. Here's what it does:
-- Create infrastructure around AudioNode::UpdateOutputEnded to detect
when a node can no longer produce any output. When that becomes true,
disconnect it from the AudioNode graph.
-- Have AudioNode implement JSBindingFinalized to use as input in
UpdateOutputEnded.
-- Give every AudioNode a MediaStream, and give every connection
a MediaInputPort.
-- Actually play the audio that reaches the AudioContext's destination node.
-- Force AudioContext to use the audio sample rate defined by MediaStreamGraph.
-- Fix AudioBufferSourceNode's start and stop methods to possibly throw and
take default 'when' parameters.
-- Create an AudioNodeStream for AudioBufferSourceNode and give it a
AudioBufferSourceNodeEngine that does what's needed. Set parameters for
this engine in the start() and stop() methods.
-- Create AudioBuffer::GetThreadSharedChannelsForRate, which is responsible
for stealing the contents of any JS array buffers, and bundling them up
into a thread-shared read-only buffer object which can be used as
part of an AudioChunk. This method will also be responsible for
resampling and caching as necessary.
2013-02-05 12:07:25 +13:00
Ehsan Akhgari
d3ad617d12 Bug 837520 - Part 2: Move HTMLBRElement to Web IDL bindings; r=bzbarsky 2013-02-03 18:05:27 -05:00
Ehsan Akhgari
86111f5cce Bug 837416 - Part 2: Move HTMLStyleElement to Web IDL bindings; r=bzbarsky 2013-02-03 12:42:40 -05:00
Ehsan Akhgari
2554ec472a Backed out 3 changesets (bug 837416) because of test failures
Backed out changeset 1d7232646d12 (bug 837416)
Backed out changeset 476af8f75f28 (bug 837416)
Backed out changeset 428b29658d07 (bug 837416)

--HG--
rename : content/html/content/src/HTMLStyleElement.cpp => content/html/content/src/nsHTMLStyleElement.cpp
2013-02-03 15:18:19 -05:00
Ehsan Akhgari
ec6b9c180f Bug 837416 - Part 2: Move HTMLStyleElement to Web IDL bindings; r=bzbarsky 2013-02-03 12:42:40 -05:00