Commit graph

11912 commits

Author SHA1 Message Date
Simon Sapin
47cd74fe69 Remove another duplicate copy of Ahem. 2015-08-07 21:38:58 +02:00
Simon Sapin
d903354687 Use the user stylesheet for Ahem in old-style reftests. 2015-08-07 21:38:57 +02:00
Simon Sapin
649301fd35 Make the Ahem font available to test-css and test-wpt tests.
Provide a user stylesheet with an `@font-face` rule for it.

Fix #6195.

Many previously-failing tests now pass, and a few previously-passing now fail.

Among the latter, `font-family-013.htm` and `fonts-013.htm` are testing
that the Ahem font is not used for characters it doesn’t have a glyph for.
They were passing because Ahem was not available at all,
and now fail because we don’t implement font fallback correctly.

The others also use Ahem, but I don’t understand yet what’s going on exactly.
2015-08-07 21:38:55 +02:00
Simon Sapin
5e008d1cbd Import the Ahem font from http://www.w3.org/Style/CSS/Test/Fonts/Ahem/ 2015-08-07 21:08:53 +02:00
Simon Sapin
4833204653 Support @font-face in user and user agent stylesheets. 2015-08-07 21:08:53 +02:00
Simon Sapin
9317a30b91 Add support for user stylesheets specified on the command-line. 2015-08-07 21:08:52 +02:00
Simon Sapin
4bcb1dc926 Use getopts from crates.io 2015-08-07 21:08:51 +02:00
bors-servo
49cbcc97ed Auto merge of #7062 - servo:update-some, r=SimonSapin
Update most dependencies.

This excludes:

* tenacious, as it has not yet been updated to the current rustc
  (Manishearth/rust-tenacious#6);
* ipc-channel, as it doesn't build on linux upstream.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7062)
<!-- Reviewable:end -->
2015-08-07 13:05:39 -06:00
Simon Sapin
d58ea4f15f Mark some tests as failing on Linux, not just Ubuntu 14.04.
They also fail for me on Archlinux.
2015-08-07 20:02:29 +02:00
bors-servo
361d94d23e Auto merge of #6415 - jgraham:dom_load, r=jdm
Add DOMLoad message to constellation that is sent after the DOM Load event is dispatched.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6415)
<!-- Reviewable:end -->
2015-08-07 11:30:33 -06:00
bors-servo
9bd5291aea Auto merge of #6957 - servo:cssparserup, r=larsbergstrom+dzbarsky
Upgrade cssparser

Pick up the fix for https://github.com/servo/rust-cssparser/issues/76

`*.ini` files removal based on running `./mach test-css tests/wpt/css-tests/css21_dev/html4/*color*`, I didn’t run the whole test suite.

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6957)
<!-- Reviewable:end -->
2015-08-07 10:48:47 -06:00
Simon Sapin
90d7d11a23 Upgrade cssparser
Pick up the fix for https://github.com/servo/rust-cssparser/issues/76
2015-08-07 18:34:16 +02:00
Ms2ger
289b421490 Update most dependencies.
This excludes:

* cssparser, as it contains changes that cause test failures;
* tenacious, as it has not yet been updated to the current rustc
  (Manishearth/rust-tenacious#6);
* ipc-channel, as it doesn't build on linux upstream.
2015-08-07 18:06:14 +02:00
James Graham
36da7e2270 Add DOMLoad message to constellation that is sent after the DOM Load event is dispatched. 2015-08-07 16:55:13 +01:00
bors-servo
29c12dfc56 Auto merge of #7000 - Ms2ger:space, r=nox
Remove some stray whitespace.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7000)
<!-- Reviewable:end -->
2015-08-07 09:40:50 -06:00
bors-servo
568bd92236 Auto merge of #7041 - mbrubeck:marker_fragments, r=pcwalton
Allow list markers to contain multiple fragments

Fixes #6913. r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7041)
<!-- Reviewable:end -->
2015-08-07 08:55:24 -06:00
Matt Brubeck
4e8d2b0e38 Allow list markers to contain multiple fragments
Fixes #6913.
2015-08-07 07:33:06 -07:00
Corey Farwell
da44f31cb1 Remove invalid file path in ignored_files for tidying 2015-08-07 10:24:19 -04:00
bors-servo
96cb8261e6 Auto merge of #7007 - birkenfeld:patch-1, r=Ms2ger
Fix minor typo in lint docstring.

It checks for public, not private fields.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7007)
<!-- Reviewable:end -->
2015-08-07 08:10:07 -06:00
Ms2ger
7e179d9245 Handle url parse errors in Location#assign more gracefully. 2015-08-07 15:47:55 +02:00
Ms2ger
da88e9ad9f Inline Document::load_anchor_href into its only caller. 2015-08-07 15:24:13 +02:00
Ms2ger
40b5c4586e Push the url parsing out of Window::load_url.
This will allow the two callers to decide on the base url independently.
2015-08-07 15:19:16 +02:00
bors-servo
b4e30da3db Auto merge of #7003 - notriddle:master, r=Ms2ger
GC pause reporting

Closes #6968.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7003)
<!-- Reviewable:end -->
2015-08-07 06:14:12 -06:00
bors-servo
9ed2df3de7 Auto merge of #6993 - frewsxcv:rm-dead-codegen, r=Ms2ger
Remove dead Python code in binding generating code

Fixes #6956

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6993)
<!-- Reviewable:end -->
2015-08-07 04:51:31 -06:00
bors-servo
ec9f79067d Auto merge of #7057 - fitzgen:unnecessary-mut-variables, r=jdm
Remove unnecessary `mut` on variables declared in ports/gonk/src/window.rs

Fixes #7048.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7057)
<!-- Reviewable:end -->
2015-08-07 03:09:24 -06:00
Ms2ger
2a97ab36f7 Dispatch message events for WebSocket. 2015-08-07 10:58:33 +02:00
bors-servo
44c4bb00c1 Auto merge of #7053 - connorimes:move-net-error-list, r=mbrubeck
Move net_error_list from net to net_traits. Fixes #7050.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7053)
<!-- Reviewable:end -->
2015-08-07 01:55:20 -06:00
bors-servo
17263a525b Auto merge of #7043 - pcwalton:th-width, r=Ms2ger
script: Make the legacy presentational attributes on `<td>` apply to `<th>` too.

Makes the Google SERPs not so narrow.

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7043)
<!-- Reviewable:end -->
2015-08-07 00:40:54 -06:00
bors-servo
50a30121bf Auto merge of #7021 - glennw:fix-7018, r=pcwalton
Fix display list optimization on retina displays. Fixes #7018.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7021)
<!-- Reviewable:end -->
2015-08-06 23:26:24 -06:00
bors-servo
1ddef2997a Auto merge of #6977 - pcwalton:containing-block-link-crash, r=mbrubeck
layout: Make sure anonymous table flows are statically positioned.

The failing `float-applies-to-*` CSS 2.1 tests never really should have
been passing in the first place; they depend on floats inside
fixed-layout tables working properly, which they don't.

Closes #6078.
Closes #6709.
Closes #6858.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6977)
<!-- Reviewable:end -->
2015-08-06 22:11:04 -06:00
Nick Fitzgerald
140c39b78f Remove unnecessary mut on variables declared in ports/gonk/src/window.rs
Fixes #7048.
2015-08-06 20:04:07 -07:00
Patrick Walton
ed4172b2c6 layout: Make sure anonymous table flows are statically positioned.
The failing `float-applies-to-*` CSS 2.1 tests never really should have
been passing in the first place; they depend on floats inside
fixed-layout tables working properly, which they don't.

Closes #6078.
Closes #6709.
Closes #6858.
2015-08-06 18:49:07 -07:00
bors-servo
78792cced2 Auto merge of #7017 - glennw:stb-update, r=pcwalton
Update stb-image to get JPEG progressive support.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7017)
<!-- Reviewable:end -->
2015-08-06 19:46:19 -06:00
bors-servo
da06c2dda0 Auto merge of #7011 - pcwalton:inline-margin-intrinsic-size, r=mbrubeck
layout: Take inline margins into account when determining the intrinsic sizes of fragments.

Avoids a needless wrapped line in the repository name on GitHub.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7011)
<!-- Reviewable:end -->
2015-08-06 18:28:13 -06:00
bors-servo
76b4bae6ee Auto merge of #7054 - Manishearth:rollup, r=Manishearth
Rollup of 3 pull requests

- Successful merges: #7028, #7034, #7039
- Failed merges:

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7054)
<!-- Reviewable:end -->
2015-08-06 17:43:09 -06:00
Manish Goregaokar
2114ffd0b9 Rollup merge of #7039 - jdm:squashed-6992, r=jdm
Add a reftest for <body background>. Fixes #6838

Rebased from #6992.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7039)
<!-- Reviewable:end -->
2015-08-07 03:45:30 +05:30
Manish Goregaokar
730ee4d341 Rollup merge of #7034 - Ms2ger:mem, r=jdm
Create a run_with_memory_reporting method to reduce the boilerplate a…

…ssociated with registering memory reporters.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7034)
<!-- Reviewable:end -->
2015-08-07 03:45:29 +05:30
Manish Goregaokar
fb28b3ddb4 Rollup merge of #7028 - Yoric:master, r=SimonSapin
Issue #5478 - use std::process::exit instead of lib::exit in constellation.rs

First patch.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7028)
<!-- Reviewable:end -->
2015-08-07 03:45:28 +05:30
bors-servo
b21584c862 Auto merge of #7052 - mbrubeck:rollup, r=mbrubeck
Rollup of 2 pull requests

- Successful merges: #7014, #7015
- Failed merges:
2015-08-06 16:13:12 -06:00
Connor Imes
b526214a3d Move net_error_list from net to net_traits. Fixes #7050. 2015-08-06 16:37:08 -05:00
Matt Brubeck
b5f9c06776 Rollup merge of #7015 - mbrubeck:arc-box, r=Ms2ger
Replace Arc<Box<TextRun>> with Arc<TextRun>

Removes an extraneous level of indirection.

r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7015)
<!-- Reviewable:end -->
2015-08-06 14:07:32 -07:00
Matt Brubeck
26087aab38 Rollup merge of #7014 - mbrubeck:box-string, r=pcwalton
Use Box<str> instead of Box<String> for UnscannedTextFragmentInfo

This removes an extraneous layer of indirection, without increasing the size of the `SpecificFragmentInfo` enum (because `Box<str>` is a fat pointer, which is the same size as the `FlowRef` trait object that is already stored in `InlineAbsoluteHypotheticalFragmentInfo`)

r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7014)
<!-- Reviewable:end -->
2015-08-06 14:07:31 -07:00
bors-servo
889ef3aef0 Auto merge of #7010 - HarryLovesCode:master, r=jdm
Fixes #6879 (Improper connections to the devtools server)

Modifies how we behave in the case that something attempts to communicate with the devtools server improperly. This includes...

- Invalid encoding (Non `UTF8`) of the packet length / error parsing / none specified
- JSON encoding error (such as a `Parser::SyntaxError` or a `Parser::IoError`)

Happy to make changes if anyone has an issue with this or feels another way is more idiomatic!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7010)
<!-- Reviewable:end -->
2015-08-06 14:00:26 -06:00
bors-servo
522ebe7a3b Auto merge of #7027 - Ms2ger:lock-stderr, r=jdm
Lock stderr while printing the alert() message.

2a7f262b7d was unsufficient for the case where
the interleaved output was actually on stderr rather than stdout, such as
output from the error macro.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7027)
<!-- Reviewable:end -->
2015-08-06 12:46:31 -06:00
Ms2ger
c98d35ea6b Lock stderr while printing the alert() message.
2a7f262b7d was unsufficient for the case where
the interleaved output was actually on stderr rather than stdout, such as
output from the error macro.
2015-08-06 20:11:37 +02:00
bors-servo
cf4b411832 Auto merge of #7008 - pcwalton:floated-negative-margins, r=mbrubeck
layout: Take negative margins of floats into account when placing them.

Removes extraneous inline space on GitHub pull requests.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7008)
<!-- Reviewable:end -->
2015-08-06 11:55:58 -06:00
Patrick Walton
df29b1e878 script: Make the legacy presentational attributes on <td> apply to
`<th>` too.

Makes the Google SERPs not so narrow.
2015-08-06 10:26:45 -07:00
Michael Howell
7cb4d77c74 GC profiling.
* Closes #6968.

* Test case for GC profiling thanks to @jdm!
2015-08-06 09:45:11 -07:00
bors-servo
0a8ea98183 Auto merge of #7002 - Ms2ger:eventtarget, r=jdm
Remove the unused WorkerGlobalScope::eventtarget method.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7002)
<!-- Reviewable:end -->
2015-08-06 10:31:58 -06:00
s142857
29c4643a4a Add a reftest for <body background>. Fixes #6838 2015-08-06 10:57:56 -04:00