Commit graph

13238 commits

Author SHA1 Message Date
Anthony Ramine
b0d1ccdf5f Do not root Performance::timing 2015-10-19 09:37:05 +02:00
Anthony Ramine
17cd4202e7 Do not root ChildrenList::node 2015-10-19 09:37:04 +02:00
Anthony Ramine
b149e0c979 Do not root NodeIterator::root_node 2015-10-19 09:37:03 +02:00
Anthony Ramine
6849510526 Do not root NamedNodeMap::owner 2015-10-19 09:37:02 +02:00
Anthony Ramine
5889a75b10 Do not root Location::window 2015-10-19 09:37:01 +02:00
Anthony Ramine
dee3aecea1 Do not root HTMLScriptElement::parser_document 2015-10-19 09:37:00 +02:00
Anthony Ramine
e8f358d178 Do not root InputActivationState::checked_radio 2015-10-19 09:36:58 +02:00
Anthony Ramine
71dcabfad8 Do not root DOMTokenList::element 2015-10-19 09:36:57 +02:00
Anthony Ramine
822e6f0d48 Do not root DOMStringMap::element 2015-10-19 09:36:56 +02:00
Anthony Ramine
ff0da2f642 Do not root DOMParser::window 2015-10-19 09:36:55 +02:00
Anthony Ramine
ce6aab6cb1 Do not root DOMImplementation::document 2015-10-19 09:36:54 +02:00
Anthony Ramine
6ab7f64620 Return a reference in BrowserContext::active_window() 2015-10-19 09:36:53 +02:00
Anthony Ramine
409b5e3695 Return a reference in Document::window() 2015-10-19 09:36:52 +02:00
Anthony Ramine
e889b0914b Do not root Document::window 2015-10-19 09:36:51 +02:00
Anthony Ramine
264e943597 Return a reference in BrowserContext::frame_element() 2015-10-17 02:17:25 +02:00
Anthony Ramine
1f31d5b856 Return a reference in BrowserContext::active_document() 2015-10-17 02:07:52 +02:00
Anthony Ramine
6c7f37061b Implement Deref<Target=T> for JS<T> where T: Reflectable
We can only borrow JS<T> from rooted things, so it's safe to deref it.
The only types that provide mutable JS<T> things are MutHeap<JS<T>> and
MutNullableHeap<JS<T>>, which don't actually expose that they contain
JS<T> values.
2015-10-17 01:58:52 +02:00
bors-servo
e31ad01103 Auto merge of #8054 - jdm:jdm-patch-1, r=metajack
Add more information to ORGANIZATION.md



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8054)
<!-- Reviewable:end -->
2015-10-16 14:53:34 -06:00
bors-servo
628c2a0432 Auto merge of #8036 - frewsxcv:travis, r=metajack
Travis CI building cleanup, enable caching

The only reason the Dockerfile was introduced is because the default
machines that Travis uses are based on Ubuntu 12.04, which has some very
old incompatible dependencies with Servo. Docker allowed use to use a
new version of Ubuntu, allowing us to compile with ease. I just learned
that they are currently beta testing 14.04 support:

http://docs.travis-ci.com/user/trusty-ci-environment/

This commit updates our Travis config to remove our dependency on Docker
and just build directly on the images, reducing some complexity and also
overhead of downloading Docker images.

In addition, this commit also enables caching of the .servo and .cargo
directories on Travis in an attempt to reduce build times.

http://docs.travis-ci.com/user/caching/#Arbitrary-directories

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8036)
<!-- Reviewable:end -->
2015-10-16 14:09:36 -06:00
bors-servo
7a71f39320 Auto merge of #8031 - creativcoder:spec-links-js, r=jdm
added spec link for type mapping

Hi. added some of the spec links, that i could understand from the spec. Please mention if anything else needs to be added.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8031)
<!-- Reviewable:end -->
2015-10-16 13:38:30 -06:00
Josh Matthews
4616f638a6 Add more information to ORGANIZATION.md 2015-10-16 15:02:50 -04:00
bors-servo
0e4abddd37 Auto merge of #7947 - jimberlage:7856/buffered-amount, r=jdm
Adds bufferedAmount to Websocket (fixes #7856).

This adds a readonly bufferedAmount attribute to Servo's websocket implementation.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7947)
<!-- Reviewable:end -->
2015-10-16 12:56:44 -06:00
bors-servo
90dd3cdc09 Auto merge of #8023 - mrobinson:zindex, r=pcwalton
Z-index should be ignored for non-positioned stacking contexts

When a stacking-context is not positioned, its z-index should be
ignored. This is per CSS 2 9.9.1. The only exception to this is when
the z-index is applied to an element with display: flex | inline-flex.
inline-flex does not appear to be implemented at this time so we only
do this for flex.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8023)
<!-- Reviewable:end -->
2015-10-16 12:13:49 -06:00
Martin Robinson
f2a66af463 Z-index should be ignored for non-positioned stacking contexts
When a stacking-context is not positioned, its z-index should be
ignored. This is per CSS 2 9.9.1. The only exception to this is when
the z-index is applied to an element with display: flex | inline-flex.
inline-flex does not appear to be implemented at this time so we only
do this for flex.
2015-10-16 10:36:13 -07:00
bors-servo
96ca6b6c6d Auto merge of #8035 - sliz1:issues/8028, r=Manishearth
Issue 8028: `parse_html` should take `Url` rather than `&Url`

fixes #8028

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8035)
<!-- Reviewable:end -->
2015-10-16 11:24:08 -06:00
bors-servo
ef1f0479ad Auto merge of #8051 - Ms2ger:patches, r=larsbergstrom
Remove long-obsolete /etc/patches directory.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8051)
<!-- Reviewable:end -->
2015-10-16 09:30:14 -06:00
bors-servo
724d4e191b Auto merge of #8043 - eefriedman:async-listener-mut, r=jdm
Make AsyncResponseListener methods take `&mut self`

Gets rid of a bunch of useless `Cell`/`RefCell` types.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8043)
<!-- Reviewable:end -->
2015-10-16 08:49:13 -06:00
bors-servo
7c7dbde0f4 Auto merge of #8026 - eefriedman:js-rooting, r=nox
Fix uses of JS<T> as a type on the stack

`JS<T>` belongs on the heap, and only on the heap.  This is a collection of fixes so that code uses either `Root<T>` or `&T` to pass around garbage-collected pointers.

Ideally, we could completely ban constructing a `JS<T>` outside of constructor functions, but we aren't quite there yet.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8026)
<!-- Reviewable:end -->
2015-10-16 08:05:59 -06:00
Ms2ger
18f36d075c Remove long-obsolete /etc/patches directory. 2015-10-16 14:47:58 +02:00
bors-servo
ed7ddaa97a Auto merge of #8050 - Ms2ger:test-ref, r=frewsxcv
Use wptrunner for some old-style reftests.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8050)
<!-- Reviewable:end -->
2015-10-16 06:46:23 -06:00
Ms2ger
c80d061e20 Move border_collapse_missing_cell_a.html to wpt reftests. 2015-10-16 14:44:59 +02:00
Ms2ger
e619617239 Move border_code_tag.html to wpt reftests. 2015-10-16 14:40:55 +02:00
Ms2ger
107c59d5ca Move border_black_{groove,ridge,solid}.html to wpt reftests. 2015-10-16 14:28:47 +02:00
Ms2ger
1f921c367a Move blur_a.html to wpt reftests. 2015-10-16 14:25:49 +02:00
Ms2ger
cd9fc225f5 Move block_replaced_content_{a,b}.html to wpt reftests. 2015-10-16 14:20:16 +02:00
Ms2ger
6d5da817e8 Move block_image.html to wpt reftests. 2015-10-16 14:15:20 +02:00
bors-servo
efc4ce876f Auto merge of #8045 - frewsxcv:reftests, r=jdm
Use wptrunner for some old-style reftests.

Part of #5618

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8045)
<!-- Reviewable:end -->
2015-10-16 05:05:48 -06:00
bors-servo
67e8ec997f Auto merge of #8049 - Ms2ger:warnings, r=nox
Enable some warnings for generated code.

None of those warnings currently occur.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8049)
<!-- Reviewable:end -->
2015-10-16 04:09:42 -06:00
Ms2ger
1f03ce1b1f Enable some warnings for generated code.
None of those warnings currently occur.
2015-10-16 12:07:57 +02:00
Corey Farwell
64715b5448 Move servo_center_a.html to wpt reftests. 2015-10-15 23:24:33 -04:00
Corey Farwell
b2eaf1cf4f Move setattribute_id_restyle_a.html to wpt reftests. 2015-10-15 23:21:52 -04:00
Corey Farwell
84af16af95 Move simple_inline_absolute_containing_block_a.html to wpt reftests. 2015-10-15 23:19:24 -04:00
Corey Farwell
2bb4d4c99f Move stacked_layers.html to wpt reftests. 2015-10-15 23:16:20 -04:00
Corey Farwell
d27c262f00 Move stacking_context_overflow_a.html to wpt reftests. 2015-10-15 23:13:17 -04:00
Corey Farwell
541baa5168 Move stacking_context_overflow_relative_outline_a.html to wpt reftests. 2015-10-15 23:09:46 -04:00
Corey Farwell
b17a395415 Move style_is_in_doc.html to wpt reftests. 2015-10-15 23:06:44 -04:00
Corey Farwell
cb6c43c18e Move submit_focus_a.html to wpt reftests. 2015-10-15 23:03:24 -04:00
Corey Farwell
af75427f19 Move table_auto_width.html to wpt reftests. 2015-10-15 23:00:18 -04:00
Corey Farwell
bb22a642b9 Move table_caption_bottom_a.html to wpt reftests. 2015-10-15 22:57:20 -04:00
Corey Farwell
91588f555e Move table_caption_top_a.html to wpt reftests. 2015-10-15 22:54:17 -04:00