Commit graph

14965 commits

Author SHA1 Message Date
Adrian Heine
3f61d63e72 Add failing test for FontCacheTask::add_web_font
This test tries to add a web font to the `FontCacheTask`. The added web font
corresponds to the following CSS font definition:

```
@font-face {
  font-family: "test family";
  src: local(test font face);
}
```

This test fails, since `FontCacheTask` tries to get the value for the key
"test font face" from `self.web_families`, but previously initialized
a value for the key "test family".
2016-01-04 15:23:26 +01:00
bors-servo
5ad9207a99 Auto merge of #9076 - Ms2ger:viewport, r=jgraham
Add support for viewport size adjustments in wptrunner.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9076)
<!-- Reviewable:end -->
2016-01-04 14:46:16 +05:30
Ms2ger
796c77df33 Move viewport_percentage_vw_vh_a.html and viewport_percentage_vw_vh_b.html to wpt reftests. 2016-01-04 10:15:59 +01:00
Ms2ger
797b21eaf1 Move viewport_percentage_vmin_vmax_a.html and viewport_percentage_vmin_vmax_b.html to wpt reftests. 2016-01-04 09:58:15 +01:00
Ms2ger
1619a908b3 Add support for viewport size adjustments in wptrunner. 2016-01-04 09:58:14 +01:00
bors-servo
ee6c5ae2fb Auto merge of #9138 - nox:enable-canvas-linestyles-linecap-001, r=frewsxcv
Enable /canvas_linestyles_linecap_001.htm (fixes #5714)

CanvasDrawingStyles.lineCap was implemented and the test passes now.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9138)
<!-- Reviewable:end -->
2016-01-04 02:30:15 +05:30
bors-servo
1096183cce Auto merge of #9146 - GuillaumeGomez:generate_partial_eq, r=nox
Generate PartialEq automatically

r? @nox

Fixes #8804

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9146)
<!-- Reviewable:end -->
2016-01-04 00:37:10 +05:30
Guillaume Gomez
99ac1a81cc Generate PartialEq automatically 2016-01-03 18:07:09 +01:00
bors-servo
99e0cc76d7 Auto merge of #9125 - nox:enable-type-change-state, r=jdm
Enable again /the-input-element/type-change-state.html.ini (fixes #3657)

It doesn't seem to intermittently timeout anymore.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9125)
<!-- Reviewable:end -->
2016-01-03 21:26:02 +05:30
bors-servo
efb145e744 Auto merge of #9139 - nox:enable-canvas-compositing-globalcompositeoperation-001, r=frewsxcv
Enable canvas_compositing_globalcompositeoperation_001.htm (fixes #5803)

This always pass now.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9139)
<!-- Reviewable:end -->
2016-01-03 20:32:34 +05:30
bors-servo
e13a25d022 Auto merge of #9133 - nox:enable-xmlhttprequest-timeout-worker-twice, r=jdm
Enable xmlhttprequest-timeout-worker-twice.html (fixes #4041)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9133)
<!-- Reviewable:end -->
2016-01-03 17:16:37 +05:30
bors-servo
8cecf4de92 Auto merge of #9129 - frewsxcv:update-wpt-return-code, r=jgraham
Fix incorrect return code for 'update-wpt' mach command

`mach update-wpt` should return 1 if it exits in an unclean state

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9129)
<!-- Reviewable:end -->
2016-01-03 15:19:31 +05:30
bors-servo
336bbd67ba Auto merge of #9141 - nox:enable-canvas-complexshapes, r=jdm
Enable canvas_complexshapes_*_001.htm (fixes #6748, #6780)

Serde landed bincode support, so we can probably enable these again.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9141)
<!-- Reviewable:end -->
2016-01-03 13:56:04 +05:30
bors-servo
0d3ff45f05 Auto merge of #9140 - nox:enable-canvas-state-restore-001, r=jdm
Enable canvas_state_restore_001.htm (fixes #5764)

The test now always pass.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9140)
<!-- Reviewable:end -->
2016-01-03 13:17:38 +05:30
bors-servo
4a141fb63f Auto merge of #9137 - iszak:issue-9135, r=nox
Fixes https://github.com/servo/servo/issues/9135

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9137)
<!-- Reviewable:end -->
2016-01-03 11:33:00 +05:30
bors-servo
1b0053f8b1 Auto merge of #9136 - frewsxcv:htmlbodyelement-background, r=nox
HTMLBodyElement 'background' attribute improvements

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9136)
<!-- Reviewable:end -->
2016-01-03 11:00:49 +05:30
bors-servo
7f156b8c12 Auto merge of #9072 - Manishearth:password-placeholder, r=eefriedman
Fix placeholders for password inputs

currently they show dots instead of the placeholder text

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9072)
<!-- Reviewable:end -->
2016-01-03 10:21:26 +05:30
Manish Goregaokar
cc5844a373 Move placeholder logic out of get_raw_textinput_value 2016-01-03 09:47:30 +05:30
bors-servo
9da739acef Auto merge of #9123 - karyon:clippy_cleanup, r=Manishearth
Fix a bunch of clippy lints

This fixes about 130 clippy lints. Let me know if i should split up the commit.

I wasn't sure about some of the changes, especially map_or instead of map(...).unwrap_or(...) and if let instead of single arm match were not always a strict improvement in my opinion, but i'll leave that decision to the reviewer :)

There are about 150 lints left which i thought were clippy bugs or i didn't know how to fix.

cc @Manishearth

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9123)
<!-- Reviewable:end -->
2016-01-03 09:16:34 +05:30
Anthony Ramine
8625ff555b Enable canvas_complexshapes_*_001.htm (fixes #6748, #6780)
Serde landed bincode support, so we can probably enable these again.
2016-01-03 04:28:21 +01:00
bors-servo
6844adbe2d Auto merge of #9082 - nikkisquared:websocket_bufferedamount, r=eefriedman
Updated WebSocket buffered_amount to match change to html specification

The size of WebSocket's buffered_amount was changed[1] after an issue I opened, which I found while working on WebSocket previously[2]. @jdm suggested I make a PR updating Servo reflecting this, and so I have! As always, I'd like to hear any feedback on anything I can do to improve this.

[1] https://github.com/whatwg/html/issues/296
[2] https://github.com/servo/servo/pull/8218#issuecomment-152021737 point 5)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9082)
<!-- Reviewable:end -->
2016-01-03 08:43:55 +05:30
bors-servo
ebf4ce8288 Auto merge of #9070 - antrik:debug-fonts, r=nox
Derive Debug for more font-related types

Needs to pull in newer ipc-channel and azure.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9070)
<!-- Reviewable:end -->
2016-01-03 08:11:57 +05:30
bors-servo
06d84e6e4b Auto merge of #9134 - iszak:issue-9132, r=nox
Fixes https://github.com/servo/servo/issues/9132

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9134)
<!-- Reviewable:end -->
2016-01-03 07:32:09 +05:30
Anthony Ramine
88a3dde3c4 Enable canvas_state_restore_001.htm (fixes #5764)
The test now always pass.
2016-01-03 03:01:39 +01:00
Olaf Buddenhagen
3c5a3ca4ff Derive Debug for more font-related types 2016-01-03 02:54:55 +01:00
Olaf Buddenhagen
7197e7f311 cargo-update azure to get <Debug> 2016-01-03 02:54:52 +01:00
Olaf Buddenhagen
61149b316a cargo-update ipc-channel to get <Debug> 2016-01-03 02:54:49 +01:00
Anthony Ramine
ad45043ddf Enable canvas_compositing_globalcompositeoperation_001.htm (fixes #5803) 2016-01-03 02:54:09 +01:00
Anthony Ramine
8727412e3f Enable /canvas_linestyles_linecap_001.htm (fixes #5714)
CanvasDrawingStyles.lineCap was implemented and the test passes now.
2016-01-03 02:48:31 +01:00
Iszak Bryan
c02a56c01a Optimise get_root_element for elements in documents 2016-01-03 01:07:00 +00:00
bors-servo
1ac330837f Auto merge of #9130 - iszak:issue-9081, r=nox
Fixes https://github.com/servo/servo/issues/9081

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9130)
<!-- Reviewable:end -->
2016-01-03 06:27:54 +05:30
Corey Farwell
1a808219a8 Remove parsed attribute 'background' field on HTMLBodyElement
https://github.com/servo/servo/issues/7863
2016-01-02 16:54:38 -08:00
bors-servo
debafc127d Auto merge of #9126 - nox:enable-document-lastModified-01, r=jdm
Enable document-lastModified-01.html (fixes #3228)

The test has been fixed.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9126)
<!-- Reviewable:end -->
2016-01-03 05:49:42 +05:30
Iszak Bryan
603d0a54ea Use atom's for matching to gain performance benefits 2016-01-03 00:13:52 +00:00
Corey Farwell
9a1fd472ab Implement 'background' IDL attribute on <body> 2016-01-02 15:42:25 -08:00
Iszak Bryan
1fa3d36167 Store state of fill or style for canvas pattern 2016-01-02 23:35:04 +00:00
bors-servo
618c1070cc Auto merge of #9127 - nox:enable-xmlhttprequest-timeout-worker-overrides, r=jdm
Enable xmlhttprequest-timeout-worker-overrides.html (fixes #3887)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9127)
<!-- Reviewable:end -->
2016-01-03 04:14:24 +05:30
Johannes Linke
6b215f38ee Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
Corey Farwell
f87d2c1df7 Fix incorrect return code for 'update-wpt' mach command
`mach update-wpt` should return 1 if it exits in an unclean state
2016-01-02 14:03:13 -08:00
Anthony Ramine
5cb681007f Enable xmlhttprequest-timeout-worker-twice.html (fixes #4041) 2016-01-02 20:18:53 +01:00
bors-servo
c0835ec336 Auto merge of #9122 - ckimes89:inputevent, r=nox
Add 'input' event for HTMLInputElement

Fixes #8613

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9122)
<!-- Reviewable:end -->
2016-01-03 00:31:55 +05:30
Anthony Ramine
482dddcaa4 Enable xmlhttprequest-timeout-worker-overrides.html (fixes #3887) 2016-01-02 19:32:55 +01:00
Anthony Ramine
b50839e3d5 Enable document-lastModified-01.html (fixes #3228)
The test has been fixed.
2016-01-02 19:24:51 +01:00
Anthony Ramine
0032fdce3b Enable again /the-input-element/type-change-state.html.ini (fixes #3657)
It doesn't seem to intermittently timeout anymore.
2016-01-02 19:21:15 +01:00
Chad Kimes
0e663e0f2f De-duplicate input event send code 2016-01-02 11:31:22 -05:00
Chad Kimes
12a0884f51 Add 'input' event for HTMLInputElement 2016-01-02 11:07:12 -05:00
bors-servo
b8fd8d9991 Auto merge of #9116 - adrianheine:patch-1, r=jdm
Update virtualenv package name for Debian systems

Since Debian Jessie (current stable), the executable is in a `virtualenv` package.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9116)
<!-- Reviewable:end -->
2016-01-02 19:40:10 +05:30
bors-servo
b1ca3d1cdf Auto merge of #9111 - frewsxcv:rm-parsed-attr, r=nox
Remove parsed attribute 'bgcolor' field HTMLTableElement

https://github.com/servo/servo/issues/7863

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9111)
<!-- Reviewable:end -->
2016-01-02 18:20:10 +05:30
Adrian Heine né Lang
be45affda6 Update virtualenv package name for Debian systems
Since Debian Jessie (current stable), the executable is in a `virtualenv` package.
2016-01-01 21:47:48 +01:00
bors-servo
d4efd2047c Auto merge of #9115 - notriddle:everybody_do_the_flop, r=larsbergstrom
Revert "Update glutin"

This reverts commit ff7524af09. [It breaks stuff](https://gist.github.com/notriddle/3c0dff9b4dc3a1a7b82f)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9115)
<!-- Reviewable:end -->
2016-01-02 00:14:42 +05:30