Commit graph

371 commits

Author SHA1 Message Date
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
Josh Matthews
02d2ec5ccd Make JSVal conversions actually fallible. 2014-02-24 17:18:47 -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
bors-servo
edd7e32fdb auto merge of #1602 : pcwalton/servo/more-inlines, r=jdm
9% improvement in style recalc on the rainbow page.

r? @jdm
2014-02-18 14:08:12 -05:00
Ms2ger
68f534c45a Use DOMString in a few more places in utils.rs. 2014-02-16 09:50:29 +01:00
Ms2ger
6cc8a4dfba Simplify string construction in InterfaceObjectToString. 2014-02-16 09:50:10 +01:00
Adam Sinnett
ffcd3833de Change Text, Comment and ProcessingInstructions parent name from element to characterdata
All other node's parent type names reflect the actual type of the parent. This change extends that convention to the indicated nodes.

closes #1594
2014-02-15 13:52:33 -08:00
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
Ms2ger
5765de12cd Remove unused Reflector::get_rootable. 2014-02-07 13:04:31 +01: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
Patrick Walton
a0fbc04ba5 script: Inline some hot functions used in flow constructions.
9% improvement in style recalc on the rainbow page.
2014-01-30 18:05:12 -08: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
Tetsuharu OHZEKI
7a9ecffaa0 Implement Element.removeAttribute()/removeAttributeNS(). 2014-01-13 23:12:08 +09:00
bors-servo
943ab4a4f0 auto merge of #1473 : metajack/servo/rustup-20131219, r=jdm 2014-01-12 19:16:21 -08:00
Jack Moffitt
a7ef1cd35e Upgrade to latest Rust. 2014-01-12 19:45:45 -07:00
Bruno de Oliveira Abinader
b5eba001ef Fix to avoid attribute name clash between Document/HTMLDocument
Use children() instead of traverse_preorder(), and avoid having
GetHead() in both Document and HTMLDocument.

Closes #1465.
2014-01-08 16:44:47 -04:00
Bruno de Oliveira Abinader
17b35d52ff Implement Document::head()
Implementation details according to the specification below:
http://www.whatwg.org/specs/web-apps/current-work/#dom-document-head

This patch is for:
https://github.com/mozilla/servo/issues/1465
2014-01-07 15:51:45 -04:00
Bruno de Oliveira Abinader
ce434dfb3e Implement Document's 'body' attribute
Implement Document's 'body' attribute (getter and setter). Proper
implementation of setter requires Node::ReplaceChild(), which is
currently a stub and will be done on a later step.

This patch is for:
https://github.com/mozilla/servo/issues/1428
2013-12-20 10:58:03 -04:00
Patrick Walton
436b1e891d script: Eliminate the phantom type in Node, as it is no longer needed
for enforcing layout memory safety.
2013-12-17 18:07:41 -08:00
Patrick Walton
be69a503fe script: Eliminate the phantom type in favor of just whitelisting methods
that layout can safely call.

This is simpler. Currently, the set of methods is not safe, but I plan
to lock it down more soon.
2013-12-17 18:07:12 -08:00
Patrick Walton
199ca33b72 script: Make trees less generic 2013-12-17 13:46:14 -08:00
Ms2ger
29a7405b4e Report exceptions to JS when the DOM implementation fails.
As a bonus, adds some debugging statements.
2013-12-05 16:14:02 +01:00