Commit graph

5585 commits

Author SHA1 Message Date
snf
1cc5bd4287 broadcasting storage changes events 2015-03-31 21:51:41 +01:00
Josh Matthews
883ba03bb9 Skip the tests that are triggering some kind of OOM in the python test runner when RUST_BACKTRACE is enabled. 2015-03-31 16:26:07 -04:00
bors-servo
225d7d2ece auto merge of #5457 : deokjinkim/servo/navigator_appversion, r=jdm
In my mistake, I close PR for this commit.
I'm sorry for inconvenience.

@jdm 's comment
The test expectations for /tests/wpt/web-platform-tests/html/dom/interfaces.html and /tests/wpt/web-platform-tests/workers/interfaces.workers.js will need to be updated - http://mxr.mozilla.org/servo/search?string=appversion

According to your guide, I revised commit. Is this your intention?
r? @jdm 

cc @yichoi
2015-03-31 11:51:55 -06:00
Patrick Walton
66dd8c8a6c layout: Implement CSS transitions per CSS-TRANSITIONS § 2.
Transition events are not yet supported, and the only animatable
properties are `top`, `right`, `bottom`, and `left`. However, all other
features of transitions are supported. There are no automated tests at
present because I'm not sure how best to test it, but three manual tests
are included.
2015-03-31 08:46:11 -07:00
Deokjin Kim
c0e691b08d Implement Navigator.appVersion(#5409) 2015-04-01 00:36:40 +09:00
Adenilson Cavalcanti
cdebb3ca54 Load a placeholder when a url to an image is broken.
I decided to use the old Netscape broken image link icon (later we may
replace the image asset for something more trendier). The ref test will
expect that a failed load should display the rippy image.

ImageCacheTask users can define if a placeholder image should be loaded
at start up or not. This enables both the new behavior (e.g. always
return an image even for broken urls) as also the previous one.
2015-03-30 10:02:54 -07:00
Mátyás Mustoha
0a3b4f2f65 Canvas: arc throws IndexSizeError on negative radius. 2015-03-30 11:05:33 +02:00
bors-servo
b8ea10bfe3 auto merge of #5341 : Ms2ger/servo/wpt_20150317, r=jdm 2015-03-29 06:37:00 -06:00
Ms2ger
1ecfc9f582 Update web-platform-tests. 2015-03-29 14:19:05 +02:00
Ms2ger
0ffa02eec8 Fix indentation in contenttest. 2015-03-27 21:22:28 +01:00
Ms2ger
3cd9f4e428 Move away from as_slice() in contenttest. 2015-03-27 21:21:37 +01:00
Ms2ger
6b0bf4cf0a Move contenttest to the new process APIs. 2015-03-27 21:16:28 +01:00
Ms2ger
e2c03510de Stop using old_path in contenttest. 2015-03-26 09:28:37 +01:00
Ms2ger
385e472ca0 Update the feature gates for contenttest. 2015-03-26 09:27:36 +01:00
bors-servo
f29ea4e4ef auto merge of #5302 : mmatyas/servo/canvas_stroke, r=jdm
This is the servo side patch of servo/rust-azure#149.
2015-03-25 07:54:50 -06:00
Mátyás Mustoha
698b88f71d Canvas: added stroke() support. 2015-03-25 12:52:05 +01:00
Tetsuharu OHZEKI
39191daaed Update results of wpt. 2015-03-25 15:13:34 +09:00
bors-servo
2ab1ece765 auto merge of #5231 : dmarcos/servo/issue4784, r=jdm
...ce
2015-03-24 14:01:06 -06:00
Diego Marcos
e3f5a76baa Implementing canvas drawImage API for HTML Canvas elements as image source 2015-03-24 12:23:15 -07:00
snf
89c208d3e4 Update web-platform-tests expected data to revision 56db12eee9711048ea4c927a89b9e9e05fd97c1b 2015-03-24 18:03:06 +00:00
Corey Farwell
5a780cb221 Stop abusing format! macro when construct a String
In these cases for `format!`, we're just constructing a String of the
single argument with no special format.
2015-03-22 18:54:56 -04:00
Ms2ger
8dcded5f4d Remove the core feature from reftests. 2015-03-21 14:31:19 +01:00
Ms2ger
061d0c94ec Move to new path and io APIs in reftest.rs. 2015-03-21 14:31:19 +01:00
Ms2ger
2fde574b39 Pass path strings to {load,store}_png directly.
This has been made possible by using the AsPath trait upstream.
2015-03-21 14:31:19 +01:00
bors-servo
2c85c1d312 auto merge of #5251 : mmatyas/servo/canvas_quadratic, r=jdm
Yet another small canvas patch.
2015-03-20 04:27:47 -06:00
bors-servo
dea36f9816 auto merge of #4891 : mmatyas/servo/canvas_gradient, r=jdm
Based on [ebalint](https://github.com/ebalint)'s original patch, this commit implements the linear and radial gradients for the canvas. The PR also includes test cases.
Depends on #4623 and servo/rust-azure#136.
2015-03-20 03:12:47 -06:00
Maciej Skrzypkowski
7da356cd05 Added document.activeElement attribute. 2015-03-19 23:00:13 +01:00
Mátyás Mustoha
d3199aef74 Implement gradient fill styles for canvas. 2015-03-19 15:59:08 +01:00
bors-servo
646f821479 auto merge of #5268 : mbrubeck/servo/append, r=jdm
The new `Vec::append` method is clearer and potentially faster.
2015-03-18 21:39:49 -06:00
bors-servo
e0ead84781 auto merge of #5254 : glennw/servo/ib-stacking-context, r=pcwalton 2015-03-18 19:45:47 -06:00
Matt Brubeck
94a7563aea Use append instead of extend where possible
The new `Vec::append` method is clearer and potentially faster.
2015-03-18 17:17:33 -07:00
Glenn Watson
d61d3ad4ba Fixes positioning of inline blocks that generate stacking contexts. 2015-03-19 07:38:33 +10:00
Chris Paris
99286e4b4f Implement Element.innerHTML setter 2015-03-18 11:20:47 -10:00
Ms2ger
5f15eb5fbf Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev. 2015-03-18 13:18:31 -04:00
bors-servo
65d4b12bf2 auto merge of #4736 : mattnenterprise/servo/dispatch_input_event, r=jdm 2015-03-17 22:27:47 -06:00
Matt McCoy
0bd717e470 #4508 Adding simple test and actually getting the event to dispatch 2015-03-17 19:54:05 -04:00
Ms2ger
a8553c3606 Update web-platform-tests. 2015-03-17 22:02:43 +01:00
bors-servo
203240c1d8 auto merge of #5134 : pcwalton/servo/transforms, r=SimonSapin
r? @SimonSapin
2015-03-17 13:39:51 -06:00
Patrick Walton
d10627a2b3 layout: Implement 2D CSS transforms per CSS-TRANSFORMS § 5, 6, 7, and 8. 2015-03-17 11:30:55 -07:00
Matt Brubeck
531bcb12ae Fixes for positioning of RTL blocks.
This fixes a bug in finding the top left corner of an RTL block in physical
coordinates.  (The old code used the `start` point of the `position` rect,
which is not always the top left.)

It also fixes the setting of `position.start.i` in certain mixed LTR/RTL
cases.

There is still a bug related to `position.size` for RTL blocks with margins.
See the FIXME comments for details.
2015-03-17 10:18:17 -07:00
Mátyás Mustoha
2817f2e066 Canvas: implement quadraticCurveTo(). 2015-03-17 16:05:36 +01:00
bors-servo
7bd6cb0091 auto merge of #5219 : doublec/servo/view_source_protocol_and_plain_text, r=jdm
Implements view-source protocol by having a view-source handler, and modifying the content type to be text/plain if that is used. 

Implements text/plain handling. This allows view-source content to display as plain text.

Example usage:

    ./mach run http://cd.pn/x.txt
    ./mach run view-source:http://tinyvid.tv/

This fixes issue #4181. Issue #3649 includes "support text/plain" so this possibly fixes some of that issue as well.
2015-03-17 07:18:51 -06:00
Chris Double
618142fac7 Implement displaying of text/plain documents
This is done by detecting the content type as text/plain
and following the requirements from:
https://html.spec.whatwg.org/multipage/browsers.html#read-text
2015-03-17 18:11:33 +13:00
bors-servo
0888a3a16d auto merge of #5226 : glennw/servo/fix-compositor-layers, r=larsbergstrom 2015-03-16 16:57:50 -06:00
Glenn Watson
591b10aa58 Fix for race condition causing reftests to hang under load.
If the root layer has a zero size rectangle, it will never be
painted, so assume the pipeline is idle in that case.

Re-enable two reftests that were disabled due to this issue.
2015-03-17 08:48:45 +10:00
bors-servo
b8e87ea020 auto merge of #5217 : zslayton/servo/master, r=jdm
@jdm This initial version has a few outstanding issues that I wanted to invite input on. Specifically:

1. I had some difficulty finding a home for the `StorageType` enum. Structs defined outside of the `script` module don't seem to be able to use the `#[jstraceable]` annotation and the `net` module (where `StorageTask` lives) doesn't have access to `script`. Per Simon Sapin's suggestion, I worked around this temporarily by creating a `TraceableStorageType` stand-in struct that was traceable and which could be translated into a regular `StorageType` when being sent to the `StorageTask`. Unsure of the best way to resolve this hack. Thoughts?

2. Apart from the `Storage` constructor used in `Window::SessionStorage` and the new `Window::LocalStorage`, there's also a method called `Storage::Constructor`. I'm unclear on what (if anything) will actually invoke this, so I'm not sure which variant of `StorageType` to use here. I've temporarily created an `Unknown` variant of `StorageType` as a placeholder.

3. I discovered that the web platform tests directory's localStorage tests. Many of them now pass despite the configured expectation that they fail. However, several do not pass. Is there a good way for me to add debug logging or otherwise get a sense of which assertion failed / what went wrong?

Thanks for your continued help!
2015-03-16 14:48:51 -06:00
Zack Slayton
323baf92db localStorage shim, fixes #5195 2015-03-16 13:33:55 -07:00
bors-servo
cf39c672b6 auto merge of #5210 : GreenRecycleBin/servo/#4968, r=jdm
`./mach test tests/wpt/web-platform-tests/html/browsers/history/the-location-interface/security_location_0.sub.htm` is still failing with the same message as reported in #3219.
2015-03-16 11:42:59 -06:00
Mikko Perttunen
51ceaed0d0 Add reftest for media queries in link and style tags 2015-03-16 17:19:28 +02:00
Diego Marcos
cd84ab2ddc Fixes the problem with canvas not being rendered when displayed as block level elements 2015-03-15 22:10:06 -07:00