Glenn Watson
6a85102a5a
Ensure that when outputting screenshots, animations are ticked as required.
...
Fixes timeout in transition_calc.html.
2016-01-28 11:49:47 +10:00
Glenn Watson
de81d88324
Add comment to explain callback ordering
2016-01-27 09:25:20 +10:00
Glenn Watson
dfaf28d5cd
Fixes additional calls to rAF.
...
Often, a rAF callback will request another rAF from the callback itself.
Previously, the constellation would quickly receive two messages saying
that there were no animations, and then there are animations again in the
situation above. This would make the compositor tick the new animation straight
away, causing strange fluctuations and timings in rAF callbacks.
Instead, only send the NoAnimationCallbacks message if the animation
callback queue is still empty after invoking the callbacks.
This fixes rAF timing, which now runs at the correct (vsync) framerate.
2016-01-22 16:08:28 +10:00
bors-servo
1c6fb0f04e
Auto merge of #9367 - Chandler:url_origin, r=jdm
...
Add origin to Location and Url API.
The origin field is part of location and url spec but hasn't been implemented in servo yet.
https://html.spec.whatwg.org/multipage/browsers.html#dom-location-origin
https://url.spec.whatwg.org/#dom-url-origin
All of the logic to calculate the url origin exists in https://github.com/servo/rust-url
This review threads through rust-url origin implementation into the servo location and url API.
This fixes one websockets test:
servo/tests/wpt/web-platform-tests/websockets/opening-handshake/003.html
testing done:
./mach test-wpt tests/wpt/web-platform-tests/websockets/
I'm brand new to rust so feedback is appreciated, thanks!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9367 )
<!-- Reviewable:end -->
2016-01-22 04:25:49 +05:30
Chandler Abraham
1ee9ccba21
add origin to location and url api
2016-01-21 11:06:41 -08:00
bors-servo
52da517a14
Auto merge of #9393 - Ms2ger:renumber-prepare, r=jdm
...
Update HTMLScriptElement::prepare to match the changed specification.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9393 )
<!-- Reviewable:end -->
2016-01-21 23:31:18 +05:30
bors-servo
1ba1fb0b7f
Auto merge of #9380 - servo:cssparserup, r=SimonSapin
...
Update cssparser.
https://github.com/servo/rust-cssparser/pull/91
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9380 )
<!-- Reviewable:end -->
2016-01-21 22:45:51 +05:30
Simon Sapin
6fd46b5e6a
Update cssparser.
...
https://github.com/servo/rust-cssparser/pull/91
2016-01-21 17:58:03 +01:00
bors-servo
262974cb11
Auto merge of #9396 - psdh:fixwebidltests, r=Ms2ger
...
update tests for WebIDL.py from mozilla-central
Fixes #9388
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9396 )
<!-- Reviewable:end -->
2016-01-21 22:00:22 +05:30
Prabhjyot Singh Sodhi
da40818f25
update to latest tests
2016-01-21 21:53:47 +05:30
Ms2ger
678cb9da84
Update HTMLScriptElement::prepare to match the changed specification.
2016-01-21 11:54:41 +01:00
bors-servo
c80fa33864
Auto merge of #9391 - nikkisquared:test_redirect, r=jdm
...
Test redirect_count boundaries in Fetch
I've written two new tests for Fetch: one to test the highest possible number of redirects succeeds; and another to ensure a failure in Fetch by requesting too many redirects. I also wrote a helper function to be used by each test, since the main difference is how many times they try to redirect.
I've also changed the check against redirect_count in http_network fetch to compare it as greater than or equal to 20, as opposed to being only equal to 20. That's outside of the spec, but in my experience testing for pure equality can easily create errors. Even though it's technically not possible for redirect_count be above 20, bizarre bugs during runtime certainly happen.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9391 )
<!-- Reviewable:end -->
2016-01-21 02:36:38 +05:30
Nikki
5426df32de
tests for boundary conditions on redirect_count in fetch
2016-01-20 13:03:08 -07:00
Lanza
cfc3500dbf
Implement HTMLDetailsElement. Fixes #9216
2016-01-20 16:15:37 +01:00
bors-servo
6663f28f0d
Auto merge of #9358 - jsanders:refactor-websocket-closing, r=jdm
...
Clean up websocket closing code
Fixes #7860 .
This also changes quite a bit about how close codes are implemented, I believe bringing them closer in line with the spec. Instead of saving off the close code sent by the client, it uses the code from the server's closing handshake. It also handles `NO_STATUS` in what I believe is the correct manner. Making this work required a change to the test harness to make the `/echo` websocket handler echo the code sent by the client and handle `NO_STATUS` properly, rather than always replying with `NORMAL`.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9358 )
<!-- Reviewable:end -->
2016-01-19 21:08:09 +05:30
bors-servo
77d3fbcca3
Auto merge of #9284 - bholley:bootstrap_stylo, r=SimonSapin
...
Add Partial Implementation of style DOM traits for Gecko, and some basic glue to let Gecko call into Servo
The wrapper stuff is partially-complete, modulo some unimplemented methods. The glue code is just a toy for now. Regardless, I think it's worth getting some of this stuff in-tree to minimize breakage.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9284 )
<!-- Reviewable:end -->
2016-01-19 14:19:10 +05:30
James Sanders
482d23bb19
Fix test-tidy errors
2016-01-18 17:50:25 -07:00
James Sanders
d121958a17
Make closing related code more clear and more correct
2016-01-18 17:37:16 -07:00
Nikki
4165786767
Test setting response.body by fetching on a server
2016-01-18 15:12:31 -07:00
bors-servo
03a0b73538
Auto merge of #9360 - jsanders:accept-protocols-sequence, r=KiChjang
...
Accept WebSocket protocols as string or sequence
Fixes #9053
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9360 )
<!-- Reviewable:end -->
2016-01-19 02:18:28 +05:30
Emilio Cobos Álvarez
41af23bdec
Bump rust-mozjs
2016-01-18 20:49:27 +01:00
bors-servo
8f7f7e11b7
Auto merge of #9341 - askalski:issue9338, r=KiChjang
...
Fix to issue 9338
Fixes #9338 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9341 )
<!-- Reviewable:end -->
2016-01-18 20:30:41 +05:30
askalski
cf107bca4f
replacing custom fmin function with standard f32.min in components/layout/display_list_builder.rs
2016-01-18 12:17:19 +01:00
bors-servo
ce0b89d310
Auto merge of #9362 - KiChjang:move-fetch-request, r=Ms2ger
...
Rename net/fetch/request.rs to net/fetch/methods.rs and move Request …
…to net_traits.
Also updated unit tests to correctly reference and use Request and Fetch methods.
This is in preparation for XHR and EventSource (possibly WebSocket as well), which rely on using Request, but we cannot make the script crate depend upon the net crate.
cc @nikkisquared @jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9362 )
<!-- Reviewable:end -->
2016-01-18 16:05:56 +05:30
Ms2ger
ff0992401e
Remove remaining reference to the long-disappeared JSRef type.
2016-01-18 09:52:23 +01:00
bors-servo
754120684b
Auto merge of #9364 - servo:rm-libc, r=KiChjang
...
Bump indirect 'libc' dependency through 'malloc_buf'
https://github.com/servo/servo/issues/8608
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9364 )
<!-- Reviewable:end -->
2016-01-18 11:54:19 +05:30
Keith Yeung
a53661f6c8
Rename net/fetch/request.rs to net/fetch/methods.rs and move Request to net_traits
2016-01-18 00:57:19 -05:00
bors-servo
6a38d55cea
Auto merge of #9363 - mattkuo:clean-imports, r=KiChjang
...
Remove remaining unused imports
Closes #9361
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9363 )
<!-- Reviewable:end -->
2016-01-18 11:04:06 +05:30
Corey Farwell
74d75c40f9
Bump indirect 'libc' dependency through 'malloc_buf'
...
https://github.com/servo/servo/issues/8608
2016-01-18 00:17:14 -05:00
Matthew Kuo
9d2eacf039
Remove remaining unused imports
2016-01-17 20:55:53 -08:00
James Sanders
0bffffd8f5
Make WebSocket constructor take (DOMString or sequence<DOMString>)
2016-01-17 21:33:04 -07:00
bors-servo
6b81a72228
Auto merge of #9339 - frewsxcv:bump-glutin, r=SimonSapin
...
Upgrade servo-glutin to latest published version (0.4.7)
servo/glutin@servo-v0.4.5...servo-v0.4.7
The primary reason I'm updating servo-glutin is to indirectly pick up
these changes:
vberger/wayland-kbd#9
Daggerbot/x11-rs#32
...which results in two fewer libc 0.1.x dependency
servo#8608
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9339 )
<!-- Reviewable:end -->
2016-01-18 09:03:12 +05:30
bors-servo
eb7b9309dd
Auto merge of #9351 - fstr:9343-unused-imports, r=nox
...
Removed unused imports from devtools crate
Patch for #9343
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9351 )
<!-- Reviewable:end -->
2016-01-18 07:48:03 +05:30
bors-servo
55d8228ed6
Auto merge of #9354 - stspyder:master, r=KiChjang
...
Update XMLHTTPRequest FetchBodyInit and related Impl (#9291 )
Fixes #9291 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9354 )
<!-- Reviewable:end -->
2016-01-18 04:19:59 +05:30
St.Spyder
763b99258f
Update XHR BodyInit, update extract method impl
2016-01-18 02:26:13 +05:30
bors-servo
380541bd48
Auto merge of #9352 - mattkuo:cleanup-private-types, r=nox
...
Convert private types to public
fixes #9347
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9352 )
<!-- Reviewable:end -->
2016-01-18 01:58:01 +05:30
bors-servo
7f16b4e47b
Auto merge of #9348 - therealkbhat:script-cleanup, r=Wafflespeanut
...
Remove unused imports in script
Fixes #9345 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9348 )
<!-- Reviewable:end -->
2016-01-18 00:36:34 +05:30
bors-servo
2ad562042b
Auto merge of #9349 - therealkbhat:layout-cleanup, r=SimonSapin
...
Remove unused imports in layout
Fixes #9346 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9349 )
<!-- Reviewable:end -->
2016-01-17 23:14:37 +05:30
bors-servo
41a3961ba5
Auto merge of #9344 - nerith:gfx, r=Wafflespeanut
...
Remove multiple unused imports in gfx
Fixes #9342 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9344 )
<!-- Reviewable:end -->
2016-01-17 20:26:45 +05:30
bors-servo
7ae16c7ea3
Auto merge of #9294 - KiChjang:xhr-usvstring, r=nox
...
Change all DOMStrings to USV strings for XHR
This is in compliance with the new spec [here](https://xhr.spec.whatwg.org/#xmlhttprequest ).
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9294 )
<!-- Reviewable:end -->
2016-01-17 19:40:46 +05:30
bors-servo
557d79bb87
Auto merge of #9194 - nerith:info, r=nox
...
Remove the w3c link for the Event interface
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9194 )
<!-- Reviewable:end -->
2016-01-17 18:58:42 +05:30
Matthew Kuo
8ecc120211
changed gfx private types to public
2016-01-17 04:48:32 -08:00
bors-servo
a4e805d909
Auto merge of #9337 - fmmartins:urlsearchparams-getall, r=nox
...
Implement URLSearchParams::getAll
Fixes #5439 .
Please tell me if anything is wrong or needs some change!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9337 )
<!-- Reviewable:end -->
2016-01-17 18:13:17 +05:30
Florian Strübe
6502820ab3
Removed unused imports from devtools crate
2016-01-17 13:18:15 +01:00
Matthew Kuo
64f5818428
changed devtools private types to public
2016-01-17 04:13:33 -08:00
Matthew Kuo
58174448de
changed compositor private types to public
2016-01-17 04:11:58 -08:00
bors-servo
2f0daa1d47
Auto merge of #9304 - ecoal95:sequence-in-unions, r=nox
...
webidl: Implement sequences in unions
Unblocks #9053
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9304 )
<!-- Reviewable:end -->
2016-01-17 17:19:49 +05:30
Kishor Bhat
4c5eeb1f58
Remove unused imports in layout
2016-01-17 13:17:23 +05:30
Kishor Bhat
1ca2073979
Remove unused imports in script
2016-01-17 12:41:28 +05:30
Corey Farwell
f5c6c607c2
Upgrade servo-glutin to latest published version (0.4.7)
...
https://github.com/servo/glutin/compare/servo-v0.4.5...servo-v0.4.7
The primary reason I'm updating servo-glutin is to indirectly pick up
these changes:
https://github.com/vberger/wayland-kbd/pull/9
https://github.com/Daggerbot/x11-rs/pull/32
...which results in two fewer libc 0.1.x dependency
https://github.com/servo/servo/issues/8608
2016-01-16 16:04:54 -05:00