Commit graph

4860 commits

Author SHA1 Message Date
Ms2ger
0157ff3ca3 Reorder changes in add_child to be correct. 2014-01-15 23:53:27 +01:00
Lars Bergstrom
9ac2f5fd9b Also handle the exit after load and output file cases for ref tests 2014-01-15 15:54:47 -06:00
Lars Bergstrom
6d3429ad03 Changes the Constellation shutdown procedure to a message and response
from the Compositor instead of a message with an immediate callback.

The problem was that the old model introduced a potential deadlock. If
the Constellation had a pending RenderReadyMsg in its queue when the
ExitMsg arrived from the Compositor, the Compositor would exit its
message loop and wait for the response from the Constellation. But,
the Constellation would send a SetIds message to the Compositor, which
also required a response - resulting in deadlock.
2014-01-15 15:40:47 -06:00
Lars Bergstrom
342844ed7b When window.close() is called, we should just ask the compositor to exit
normally.

The old code made the mistake of attempting to shutdown the associated
pipelines itself, which caused race conditions with the constellation and
compositor, as they expect to be able to drain their message queues
before exiting.
2014-01-15 15:26:39 -06:00
Lars Bergstrom
3e6ff80f18 Add extra debugging information. 2014-01-15 15:26:24 -06:00
bors-servo
c120779bca auto merge of #1499 : brunoabinader/servo/documenttype-remove-quirks, r=Ms2ger
TSIA. Closes #1498.
2014-01-15 12:25:11 -08:00
Bruno de Oliveira Abinader
ef8ce13550 DocumentType does not need to know about quirks mode
TSIA. Closes #1498.
2014-01-15 16:07:11 -04:00
bors-servo
bf4498f948 auto merge of #1497 : brunoabinader/servo/domimpl-create-document-type, r=Ms2ger
Implementation according to spec:
http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype

Closes #1489.
2014-01-15 11:07:16 -08: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
bors-servo
c876335d22 auto merge of #1490 : pcwalton/servo/distrust-layout-new, r=jdm
Pointers to DOM nodes from layout could go stale if incremental reflow
does not correctly destroy dead nodes. Therefore, we ask the JavaScript
garbage collector to verify that each DOM node is indeed a valid pointer
before calling event handlers on it, and fail otherwise.

Depends on the `get-addressable-gc-thing` branches of `mozjs` and `rust-mozjs`.

r? @jdm
2014-01-14 22:06:56 -08:00
Patrick Walton
7d447dbc06 script: Stop trusting pointers to DOM nodes that layout provides.
Pointers to DOM nodes from layout could go stale if incremental reflow
does not correctly destroy dead nodes. Therefore, we ask the JavaScript
garbage collector to verify that each DOM node is indeed a valid pointer
before calling event handlers on it, and fail otherwise.
2014-01-14 21:51:24 -08:00
patrick kim
25a3da6180 initial implement for inline background 2014-01-15 13:39:33 +09:00
bors-servo
32bf796efc auto merge of #1488 : brunoabinader/servo/document-implementation, r=Ms2ger
Creates a DOMImplementation struct corresponding to DOMImplementation
WebIDL. Also implements a getter for Document::implementation.

Closes #1486.
2014-01-14 09:30:58 -08: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
bors-servo
8f0f2d9ef5 auto merge of #1450 : jgraham/servo/innerHTML, r=jdm
XML case is not yet implemented.

Not yet well tested, but at a point where review comments are helpful.
2014-01-14 06:01:01 -08:00
James Graham
7aee1cae84 Implement innerHTML getter for HTML documents
XML case is not yet implemented.
2014-01-14 13:10:05 +00:00
bors-servo
fc76107a92 auto merge of #1310 : pcwalton/servo/refactor, r=pcwalton
Here are some refactorings. They depend on #1309, so need to wait for r+ on that first.

r? @metajack
2014-01-13 14:43:05 -08:00
Patrick Walton
ff213b6ad7 layout: Rename FlowData to BaseFlow to match other types 2014-01-13 14:13:14 -08:00
Patrick Walton
81769b4c4e layout: GC unused flow types 2014-01-13 14:11:57 -08:00
bors-servo
3cf4f39d22 auto merge of #1487 : larsbergstrom/servo/NVIDIA_fixes, r=metajack
Fixes #1185 and #668.

r? @metajack
2014-01-13 13:31:48 -08:00
Lars Bergstrom
fe060185be NVidia submodule updates 2014-01-13 15:23:37 -06:00
bors-servo
50b66f3552 auto merge of #1483 : brunoabinader/servo/document-doctype, r=jdm
Closes #1482.
2014-01-13 13:05:42 -08:00
bors-servo
563d6ef91a auto merge of #1457 : zmike/servo/master, r=jdm
this should resolve #1169
2014-01-13 12:11:35 -08:00
Bruno de Oliveira Abinader
742ad9cd24 Implement Document::doctype
Closes #1482.
2014-01-13 15:45:34 -04:00
bors-servo
0555e671ca auto merge of #1484 : metajack/servo/check-reftest-status, r=larsbergstrom
r? @larsbergstrom
2014-01-13 11:34:18 -08:00
Jack Moffitt
37b867b997 Enable checks for reftest exit status. 2014-01-13 12:09:44 -07:00
zmike
193b6d2635 add names for all servo spawned tasks
* add servo_util::task::{spawn_named,spawn_with_named} functions

* add name param for spawn_listener and spawn_conversation functions

this should resolve #1169
2014-01-13 13:12:48 -05:00
bors-servo
99f24fbd40 auto merge of #1481 : Ms2ger/servo/unused-imports-2, r=metajack 2014-01-13 08:19:12 -08:00
Ms2ger
b15e6dfc84 Remove unused imports. 2014-01-13 17:04:10 +01:00
bors-servo
c894778840 auto merge of #1448 : saneyuki/servo/attr, r=jdm 2014-01-13 06:25:12 -08:00
Tetsuharu OHZEKI
7a9ecffaa0 Implement Element.removeAttribute()/removeAttributeNS(). 2014-01-13 23:12:08 +09:00
Tetsuharu OHZEKI
31e2f22d20 Add the comment to explain the dual declaration. 2014-01-13 23:10:21 +09:00
Tetsuharu OHZEKI
fd0dadbddf Enable only remove operation for Document::update_idmap(). 2014-01-13 23:10:21 +09:00
Tetsuharu OHZEKI
8dc5fe0fe5 Split up the utility function to make internal attribute's namespace. 2014-01-13 23:10:21 +09:00
Tetsuharu OHZEKI
617a95ff5b Remove needless code.
This `OK(())` should be propagated from `Element.set_attribute()`.
2014-01-13 23:07:00 +09:00
bors-servo
048929278a auto merge of #1478 : recrack/servo/useragentcss, r=SimonSapin
#1232

Servo UA (http://www.w3.org/TR/CSS21/sample.html)

This is UA css from http://mxr.mozilla.org/mozilla/source/layout/style/html.css and http://dev.w3.org/csswg/css-lists/#ua-stylesheet

```
ul margin-left: 40px -> padding-left: 40px
ol margin-left: 40px -> padding-left: 40px
```
2014-01-13 02:01:17 -08: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
Youngmin Yoo
0d8ee069c9 Update UA stylesheets for lists 2014-01-10 16:04:25 +09:00
bors-servo
e8b0eae09e auto merge of #1472 : brunoabinader/servo/document-head, r=jdm
Use children() instead of traverse_preorder(), and avoid having
GetHead() in both Document and HTMLDocument.

Closes #1465.
2014-01-08 14:39:57 -08: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
bors-servo
728fb9a7de auto merge of #1470 : SimonSapin/servo/before-after, r=metajack
No behavior change (hopefully).

a16087d is the core of what I wanted to do, following up on #1464 (cc: @parkjaeman)
2014-01-08 09:58:29 -08:00
Simon Sapin
8d8a8ad6e7 De-duplicate some redundant code with a macro. 2014-01-08 16:08:42 +00:00
Simon Sapin
724fd7caaf Store selectors in Arc early to avoid some copying. 2014-01-08 15:58:52 +00:00
Simon Sapin
faeab3773e Simplify tracking of CSS rules source order in selector matching. 2014-01-08 14:59:10 +00:00
Simon Sapin
a16087da5f Selector mathing: Move the pseudo-elements buckets inside Stylist.
Refactor to have only one Stylist per document.
2014-01-08 14:54:16 +00:00
Simon Sapin
1d6f94fd96 Move selector matching tests and testing helpers into a #[cfg(test)] module. 2014-01-08 14:46:46 +00:00
Simon Sapin
146029bc06 Remove unused PerOriginRules struct. 2014-01-08 14:46:46 +00:00
Simon Sapin
8068823948 Make SelectorMap private. 2014-01-08 14:46:46 +00:00
Simon Sapin
1cdcaa940c Comment out parsing of ::firt-line and ::first-letter, they’re not supported yet. 2014-01-08 14:46:46 +00:00