Ms2ger
4166ff4794
Introduce a test IDL file.
2014-03-04 16:28:34 +01:00
Ms2ger
8acf36c6d4
Get the Page from the global object for ResolveProperty.
2014-03-04 15:28:12 +01:00
Ms2ger
d3ca4afaf5
Get the Page directly off the Window in CreateBindingJSObject.
2014-03-04 15:17:12 +01:00
Ms2ger
787108deaf
Pass &JS<Window> to the Wrap functions in codegen.
2014-03-04 15:08:44 +01:00
Ms2ger
6291aac170
Pass &JS<Window> to some constructors.
2014-03-04 14:10:33 +01:00
Ms2ger
b6138580d3
Stop passing the scope argument to global object bindings' Wrap functions.
2014-03-04 13:24:16 +01:00
Ms2ger
12380edc63
Merge the Wrap and Wrap_ functions in codegen.
2014-03-04 13:17:36 +01:00
Ms2ger
99574f14d9
Return a JS<Window> from global_object_for_{dom,js}_object.
2014-03-04 11:41:46 +01:00
Ms2ger
c8bd9615f4
When calling constructors, retrieve the global object from the callee rather than the JSContext.
2014-03-04 10:46:49 +01:00
Ms2ger
3530f1e107
Remove support for external (i.e. XPIDL) interfaces.
2014-03-03 19:49:08 +01:00
bors-servo
b8de1b3ca7
auto merge of #1791 : Ms2ger/servo/conversions, r=jdm
2014-03-03 13:13:35 -05:00
Ms2ger
bec0dcd023
Remove unused argument to CreateInterfaceObjects2.
2014-03-03 16:00:49 +01:00
Ms2ger
6bc2c79f92
Pass a JSContext to JSValConvertible::from_jsval.
2014-03-02 22:30:54 +01:00
Josh Matthews
fa542e5de7
De-@mut the script crate.
2014-02-28 13:42:03 -05:00
Saurabh Anand
5c5cb3e9a7
Move Error, Fallible, ErrorResult out of utils.rs ( fixes #1749 )
2014-02-28 13:32:00 +05:30
bors-servo
421ba1a856
auto merge of #1736 : sankha93/servo/issue1733, r=jdm
2014-02-26 17:52:36 -05:00
Sankha Narayan Guria
1e9fec9172
Merge master into this branch
2014-02-27 03:31:05 +05:30
lpy
f706123208
Move Traceable, trace_reflector from utils.rs to trace.rs.( fixes #1748 )
2014-02-26 19:33:21 +08:00
Ms2ger
1c49319173
Remove support for some more obsolete configurations.
2014-02-25 14:41:17 +01:00
Ms2ger
3c7f9832f0
Remove support for workers-specific codegen.
2014-02-25 14:28:27 +01:00
Ms2ger
c96c7bab12
Remove support for some more obsolete configurations.
2014-02-25 13:45:58 +01:00
Ms2ger
8360aa24d6
Remove support for some obsolete configurations.
2014-02-25 13:30:36 +01:00
Ms2ger
8429df46cc
Remove dead code from Bindings.conf.
2014-02-25 13:19:28 +01:00
bors-servo
df993fdaf3
auto merge of #1689 : jdm/servo/unions, r=kmcallister
...
Seven hours on a train without internet will do this to you. Fixes #541 .
2014-02-24 20:01:39 -05:00
Josh Matthews
232ca59708
Address review comments. Fix union conversion result mistakes introduced in refactoring.
2014-02-24 17:20:37 -05:00
Ms2ger
e2617a6396
Remove HTMLDocument.
2014-02-24 22:23:11 +01:00
Josh Matthews
4cdb4df70c
Remove commented bits that aren't necessary.
2014-02-24 15:56:38 -05:00
Josh Matthews
9f05f70754
Clean up TrySetTo interface to avoid mutable outrefs.
2014-02-24 15:56:38 -05:00
Josh Matthews
d590a327bd
Implement WebIDL union support.
2014-02-24 15:56:38 -05:00
Josh Matthews
d0bfdbf150
Initial unmodified dump of Gecko's union codegen.
2014-02-24 15:56:38 -05:00
bors-servo
ffcf3b2905
auto merge of #1591 : jdm/servo/jsmanaged, r=Ms2ger
2014-02-24 15:19:51 -05:00
Josh Matthews
625325434b
Implement JSManaged for DOM objects.
2014-02-24 15:16:42 -05:00
tgkokk
cd36b7e0f6
Fix #922 : Bindings generator generates .pyc files
2014-02-24 21:02:05 +02:00
Sankha Narayan Guria
47e6e6ec8f
Be more explicit in casts of generated bindings
2014-02-23 03:03:48 +05:30
Ms2ger
59184bf6e1
Move DOMString into servo_util.
2014-02-14 12:48:51 +01:00
bors-servo
1662e7a02f
auto merge of #1666 : ozten/servo/issue-506-add-basic-console, r=Ms2ger
...
Here is an attempt to fix Issue#506.
I couldn't figure out how to do variadic arguments to `console.log`, but I did test calling `console.log('foo', 'bar', 'baz')` and it prints the first argument and doesn't error out, which is nice.
window.console is not a web standards. I did the popular functions, but not some of the newer ones documented [on MDN](https://developer.mozilla.org/en-US/docs/Web/API/console ).
This PR will allow more pages to load properly, where developers have left in window.console calls.
2014-02-11 13:01:50 -05:00
Austin King
b1b481f3f3
Adding most commonly used parts of window.console. Fixes Issue#506. r=Ms2ger
2014-02-11 09:55:29 -08:00
Bruno de Oliveira Abinader
4d4495b015
Implement Node.isEqualNode
...
Spec:
http://dom.spec.whatwg.org/#dom-node-isequalnode
Closes #1645 .
2014-02-10 11:01:12 -04:00
Bruno de Oliveira Abinader
99b3b144d4
Implement Node.contains
...
Spec:
http://dom.spec.whatwg.org/#dom-node-contains
Closes #1647 .
2014-02-09 10:39:07 -04:00
Bruno de Oliveira Abinader
ac8c659d2b
Implement document.createProcessingInstruction
...
Spec:
http://dom.spec.whatwg.org/#dom-document-createprocessinginstruction
This is a sub-task for #1428 .
2014-02-06 16:11:31 -04:00
Bruno de Oliveira Abinader
aa4b5bb948
Implement ProcessingInstruction DOM interface
...
Spec:
http://dom.spec.whatwg.org/#interface-processinginstruction
Closes #1619 .
2014-02-06 14:41:55 -04:00
Adrien Bustany
2254a9e923
script: Pass the correct parent node to pre_insert in insertBefore
...
Closes #1572 .
2014-02-05 16:27:22 +01:00
Bruno de Oliveira Abinader
0c6de1bb34
Basic skeleton for DOMException
...
Spec:
http://dom.spec.whatwg.org/#domexception
This is a subtask for #1542 .
2014-01-29 14:58:22 -04:00
Bruno de Oliveira Abinader
a58838e14b
Implement DOMImplementation::createHTMLDocument
...
Spec:
http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
Closes #1510 .
2014-01-20 15:20:23 -04:00
Youngmin Yoo
0523a7dfe9
Move webidl files to dom/webidl
2014-01-20 12:56:23 +09:00
Bruno de Oliveira Abinader
3b82b11054
Implement Node::replaceChild()
...
Implements Node:replaceChild() according to spec below:
http://dom.spec.whatwg.org/#concept-node-replace
Closes #1430 .
2014-01-16 10:25:17 -04:00
Bruno de Oliveira Abinader
0d35d4932b
Implement DOMImplementation::createDocumentType
...
Implementation according to spec:
http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype
Closes #1489 .
2014-01-15 14:56:14 -04:00
Bruno de Oliveira Abinader
60dd40f412
Add DOMImplementation skeleton
...
Creates a DOMImplementation struct corresponding to DOMImplementation
WebIDL. Also implements a getter for Document::implementation.
Closes #1486 .
2014-01-14 13:20:36 -04:00
James Graham
7aee1cae84
Implement innerHTML getter for HTML documents
...
XML case is not yet implemented.
2014-01-14 13:10:05 +00:00
Bruno de Oliveira Abinader
742ad9cd24
Implement Document::doctype
...
Closes #1482 .
2014-01-13 15:45:34 -04:00