Commit Graph

681 Commits

Author SHA1 Message Date
Andrea Marchesini
ee2d7fd03a Bug 839033 - Convert HTMLProgressElement to WebIDL. r=Ms2ger 2013-02-09 17:21:15 -05:00
Andrea Marchesini
888cdf0242 Bug 839439 - Convert HTMLAreaElement to WebIDL. r=Ms2ger 2013-02-08 11:34:48 -05:00
Andrea Marchesini
e2a9fdba68 Bug 839056 - Convert HTMLOptGroupElement to WebIDL. r=Ms2ger 2013-02-08 11:34:48 -05:00
Andrea Marchesini
d8e0d71402 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
9c0fe725fe Bug 839105 - Convert HTMLFieldSetElement to WebIDL. r=Ms2ger 2013-02-08 11:34:48 -05:00
Andrea Marchesini
1f4c7da5bb Bug 838172 - Convert AudioChannelManager to WebIDL. r=peterv 2013-02-08 11:34:47 -05:00
Ms2ger
cc7807ddbe Bug 839179 - Part b: Move HTMLButtonElement to Paris bindings; r=bz 2013-02-08 13:50:30 +01:00
Ms2ger
c26449c818 Bug 839053 - Part b: Move HTMLLinkElement to Paris bindings; r=bz 2013-02-08 13:50:30 +01:00
Boris Zbarsky
96a978de51 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
24d9f6a70b 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
e07d1dcdb8 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
83c12b2a45 Bug 839022 - Convert HTMLSourceElement to WebIDL. r=Ms2ger 2013-02-07 10:39:10 -05:00
Andrea Marchesini
64fb75c8f4 Bug 838750 - Convert HTMLMeterElement to WebIDL. r=Ms2ger 2013-02-07 10:00:39 -05:00
Andrea Marchesini
3e9ec09832 Bug 838233 - Convert HTMLHRElement to WebIDL. r=Ms2ger 2013-02-07 09:57:59 -05:00
Ms2ger
ec1ae08fad Bug 838160 - Part b: Move HTMLMetaElement to Paris bindings; r=bz 2013-02-07 09:08:58 +01:00
Ms2ger
7e09e3f7e6 Bug 837597 - Part b: Move HTMLModElement to Paris bindings; r=bz 2013-02-07 09:08:58 +01:00
Ms2ger
4a4986af60 Bug 837597 - Part b: Move HTMLMapElement to Paris bindings; r=bz 2013-02-07 09:08:57 +01:00
Ryan VanderMeulen
9e13554a56 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
bc62b9be2a Bug 838559 - Convert HTMLMenuElement to WebIDL. r=Ms2ger 2013-02-06 14:19:20 -05:00
Andrea Marchesini
e5a5252fbf 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
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
50ced00d20 Bug 830992 part 2. Switch DOMTransaction to WebIDL codegen. r=wchen,peterv 2013-02-06 09:42:33 +00:00
Boris Zbarsky
5e8ac50381 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
01bac8a971 Bug 813253 - URL.createobjectURL in WebWorker. r=bent 2013-02-05 18:17:17 -05:00
Robert O'Callahan
088271f880 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
ad06a4d453 Bug 838124 - Convert BatteryManager to WebIDL. r=peterv 2013-02-05 07:54:49 -05:00
Ehsan Akhgari
631b308649 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
45c5e4a1ad 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
7153c2e7ee Bug 837520 - Part 2: Move HTMLBRElement to Web IDL bindings; r=bzbarsky 2013-02-03 18:05:27 -05:00
Ehsan Akhgari
3d9d777756 Bug 837416 - Part 2: Move HTMLStyleElement to Web IDL bindings; r=bzbarsky 2013-02-03 12:42:40 -05:00
Ehsan Akhgari
a3b0d5871a 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
48ce320438 Bug 837416 - Part 2: Move HTMLStyleElement to Web IDL bindings; r=bzbarsky 2013-02-03 12:42:40 -05:00
Peter Van der Beken
6f66838447 Fix for bug 836809 (Convert XMLStyleSheetProcessingInstruction to WebIDL). r=bz.
--HG--
rename : content/xml/content/src/nsXMLStylesheetPI.cpp => content/xml/content/src/XMLStylesheetProcessingInstruction.cpp
rename : content/xml/content/src/nsXMLStylesheetPI.cpp => content/xml/content/src/XMLStylesheetProcessingInstruction.h
extra : rebase_source : 11bb422e280b58c33bb0165b60f34da5c6fae3de
2013-02-01 13:28:37 +01:00
David Zbarsky
642114ea39 Bug 837036 - Remove SVGLocatableElement and SVGTransformableElement IDL r=longsonr 2013-02-01 04:55:45 -05:00
Boris Zbarsky
194b6a08f7 Bug 829867. Unpref PaintRequest and Screen WebIDL bindings and remove some cruft from quickstubs. r=peterv
nsIDOMCharacterData and nsIDOMText quickstubs are not needed after bug 826703.

nsIDOMRect quickstubs haven't been needed since bug 824970 landed.

nsCSSPropertiesQS has been unused since bug 801083 at least.

The various includes being removed are either fully on WebIDL now or using WebIDL quickstubs.
2013-01-29 12:52:09 -05:00
Boris Zbarsky
27b20c21af Bug 824589. Convert XULElement to WebIDL. r=peterv
The assertions in nsINode and nsWrapperCache are to eagerly catch
failures to override those methods.

The classinfo change for XULTreeBuilder is needed because one of those
is returned via an nsIXULTemplateBuilder attribute on XULElement.
Alternately, I could mark it notflattened in Bindings.conf, but Enn
said he prefers this anyway.

The change to the QI impl in BindingUtils is needed because when
XPConnect converts an IID from C++ to JS it makes is an nsJSID, not an
nsJSIID.  We've run into this before, sadly.

I removed "id" from nsIDOMXULElement because it's already on Element.
I suppose I could have left it there, but this seems cleaner.

The nsJSIID::HasInstance changes are needed to support XBL-implemented
interfaces.  Sadly, this does mean that if the underlying object QIs
to something but we didn't put those props on the WebIDL we'll end up
testing true for instanceof but not exposing the props.  I don't see
an obviously better way.  We should work on killing off uses of
"instanceof someinterface".

The browser.js change is needed to avoid throwing exceptions during
browser-chrome tests that are now getting reported because our
swapFrameLoaders is no longer an XPConnect method.
2013-01-29 12:51:55 -05:00
Robert O'Callahan
dd3935d1cb Bug 832788. Part 6: Enable FAIL_ON_WARNINGS in dom/bindings. r=bz
--HG--
extra : rebase_source : 67fb14efbd022dac7ba32fe31584c386872ff9d6
2013-01-30 18:20:53 +13:00
Robert O'Callahan
85e24bcae8 Bug 832788. Part 5: Add suffixes for large integer literals. r=bz
--HG--
extra : rebase_source : 9555960acea609a3e4a3deaacd468e64435f5ff2
2013-01-30 18:20:53 +13:00
Boris Zbarsky
89d5ad423c Bug 835417 part 2. Implement WebIDL parser and codegen support for marking things pure. r=peterv 2013-01-29 17:53:53 -05:00
Boris Zbarsky
66e49b02aa Back out bug 824589 (rev 22695cac3896) on suspicion of Ts regression 2013-01-29 17:18:06 -05:00
Boris Zbarsky
775587776a Back out bug 829867 (rev 2a0424e177c1) on suspicion of Ts regression 2013-01-29 17:17:37 -05:00
Boris Zbarsky
209081f37e Bug 829867. Unpref PaintRequest and Screen WebIDL bindings and remove some cruft from quickstubs. r=peterv
nsIDOMCharacterData and nsIDOMText quickstubs are not needed after bug 826703.

nsIDOMRect quickstubs haven't been needed since bug 824970 landed.

nsCSSPropertiesQS has been unused since bug 801083 at least.

The various includes being removed are either fully on WebIDL now or using WebIDL quickstubs.
2013-01-29 12:52:09 -05:00
Boris Zbarsky
8231be64a0 Bug 824589. Convert XULElement to WebIDL. r=peterv
The assertions in nsINode and nsWrapperCache are to eagerly catch
failures to override those methods.

The classinfo change for XULTreeBuilder is needed because one of those
is returned via an nsIXULTemplateBuilder attribute on XULElement.
Alternately, I could mark it notflattened in Bindings.conf, but Enn
said he prefers this anyway.

The change to the QI impl in BindingUtils is needed because when
XPConnect converts an IID from C++ to JS it makes is an nsJSID, not an
nsJSIID.  We've run into this before, sadly.

I removed "id" from nsIDOMXULElement because it's already on Element.
I suppose I could have left it there, but this seems cleaner.

The nsJSIID::HasInstance changes are needed to support XBL-implemented
interfaces.  Sadly, this does mean that if the underlying object QIs
to something but we didn't put those props on the WebIDL we'll end up
testing true for instanceof but not exposing the props.  I don't see
an obviously better way.  We should work on killing off uses of
"instanceof someinterface".

The browser.js change is needed to avoid throwing exceptions during
browser-chrome tests that are now getting reported because our
swapFrameLoaders is no longer an XPConnect method.
2013-01-29 12:51:55 -05:00
Boris Zbarsky
651d3b27a9 Fix comment. Followup for bug 834877. DONTBUILD 2013-01-29 10:31:34 -05:00
Boris Zbarsky
b937359c37 Bug 834877 part 2. Start using DOMString as the return value for strings. r=peterv 2013-01-29 09:42:14 -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
Boris Zbarsky
9754a0cf18 Bug 829252 part 3. When wrapping things with an nsISupports in XPCWrappedJS for WebIDL callback interfaces, use the aggregated version. r=peterv 2013-01-29 08:44:01 -05:00
Boris Zbarsky
fbda957199 Bug 830099. Flag WebIDL dictionaries and callbacks with some information indicating whether we need main-thread and worker codegen for them and then use that information to skip unneccessary codegen. r=peterv 2013-01-28 23:30:17 -05:00