Commit graph

13757 commits

Author SHA1 Message Date
nxnfufunezn
468eaac096 Accept Brotli-compressed HTTP responses #8156 2015-11-01 08:59:18 +05:30
bors-servo
959ae86bd0 Auto merge of #8274 - bholley:state_restyle_hints, r=pcwalton
Implement state-based restyle hints



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8274)
<!-- Reviewable:end -->
2015-11-01 07:23:51 +05:30
bors-servo
1add1185ab Auto merge of #8287 - eefriedman:label-unused-var, r=Manishearth
Fix unused variable warnings.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8287)
<!-- Reviewable:end -->
2015-11-01 06:19:03 +05:30
bors-servo
4cf49d4d09 Auto merge of #8037 - eefriedman:net-send-sniff, r=jdm
Consistently use content-type sniffing with all protocols.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8037)
<!-- Reviewable:end -->
2015-11-01 03:50:29 +05:30
Bobby Holley
564170f41b State restyle hint tests.
This handles the state part of #6942.
2015-10-31 14:28:52 -07:00
Bobby Holley
45fc7f2930 Implement restyle hints for state changes. 2015-10-31 14:28:52 -07:00
Bobby Holley
41dfd07d16 Rev rust-selectors. 2015-10-31 14:28:51 -07:00
Eli Friedman
dcaa764b57 Fix unused variable warnings. 2015-10-31 12:21:51 -07:00
Eli Friedman
aef06f2f20 Consistently use content-type sniffing with all protocols. 2015-10-31 11:26:17 -07:00
bors-servo
53d8f04ac4 Auto merge of #8260 - martiansideofthemoon:my-code-fix, r=Manishearth
Implementing activation behavior for <label>

Attempt to resolve #8179 
@Manishearth , could you give me some resources having more information about what each function in `Activatable` does? The code compiles on my machine but I guess a lot more is needed

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8260)
<!-- Reviewable:end -->
2015-10-31 22:25:27 +05:30
bors-servo
f432c3c49f Auto merge of #7956 - gkbrk:binary_mime, r=jdm
Made binary files show an info message instead of garbled text.

Content-types with the TopLevel "Application" such as

* application/octet-stream
* application/pdf

now show an info message instead of trying to view binary data as html.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7956)
<!-- Reviewable:end -->
2015-10-31 21:30:52 +05:30
KALPESH KRISHNA
af91c980f2 Implementing activation behavior for <label> 2015-10-31 21:12:22 +05:30
bors-servo
789aa5e3a0 Auto merge of #8283 - servo:update-tests, r=Ms2ger
Update tests



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8283)
<!-- Reviewable:end -->
2015-10-31 20:52:17 +05:30
Ms2ger
5450053b02 Update CSS tests to revision d13905941293af83ea8c3c1750dba652e0423fb0 2015-10-31 16:21:47 +01:00
Ms2ger
b492a3e8b1 Update web-platform-tests to revision 7123012427f92f0dc38a120e6e86a75b6c03aab5 2015-10-31 16:21:44 +01:00
Gökberk Yaltıraklı
aa7a3919c4 Made binary files show an info message instead of garbled text. 2015-10-31 18:07:13 +03:00
bors-servo
912359fcbd Auto merge of #8282 - Ms2ger:handle_mouse_move_event, r=Manishearth
Cleanup Document::handle_mouse_move_event a bit.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8282)
<!-- Reviewable:end -->
2015-10-31 18:57:31 +05:30
bors-servo
37c03c7816 Auto merge of #8262 - nxnfufunezn:Remove_JS_root, r=Ms2ger
Removed JS::root #8251

Fixes #8251 

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8262)
<!-- Reviewable:end -->
2015-10-31 18:24:23 +05:30
nxnfufunezn
d8ef3809a6 Removed JS::root Fixes #8251 2015-10-31 18:15:16 +05:30
Ms2ger
e05d9d0646 Cleanup Document::handle_mouse_move_event a bit. 2015-10-31 13:25:32 +01:00
bors-servo
521a87180a Auto merge of #8162 - bholley:centralize_event_states, r=pcwalton
Centralize event states in rust-selectors

This still needs a rev bump on rust-selectors once https://github.com/servo/rust-selectors/pull/55 gets merged.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8162)
<!-- Reviewable:end -->
2015-10-31 10:05:45 +05:30
Bobby Holley
79ac365a68 Move EventState to rust-selectors. 2015-10-30 21:02:35 -07:00
Bobby Holley
f7f27a8146 Hoist checked and indeterminate state into EventState.
This is necessary for those selectors to take advantage of restyle hints.
2015-10-30 21:01:50 -07:00
bors-servo
7512aa69c0 Auto merge of #8114 - nfallen:7695, r=eefriedman
Implement DOMStringMap::SupportedPropertyNames and NamedNodeMap::SupportedPropertyNames #7695

Here is a draft for issue #7695 with web platform tests. 
Thanks for reviewing!
https://dom.spec.whatwg.org/#namednodemap
https://html.spec.whatwg.org/multipage/infrastructure.html#domstringmap

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8114)
<!-- Reviewable:end -->
2015-10-31 08:04:08 +05:30
bors-servo
913ac56875 Auto merge of #8279 - frewsxcv:clippy-fixes, r=eefriedman
Fix some rust-clippy violations



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8279)
<!-- Reviewable:end -->
2015-10-31 06:51:47 +05:30
Nova Fallen
73c4af626a Implement DOMStringMap::SupportedPropertyNames and NamedNodeMap::SupportedPropertyNames 2015-10-30 21:13:29 -04:00
bors-servo
84bf368c3b Auto merge of #8276 - mrobinson:fragment-ticks, r=mbrubeck
Snap fragment scroll points to pixel boundaries

These don't match hardware pixels, but work well enough when the device
pixel ratio is a whole number.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8276)
<!-- Reviewable:end -->
2015-10-31 05:48:00 +05:30
bors-servo
2d0d9ca040 Auto merge of #8254 - connorimes:android-params-file, r=larsbergstrom
Read params from a file on Android



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8254)
<!-- Reviewable:end -->
2015-10-31 04:47:22 +05:30
Corey Farwell
16fa9cabc9 Fix some rust-clippy violations 2015-10-30 18:41:22 -04:00
bors-servo
cff9a54569 Auto merge of #8257 - eefriedman:reorder-webfont-check, r=mbrubeck
Attempt to fix webfont-related intermittent test failures.

I'm not completely sure the race condition outlined in this patch is
actually the race condition causing failures... but it's a possibility.

(I plan to run this through try a couple of times to see if it actually helps.)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8257)
<!-- Reviewable:end -->
2015-10-31 03:43:54 +05:30
Martin Robinson
04dc8ed201 Snap fragment scroll points to pixel boundaries
These don't match hardware pixels, but work well enough when the device
pixel ratio is a whole number.
2015-10-30 17:11:23 -04:00
bors-servo
c887aaf694 Auto merge of #8273 - michaelwu:cleanups, r=jdm
Minor cleanups for DOM



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8273)
<!-- Reviewable:end -->
2015-10-31 01:29:25 +05:30
Eli Friedman
4f866625cc Attempt to fix webfont-related intermittent test failures.
I'm not completely sure the race condition outlined in this patch is
actually the race condition causing failures... but it seems reasonable.
2015-10-30 12:50:05 -07:00
Michael Wu
434a5f1d8b Initialize dom struct fields in declaration order 2015-10-30 15:40:43 -04:00
Michael Wu
7e786fb8ac Infer types when appropriate 2015-10-30 15:23:29 -04:00
bors-servo
1dfc0481ef Auto merge of #8267 - Ms2ger:cleanup, r=frewsxcv
Various improvements.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8267)
<!-- Reviewable:end -->
2015-10-30 23:55:34 +05:30
bors-servo
d8cb2762af Auto merge of #8176 - nxnfufunezn:features-argument, r=mbrubeck
Added support for using --features argument with --android

Fixes #8173 
r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8176)
<!-- Reviewable:end -->
2015-10-30 22:53:40 +05:30
nxnfufunezn
03bf082fb3 Added support for using --features argument with --android 2015-10-30 22:08:04 +05:30
bors-servo
f00e6fe7d8 Auto merge of #8268 - servo:manifest-fixes, r=Ms2ger
A couple WPT manifest fixes



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8268)
<!-- Reviewable:end -->
2015-10-30 21:48:16 +05:30
Corey Farwell
d9a1c06fb4 Add missing WPT to reftest_nodes 2015-10-30 12:16:16 -04:00
Ms2ger
48c232f72b Remove the pointless TextEncoder::encoding field. 2015-10-30 16:48:30 +01:00
Corey Farwell
4b5f8e9970 Alphabetize entries in the WPT manifests 2015-10-30 11:46:41 -04:00
Ms2ger
e8914cd829 Update URLSearchParams to use USVString and String.
This matches the specification.
2015-10-30 16:33:29 +01:00
Ms2ger
7ccc5ad7da Support unions that contain USVStrings. 2015-10-30 16:24:04 +01:00
Connor Imes
5a2459748b Read params from a file on Android 2015-10-30 10:02:45 -05:00
Ms2ger
a67eaa2d82 Avoid string copies in handle_find_{element,elements}_css. 2015-10-30 15:46:17 +01:00
Ms2ger
2f88264351 Use if let in ScriptTask::notify_devtools. 2015-10-30 15:45:48 +01:00
Ms2ger
b0841e007e Avoid a Vec copy in SendParam::extract. 2015-10-30 15:45:25 +01:00
bors-servo
f85f22c04f Auto merge of #8261 - frewsxcv:atom-macro-static-str, r=Ms2ger
Use 'atom!' macro for known static strings



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8261)
<!-- Reviewable:end -->
2015-10-30 19:20:25 +05:30
Corey Farwell
edc1493932 Use 'atom!' macro for known static strings 2015-10-30 08:30:13 -04:00