Commit graph

1529 commits

Author SHA1 Message Date
Ms2ger
bfb96b9448 Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e. 2015-07-14 10:38:54 +02:00
Ms2ger
86e94786ae Stop panicking while establishing a WebSocket connection. 2015-07-14 16:01:59 +02:00
bors-servo
0fb9f22ff7 Auto merge of #6611 - jdm:websocketorigin, r=jdm
Add Origin header to WebSocket connections.

Closes #6532.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6611)
<!-- Reviewable:end -->
2015-07-13 23:39:16 -06:00
bors-servo
91ce002241 Auto merge of #6554 - dzbarsky:master, r=Ms2ger
Test namespace prefix for element equality



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6554)
<!-- Reviewable:end -->
2015-07-13 22:24:22 -06:00
Ms2ger
365937160d Update the test-css expectations for the OSX update. 2015-07-14 11:08:36 +02:00
Josh Matthews
15102d9c53 Update web-platform-tests expected data 2015-07-13 12:23:54 -04:00
Ms2ger
4c0c60a4d6 Return the parsed URL from WebSocket#url. 2015-07-13 14:21:18 +02:00
Ms2ger
8b45f9f51c Implement Window#top. 2015-07-11 18:00:59 +02:00
David Zbarsky
0fa8e51432 Test element prefix for element equality 2015-07-11 02:50:39 -04:00
bors-servo
52e857dd7b Auto merge of #6561 - dzbarsky:namespace, r=Ms2ger
Implement Node#isDefaultNamespace and Node#lookupNamespaceURI (fixes #1826)



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6561)
<!-- Reviewable:end -->
2015-07-10 06:44:25 -06:00
David Zbarsky
326b2a7161 Test element prefix for element equality 2015-07-10 14:41:37 -04:00
Patrick Walton
54b9aa2cb4 Update WPT expectations 2015-07-07 15:01:18 -07:00
Patrick Walton
24f10df436 layout: Modify styles for replaced content as appropriate during
incremental flow construction.

Fixes jumpiness on lots of Web sites.
2015-07-07 15:00:52 -07:00
Corey Farwell
91b0671e1d Join tokens when stringifying DOMTokenList
Previous, it would return the original String straight from the
AttrValue, which might contain extraaneous whitespace. The spec
specifies to just join the tokens together with \x20

https://dom.spec.whatwg.org/#stringification-behavior
2015-07-08 04:42:50 +09:00
bors-servo
0688488a7f Auto merge of #6565 - dwins:issue_6452_image_padding, r=pcwalton
Fix for #6542 - <img> top-padding adds margin

I wrote this patch that makes the test from #6542 render as expected but I am not confident it is actually the right fix.  Should the padding be included in the 'ascent' metric for images, or am I just introducing a bug that happens to offset the one I'm trying to fix?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6565)
<!-- Reviewable:end -->
2015-07-07 06:27:13 -06:00
David Winslow
b665c7b9df Correct expectations for newly passing tests 2015-07-07 13:23:24 -04:00
bors-servo
ae01e97efa Auto merge of #6487 - pcwalton:background-tiling, r=glennw
gfx: Use a pattern instead of tiling images manually.

r? @SimonSapin

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6487)
<!-- Reviewable:end -->
2015-07-07 05:42:07 -06:00
Patrick Walton
3500af37d0 gfx: Use a pattern instead of tiling images manually. 2015-07-07 10:41:47 -07:00
David Winslow
e76d232702 Add reftest for img padding/margin behavior 2015-07-06 16:11:53 -04:00
bors-servo
1e16047846 Auto merge of #6559 - kball:IS1824-implement-Node.baseURI, r=Ms2ger
Implement Node.baseURI

Addresses Issue #1824.  Implements Node.baseURI based on https://www.w3.org/Bugs/Public/show_bug.cgi?id=20976#c32

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6559)
<!-- Reviewable:end -->
2015-07-06 11:04:45 -06:00
Kevin Ball
a269f7f7b5 Update document-base-url test expected outcome to PASS 2015-07-06 11:09:53 -07:00
Kevin Ball
9ac5eb3e3c Fix code review concerns on tests 2015-07-06 08:31:39 -07:00
bors-servo
c022262826 Auto merge of #6505 - ttaubert:issue/4666-crypto-getRandomValues, r=Ms2ger
Implement crypto.getRandomValues()

Didn't touch mozjs or rust-mozjs because implementing that in the code generator didn't seem too easy. I'm using the same workaround that the TextDecoder does.

Using the OsRng should be the right choice here? As the OS keeps state for us we wouldn't need to have a global rng instance to keep around.

Fixes #4666.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6505)
<!-- Reviewable:end -->
2015-07-05 22:16:19 -06:00
bors-servo
cc73aad447 Auto merge of #6546 - michaelwu:slim-layoutdatawrapper, r=Ms2ger
Remove LayoutChan from LayoutDataWrapper

Saves 32 bytes in Node.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6546)
<!-- Reviewable:end -->
2015-07-05 21:39:12 -06:00
Kevin Ball
dbbab3b113 Implement Node.baseURI 2015-07-05 15:29:04 -07:00
Corey Farwell
3cfd4d14e2 Unit test for util::str::split_html_space_chars
I was concerned for a little bit that passing just whitespace to the
split_html_space_chars function would result in len > 0, so I wrote this
small unit test to make sure it does the right thing. Even though it
does do the right thing, I think there's still value in committing the
unit test.
2015-07-04 18:57:42 -07:00
Michael Wu
1a014beb08 Remove LayoutChan from LayoutDataWrapper 2015-07-04 03:54:40 -04:00
Tim Taubert
92874a89d2 Implement window.crypto.getRandomValues() 2015-07-03 18:34:00 +02:00
Brandon Mintern
0a3981cdc9 Update Worker location for redirects
Fixes #4146
2015-07-02 11:25:33 -04:00
Ms2ger
3fb5197361 Update web-platform-tests to revision 87398b8448f699e3e324148795891658f2fa16dd 2015-06-30 14:11:21 +02:00
bors-servo
525d483b82 Auto merge of #6448 - servo:wpt_20150623, r=Manishearth
Update web-platform-tests to revision 4d96cccabc2feacd48e1dab9afc22b8af2225572



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6448)
<!-- Reviewable:end -->
2015-06-28 14:53:18 -06:00
Ms2ger
c66c6af0ba Update web-platform-tests to revision 4d96cccabc2feacd48e1dab9afc22b8af2225572 2015-06-28 22:52:24 +02:00
bors-servo
6f25ecea3f Auto merge of #6507 - Ms2ger:node-insert, r=Manishearth
Fix a bug in Node::pre_insert.

It was accidentally broken in 3ce368fa28.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6507)
<!-- Reviewable:end -->
2015-06-28 14:01:47 -06:00
Ms2ger
9b270f6238 Disable the upstream tests. 2015-06-28 20:36:33 +02:00
Ms2ger
322a6977f9 Duplicate some canvas tests in preparation for upstream changes. 2015-06-28 17:40:39 +02:00
Ms2ger
b333501a46 Add a test for insertBefore(x, x), and move the test for replaceChild(x, x) to a better place. 2015-06-28 17:23:31 +02:00
Ms2ger
0b680dc9bd Fix a bug in Node::pre_insert.
It was accidentally broken in 3ce368fa28.
2015-06-28 15:59:01 +02:00
Ms2ger
bf50379833 Enable experimental features in the multiple_stylesheets_cascading test (fixes #6466). 2015-06-26 17:15:20 +02:00
Ms2ger
73a7e92bfd Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0. 2015-06-25 20:02:36 +02:00
Joel Teichroeb
d33579183a Implement the Image NamedConstructor for HTMLImageElement 2015-06-24 10:42:54 -07:00
bors-servo
3e90a60170 Auto merge of #6447 - servo:viewport, r=larsbergstrom
Mark the viewport tests as flaky on Mac.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6447)
<!-- Reviewable:end -->
2015-06-24 07:02:52 -06:00
Ms2ger
6342c544a1 Disable the flaky viewport tests.
The flaky_macos annotation does not appear to work.
2015-06-24 14:57:16 +02:00
bors-servo
6247a96761 Auto merge of #6223 - nox:merge-generic-functions, r=Ms2ger
Merge generic funs to share them across all bindings (fixes #2684)



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6223)
<!-- Reviewable:end -->
2015-06-24 03:54:56 -06:00
Anthony Ramine
a90983553b Merge generic funs to share them across all bindings (fixes #2684) 2015-06-24 11:34:30 +02:00
bors-servo
95d643c995 Auto merge of #6410 - hyowon:create_pattern, r=pcwalton
Create pattern from HTMLCanvasElement or CanvasRenderingContext2D.

r? @nox @pcwalton 
cc @yichoi

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6410)
<!-- Reviewable:end -->
2015-06-24 00:39:48 -06:00
James Graham
7f63309602 Add onkey* global event handler attributes 2015-06-23 21:48:38 -07:00
Hyowon Kim
0e8491fb8c Create pattern from HTMLCanvasElement or CanvasRenderingContext2D. 2015-06-24 09:56:28 +09:00
Glenn Watson
39ddbbb0e1 Implement enough of 3d transforms spec to run the CSS FPS demo. 2015-06-23 14:10:44 +10:00
bors-servo
8c784ceeea Auto merge of #6371 - nox:url, r=Ms2ger
Implement URL and trivially missing URLUtils members

Fixes #6322.

Still no mutation whatsoever in URLUtils.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6371)
<!-- Reviewable:end -->
2015-06-21 10:22:06 -06:00
Ms2ger
4a90f21e42 Use hostname rather than host when appending a port manually.
The host attribute returns the port as well as the hostname.
2015-06-21 16:52:17 +02:00