Commit graph

15570 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
dad1738ba7 geckolib: Fix :link and :any-link pseudo-element matching
The logic was switched between them.
2016-02-13 16:05:15 +01:00
Emilio Cobos Álvarez
eddec5cc06 style: Use fnv hashing for pseudo-elements 2016-02-13 16:05:14 +01:00
Emilio Cobos Álvarez
dd503dfacb Refactor style to be completely backend-independent
This commit refactors the style crate to be completely independent of
the actual implementation and pseudo-elements supported.

This also adds a gecko backend which introduces parsing for the
anonymous box pseudo-elements[1], although there's still no way of
querying them.

https://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSAnonBoxList.h
2016-02-13 16:05:14 +01:00
bors-servo
a164176876 Auto merge of #9622 - nox:heapsize, r=ecoal95
Bump heapsize to 0.3

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9622)
<!-- Reviewable:end -->
2016-02-13 18:50:41 +05:30
Anthony Ramine
966da85791 Derive HeapSizeOf for GradientDisplayItem 2016-02-13 11:13:20 +01:00
Anthony Ramine
55dcee94be Bump heapsize to 0.3 2016-02-13 11:13:19 +01:00
Anthony Ramine
26a82a6338 Bump layers to 0.2.1 2016-02-13 00:08:14 +01:00
Anthony Ramine
77dd83562e Bump azure to 0.4.1 2016-02-13 00:08:13 +01:00
Anthony Ramine
680c817d53 Bump url to 0.5.5 2016-02-13 00:08:12 +01:00
Anthony Ramine
899a5bbfa4 Bump selectors to 0.4.1 2016-02-13 00:08:11 +01:00
Anthony Ramine
a4a5d847c4 Bump html5ever to 0.5.1 2016-02-13 00:08:10 +01:00
Anthony Ramine
874fa5595f Bump euclid to 0.6.2 2016-02-13 00:08:08 +01:00
Anthony Ramine
d0ab28a735 Bump cssparser to 0.5.3 2016-02-13 00:08:07 +01:00
Anthony Ramine
e2d9734609 Bump string_cache to 0.2.9 2016-02-13 00:08:06 +01:00
Anthony Ramine
2d6ac4da97 Bump app_units to 0.2.1 2016-02-13 00:08:05 +01:00
Anthony Ramine
c6262c368f Reorder dependencies in some Cargo.toml files 2016-02-13 00:08:04 +01:00
bors-servo
088963f774 Auto merge of #9611 - danlrobertson:i9557, r=larsbergstrom
Download extra stdlib only when required: #9557

Split [`ensure_bootstrap`](https://github.com/danlrobertson/servo/blob/i9557/python/servo/command_base.py#L397-L422) into two phases including a phase checking the compiler, and a phase checking for target libraries. E.g.

```
    # should download the stdlib for "i686-unknown-linux-gnu", "arm-linux-androideabi"
    # and the hosts target
    ./mach build -d --target i686-unknown-linux-gnu --android
    # should only download the stdlib for the hosts target
    ./mach build -d
```

Let me know if I missed anything! There are a few parts of this patch in its current state that I'm not a huge fan of, but I couldn't think of a better way in the moment.

Still new to working on servo, so any comments or critiques are welcome!

Fix #9557

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9611)
<!-- Reviewable:end -->
2016-02-13 03:09:51 +05:30
Daniel Robertson
0df4118db9 Download extra std lib when cross-compiling #9557
Split ensure_bootstrap into two phases including a phase checking the
compiler, and a phase checking for target libraries.
2016-02-12 14:58:08 -05:00
bors-servo
520ca258d4 Auto merge of #9618 - jongiddy:fix-mp4-size, r=jdm
Calculate correct mp4 header length.

The calculation of MP4 frame length is incorrect, shifting values by 1 bit instead of 8 bits.  It works for the test MP4 file because the length of the frame is less than 256 bytes, so the shifted values are all zero.

This PR changes the code to calculate the length correctly. It adds a test to check a fake long stream. Still not long enough to test completely, but at least detects the problem with the original code.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9618)
<!-- Reviewable:end -->
2016-02-13 01:20:58 +05:30
Jonathan Giddy
ec0ea465ec Calculate mp4 header length correctly. 2016-02-12 17:39:34 +00:00
bors-servo
a746522b58 Auto merge of #9606 - servo:bump-js, r=Ms2ger
Bump js to get fix from servo/rust-mozjs#237

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9606)
<!-- Reviewable:end -->
2016-02-12 21:45:51 +05:30
Anthony Ramine
71092e142d Bump js to get fix from servo/rust-mozjs#237 2016-02-12 17:15:09 +01:00
bors-servo
ee11a847dd Auto merge of #9605 - Ms2ger:update-wpt, r=Ms2ger
Update web-platform-tests to revision 95aad3bd9b82b5c65d84d53517b65ba084de9394

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9605)
<!-- Reviewable:end -->
2016-02-12 20:14:24 +05:30
bors-servo
76381418bd Auto merge of #9601 - vishy1618:issue_9442, r=Wafflespeanut
Exit mach with an error when building on a path with spaces. Fixes #9442

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9601)
<!-- Reviewable:end -->
2016-02-12 19:20:35 +05:30
Ms2ger
e8ed816728 Update web-platform-tests to revision 95aad3bd9b82b5c65d84d53517b65ba084de9394 2016-02-12 09:41:14 +01:00
bors-servo
a24e86e76f Auto merge of #9614 - paulrouget:inputEventBubbles, r=mbrubeck
input event should bubble

No test because: https://github.com/servo/servo/issues/9574#issuecomment-181558144

Fix #9574

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9614)
<!-- Reviewable:end -->
2016-02-12 12:00:31 +05:30
Paul Rouget
54e737c2b0 input event should bubble 2016-02-12 07:27:27 +01:00
bors-servo
faa349fb87 Auto merge of #9607 - mbrubeck:chaos, r=jgraham
Add a "mach test-wpt --chaos" mode for reproducing intermittent failures using rr

This adds a new `--chaos` flag to the `test-wpt` and `test-css` commands.  This will run a test repeatedly until it fails, recording it with the rr debugger in chaos mode. Requires a recent master build of rr.

```
./mach test-wpt --chaos test.html
```
is shorthand for:
```
./mach test-wpt --repeat-until-unexpected \
                --debugger rr \
                --debugger-args "record --chaos" \
                --include test.html
```
This PR currently includes changes to wptrunner which were also submitted upstream as w3c/wptrunner#170.  We should not merge this until that upstream PR is merged. CC @jgraham

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9607)
<!-- Reviewable:end -->
2016-02-12 03:34:47 +05:30
bors-servo
b870aa9087 Auto merge of #8987 - jdm:devtoolsreport, r=glennw
Report CSS errors to script task for further processing.

This was a missing piece from #8838.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8987)
<!-- Reviewable:end -->
2016-02-12 01:45:58 +05:30
Josh Matthews
a1f0b39340 Notify devtools about new script globals sooner. 2016-02-11 14:48:48 -05:00
Josh Matthews
e6d906dbbf Report CSS errors to script task for further processing. 2016-02-11 14:48:47 -05:00
Matt Brubeck
7c740d395b Add an rr chaos mode 2016-02-11 11:18:12 -08:00
Matt Brubeck
d11a70f53a Factor out common code for mach test-wpt/test-css 2016-02-11 10:01:05 -08:00
Matt Brubeck
6f55e949a1 Add --repeat-until-unexpected option to wptrunner 2016-02-11 10:01:04 -08:00
bors-servo
5942e9e3cb Auto merge of #8491 - jdm:lazycompile, r=Ms2ger
Compile raw inline event handlers lazily. Resolves #8489.

Per https://html.spec.whatwg.org/multipage/webappapis.html#getting-the-current-value-of-the-event-handler and https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-attributes:event-handlers-2 .

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8491)
<!-- Reviewable:end -->
2016-02-11 20:15:11 +05:30
Josh Matthews
2796a4dfa8 Compile raw inline event handlers lazily. Resolves #8489. 2016-02-11 15:44:52 +01:00
bors-servo
3703e6d4f6 Auto merge of #9602 - servo:bc-prop, r=nox
Use JS_GetOwnPropertyDescriptorById in BrowserContext (fixes #6984).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9602)
<!-- Reviewable:end -->
2016-02-11 18:22:59 +05:30
Brandon Fairchild
6bb61afa7c Use JS_GetOwnPropertyDescriptorById in BrowserContext (fixes #6984). 2016-02-11 12:35:06 +01:00
Suvish Varghese Thoovamalayil
ded08d5fe6 Exit mach with an error when building on a path with spaces. Fixes #9442 2016-02-11 16:28:58 +05:30
bors-servo
0b27807ad4 Auto merge of #9596 - Jayflux:hotfix/5643, r=jdm
removing warning about 3D acceleration, fixes #5643

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9596)
<!-- Reviewable:end -->
2016-02-11 01:15:45 +05:30
Jason Williams
01a80b3172 removing warning about 3D acceleration, fixes #5643 2016-02-10 19:33:53 +00:00
bors-servo
a31f31e819 Auto merge of #6677 - jdm:iframeblockonload, r=Ms2ger
Make iframes block the enclosing document's load event

It occurs to me as I write this that this doesn't handle the case of removing the iframe from the document before it's finished loading. Consider this an early feedback release!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6677)
<!-- Reviewable:end -->
2016-02-10 19:50:29 +05:30
Josh Matthews
c5fe8f7401 Add a test for panicking when reloading an iframe twice. 2016-02-10 09:20:07 -05:00
Josh Matthews
047bb060c1 Improve documentation for new methods. 2016-02-10 09:20:06 -05:00
Josh Matthews
d6ea4b60a4 Make location_reload.html not trigger resource exhaustion. 2016-02-10 09:20:05 -05:00
Ms2ger
6ce5b7527a Ensure that base_multiple.html fails rather than times out in the typical failure case. 2016-02-10 09:20:04 -05:00
Ms2ger
0f383a50a1 Rewrite and clarify base_multiple.html. 2016-02-10 09:20:03 -05:00
Josh Matthews
b7bff424da Reorder marking of pending parser-blocking scripts to avoid reentrancy.
In cases where a pending parser-blocking script is executing, if the script
caused another load to complete (eg. by removing a pending iframe from the
DOM, thus terminating the load) then the currently-executing script would
attempt to execute itself again.
2016-02-10 09:20:02 -05:00
Josh Matthews
fbae86281d Add test for unblocking onload when removing an iframe from the tree. 2016-02-10 09:20:01 -05:00
Josh Matthews
e9b98ad5fa Make iframes block the enclosing document's load event. Fixes #6663. 2016-02-10 09:20:00 -05:00