Commit graph

3197 commits

Author SHA1 Message Date
Corey Farwell
5c408d2be9 rust-geom API changes
https://github.com/servo/rust-geom/pull/81
2015-06-13 12:28:21 -07:00
Ms2ger
4624fc18d2 Correct the README. 2015-06-13 12:15:18 +02:00
bors-servo
434183c944 Auto merge of #6366 - eddyb:preserve-ua-on-redirect, r=Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6366)
<!-- Reviewable:end -->
2015-06-13 03:16:38 -06:00
Eduard Burtescu
21bb8bf8ad Update "preserve UserAgent on redirect" test to be browser-agnostic. 2015-06-13 12:14:37 +03:00
bors-servo
9474e62d38 Auto merge of #6157 - hyowon:canvas_pattern_fill, r=nox
Issue #6056
Depends on servo/rust-azure#160

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6157)
<!-- Reviewable:end -->
2015-06-13 01:49:50 -06:00
Hyowon Kim
00240e5550 Implementation of pattern fill style for canvas. 2015-06-13 14:35:13 +09:00
Eduard Burtescu
9a87f830fc Preserve UserAgent header on redirect. 2015-06-12 21:44:22 +03:00
bors-servo
b87df12ac2 Auto merge of #6343 - jgraham:css_disable_test, r=Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6343)
<!-- Reviewable:end -->
2015-06-12 09:40:52 -06:00
James Graham
2439ce6ca7 Disable unstable CSS test 2015-06-12 16:03:24 +01:00
bors-servo
cf03352d7c Auto merge of #6339 - michaelwu:let-var-replacement, r=jgraham
let can't be used without specifying a newer JS version at the moment.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6339)
<!-- Reviewable:end -->
2015-06-12 08:57:56 -06:00
bors-servo
b9d53a2950 Auto merge of #6346 - nnethercote:improve-mem-unit-testing, r=Manishearth
r? @Manishearth

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6346)
<!-- Reviewable:end -->
2015-06-12 04:08:53 -06:00
bors-servo
f163f2bf0d Auto merge of #6337 - hyowon:shadow_attrs, r=nox
The first step of the implementation for shadows in canvas.
r? @nox @jdm 
cc @yichoi

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6337)
<!-- Reviewable:end -->
2015-06-12 03:27:07 -06:00
Ms2ger
d9995d9541 Revert "Don't try to connect to "ws://"+location.host+"/" in WebSocket tests."
This reverts commit 61a9f9d7d4.
2015-06-12 10:43:33 +02:00
Ms2ger
2212cacef2 Revert "Remove the SCHEME_AND_DOMAIN constant."
This reverts commit 8ddb9cfcb6.
2015-06-12 10:43:19 +02:00
Ms2ger
230c4201f3 Revert "WebSocket constructor should not panic"
This reverts commit 877c369e0b.
2015-06-12 09:40:57 +02:00
Hyowon Kim
473afdb196 Add attributes for canvas shadows. 2015-06-12 09:40:00 +09:00
Nicholas Nethercote
ab59a201f8 Improve unit testing of util::mem. 2015-06-11 15:23:27 -07:00
Ms2ger
8ddb9cfcb6 Remove the SCHEME_AND_DOMAIN constant.
All its users are connecting to port 80, which is not typically under the
control of the wpt server.
2015-06-11 21:25:08 +02:00
Ms2ger
61a9f9d7d4 Don't try to connect to "ws://"+location.host+"/" in WebSocket tests.
This will connect on port 80, which is not typically under the control of the
wpt server.
2015-06-11 21:16:57 +02:00
bors-servo
31b8384b93 Auto merge of #6341 - jgraham:css_update_1010, r=larsbergstrom
…36d7b389f3e6ab

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6341)
<!-- Reviewable:end -->
2015-06-11 11:12:33 -06:00
James Graham
8bd5ccb82b Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-06-11 17:57:53 +01:00
Michael Wu
8aa026e741 Switch from let to var in mozilla wpt tests
let can't be used without specifying a newer JS version at the moment.
2015-06-11 12:10:30 -04:00
Jinwoo Song
877c369e0b WebSocket constructor should not panic
Make an early return when the WebSocket connection fails in the constructor.
Also let the WebSockect connection to be closed when the connection could
not be established.

Fixes #6082.
2015-06-11 13:58:04 +02:00
bors-servo
407c94a6c8 Auto merge of #6313 - Ms2ger:enable-url, r=jgraham
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6313)
<!-- Reviewable:end -->
2015-06-10 01:47:27 -06:00
bors-servo
44a4b7886d Auto merge of #6284 - fbau123:6242-testbinding-add-specialoperations, r=nox
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6284)
<!-- Reviewable:end -->
2015-06-09 17:12:43 -06:00
Francesc Bautista
4ada1e9421 added TestBindingProxy.webidl and testbindingproxy.rs files
added testbindingproxy to dom/mod.rs and fixed unused variable warning of testingbindingproxy.rs

removed useless GlobalField, removed brackets use statements with only 1 element and changed the description of TestBindingProxy.webidl

renamed reflector to reflector_ and removed unused import in testbinding.rs
2015-06-09 23:14:05 +02:00
bors-servo
da2ea385ba Auto merge of #6146 - mskrzypkows:dom_performance_tests, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6146)
<!-- Reviewable:end -->
2015-06-09 12:15:12 -05:00
Ms2ger
af83641e06 Enable the url tests. 2015-06-09 18:38:37 +02:00
bors-servo
e09c555a41 Auto merge of #6293 - ecoal95:webgl-objects, r=nox
This commit implements:
* WebGLFramebuffer
* WebGLRenderbuffer
* WebGLTexture

And adds the following methods to `WebGLRenderingContext`:
* create{Texture,Framebuffer,Renderbuffer}
* bind{Texture,Framebuffer,Renderbuffer}
* destroy{Buffer,Texture,Framebuffer,Renderbuffer}

Fixes:
* WebGLUniform location shouldn't inherit from WebGLObject.

Known Issues:
* WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this

Also refactors a huge part of the current implementation, to allow
failing on creation of different WebGL objects.

Blocked on https://github.com/servo/gleam/pull/22

A reftest for most of the added functionality is not doable right now,
we need a few more functions in order to upload a texture, for example.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6293)
<!-- Reviewable:end -->
2015-06-09 10:06:37 -05:00
Maciej Skrzypkowski
2a729166c1 New html page for testing DOM binding performance #5760 2015-06-09 09:12:08 +02:00
bors-servo
ce30807be5 Auto merge of #6290 - hyowon:fill_or_stroke_style, r=nox
The fillStyle and strokeStyle attributes can be either strings(color), CanvasGradients, or CanvasPatterns.
The current implementation only considers strings(color).
r? @nox @jdm @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/6290)
<!-- Reviewable:end -->
2015-06-08 09:49:13 -05:00
ecoal95
9f94d39c9e Implement new WebGL interfaces and methods
This commit implements:
* WebGLFramebuffer
* WebGLRenderbuffer
* WebGLTexture

And adds the following methods to `WebGLRenderingContext`:
* create{Texture,Framebuffer,Renderbuffer}
* bind{Texture,Framebuffer,Renderbuffer}
* destroy{Buffer,Texture,Framebuffer,Renderbuffer}

Fixes:
* WebGLUniform location shouldn't inherit from WebGLObject.

Known Issues:
* WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this

Also refactors a huge part of the current implementation, to allow
failing on creation of different WebGL objects.

Blocked on https://github.com/servo/gleam/pull/22

A reftest for most of the added functionality is not doable right now,
we need a few more functions in order to upload a texture, for example.
2015-06-06 12:14:01 +02:00
Hyowon Kim
5bbfb42e90 Replace fill_color and stroke_color with fill_style and stroke_style in CanvasContextState.
The fillStyle and strokeStyle attributes can be either
strings(color), CanvasGradients, or CanvasPatterns.
2015-06-06 16:15:11 +09:00
Wafflespeanut
1612f723a8 Timestamp fix for issue #5690 2015-06-05 21:57:19 +05:30
bors-servo
ccfe29d8f2 Auto merge of #6279 - frewsxcv:flake8, r=jdm
Fixes #6236

Also included in this commit are the changes need to make flake8 pass
for the existing python file

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6279)
<!-- Reviewable:end -->
2015-06-04 10:41:36 -05:00
Corey Farwell
848c57653c Add flake8 to the tidy process for Python files
Fixes #6236

Also included in this commit are the changes need to make flake8 pass
for the existing python file
2015-06-04 11:17:34 -04:00
bors-servo
610de77e23 Auto merge of #6251 - glennw:fix-overflow, r=nox
This fixes layers being created with a 3x3 overflow that's not needed.

This exposes https://github.com/servo/servo/issues/6250, so update the affected reftest to use ahem font until it is fixed.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6251)
<!-- Reviewable:end -->
2015-06-04 03:53:14 -05:00
Glenn Watson
958adc0f2b Only count outline width in overflow calculation if outline style is active.
This fixes layers being created with a 3x3 border that's not needed.

This exposes https://github.com/servo/servo/issues/6250, so update the affected reftest to use ahem font until it is fixed.
2015-06-04 13:30:52 +10:00
bors-servo
b408fa9960 Auto merge of #6265 - servo:reftest_analyzer_documentation, r=metajack
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6265)
<!-- Reviewable:end -->
2015-06-03 07:22:12 -05:00
bors-servo
5a663c7078 Auto merge of #6272 - jgraham:disable_background_root_103, r=Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6272)
<!-- Reviewable:end -->
2015-06-03 06:34:44 -05:00
bors-servo
bb95e07f8e Auto merge of #6231 - AopicieR:get_elements_by_name, r=Ms2ger
Fixes #1745 
Should I adjust the expected result of the corresponding wpt test cases?

html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.html
html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.xhtml

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6231)
<!-- Reviewable:end -->
2015-06-03 04:14:18 -05:00
James Graham
9af3ceefd9 Disable unstable background-root-103 test 2015-06-03 10:00:50 +01:00
Manish Goregaokar
7bc88d541f Add unit test for plugin 2015-06-03 07:14:24 +05:30
bors-servo
05212b702d Auto merge of #6214 - glennw:parse-transforms, r=pcwalton
* Add parser support for 3d transforms.
 * Change ComputedMatrix to a representation that suits interpolation.
 * Switch stacking contexts to use 4x4 matrices.

The transforms themselves are still converted to 2d and handled by azure for now, but this is a small standalone part that can be landed now to make it easier to review.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6214)
<!-- Reviewable:end -->
2015-06-02 19:56:17 -05:00
bors-servo
4b1e955069 Auto merge of #6253 - hyowon:serialize_colour, r=nox
Fixes #4761
cc @yichoi 
r? @jdm @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6253)
<!-- Reviewable:end -->
2015-06-02 19:15:09 -05:00
Hyowon Kim
5d05ffc417 Serialize colors for fill and stroke styles in canvas. 2015-06-03 09:11:24 +09:00
jgraham
45fe69bdef Add documentation of reftest analyzer to wpt README 2015-06-02 23:24:24 +01:00
bors-servo
20f63459ef Auto merge of #6254 - servo:rustup_20150601, r=SimonSapin
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6254)
<!-- Reviewable:end -->
2015-06-02 12:53:37 -05:00
James Graham
f2e3bb21d0 Disable more unstable CSS tests 2015-06-02 17:56:10 +01:00
Manish Goregaokar
f80f99fe1e Move to latest hyper everywhere 2015-06-02 20:12:14 +05:30