Bogdan Cuza
0baa6b477c
Replace astersisks with appropriate versions in deps
2015-07-20 20:08:08 +03:00
Simon Sapin
83d2a11d86
Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10)
2015-07-15 00:46:43 +02: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
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
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
ecoal95
8cbfb3482c
Use euclid from crates.io
2015-06-19 00:04:24 +02:00
Simon Sapin
0229de822b
Use string-cache from crates.io
2015-06-16 00:27:50 +02:00
Corey Farwell
5c408d2be9
rust-geom API changes
...
https://github.com/servo/rust-geom/pull/81
2015-06-13 12:28:21 -07:00
Nicholas Nethercote
ab59a201f8
Improve unit testing of util::mem.
2015-06-11 15:23:27 -07:00
Manish Goregaokar
7bc88d541f
Add unit test for plugin
2015-06-03 07:14:24 +05:30
Manish Goregaokar
f80f99fe1e
Move to latest hyper everywhere
2015-06-02 20:12:14 +05:30
Corey Farwell
8e3f4bba85
Reduce max line length from 150 to 120 characters
...
Part of https://github.com/servo/servo/issues/6041
2015-05-24 00:01:49 -04:00
Jinwoo Song
a51d5de860
Implement 'background-clip' property in CSS3 Background
...
This property determines the background painting area, which determines the area
within which the background is painted.
Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-clip
Fixes #6066 .
2015-05-16 09:43:46 +09:00
bors-servo
8c40272824
Auto merge of #6046 - Jinwoo-Song:background_origin, r=pcwalton
...
This property determines the background positioning area, that is the position of
the origin of an image specified using the 'background-image' CSS property.
'background-origin' is ignored when background-attachment is fixed.
Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-origin
Fixes #6045 .
r? @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/6046 )
<!-- Reviewable:end -->
2015-05-14 20:53:02 -05:00
Jinwoo Song
b1b22c0c53
Implement 'background-origin' property in CSS3 Background
...
This property determines the background positioning area, that is the position of
the origin of an image specified using the 'background-image' CSS property.
'background-origin' is ignored when background-attachment is fixed.
Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-origin
Fixes #6045 .
2015-05-15 10:02:58 +09:00
Ms2ger
d84c3e7a30
Fix some overlong lines.
2015-05-14 13:26:13 +02:00
Simon Sapin
8292f5749e
Upgrade to Hyper 0.4.0
2015-05-12 16:48:21 +02:00
bors-servo
5cb1356e9e
Auto merge of #5800 - aweinstock314:x11-clipboard, r=jdm
...
...ed test_clipboard_paste to the "test-unit" suite.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5800 )
<!-- Reviewable:end -->
2015-05-06 16:09:37 -05:00
Avi Weinstock
d054946f7d
Fix test_clipboard_paste to pass on Mac OS.
2015-05-06 15:30:29 -04:00
Avi Weinstock
b742eeca05
Made the clipboard-related functionality in TextInput more testable. Added test_clipboard_paste to the "test-unit" suite.
2015-05-06 11:46:18 -04:00
James Gilbertson
3f006f96b2
Move parsing of @viewport rules in a stylesheet behind --experimental.
...
This is for parsing of the rule within a stylesheet only. <meta name=viewport> could create a viewport rule and add it to the list of stylesheets for the page (like quirks mode).
2015-05-06 09:18:57 -06:00
James Gilbertson
8977316d3e
Implement constraining as per DEVICE-ADAPT § 6
...
Spec: http://dev.w3.org/csswg/css-device-adapt/#constraining
2015-05-05 21:04:27 -06:00
James Gilbertson
3b14c07051
Implement parsing of an @viewport rule
2015-05-05 21:01:31 -06:00
Himaja
01eb31ae8a
1. Add an Option<Pipeline_id> field to the LoadData struct, and a corresponding parameter to LoadData::new()
...
2. Change addEvent in the NetworkEventActor to add_request and add_response
2015-05-05 12:31:40 -04:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Nicholas Nethercote
092507d23c
Add a profile_traits
crate to reduce compile times.
...
A rebuild after touching components/profile/mem.rs now takes 48 seconds (and
only rebuilds `profile` and `servo`) which is much lower than it used to be.
In comparison, a rebuild after touching components/profile_traits/mem.rs takes
294 seconds and rebuilds many more crates.
This change also removes some unnecessary crate dependencies in `net` and
`net_traits`.
2015-04-30 17:58:47 -07:00
Glenn Watson
d8aef7208e
Refactored image cache task - details below.
...
* Simpler image cache API for clients to use.
* Significantly fewer threads.
* One thread for image cache task (multiplexes commands, decoder threads and async resource requests).
* 4 threads for decoder worker tasks.
* Removed ReflowEvent hacks in script and layout tasks.
* Image elements pass a Trusted<T> to image cache, which is used to dirty nodes via script task. Previous use of Untrusted addresses was unsafe.
* Image requests such as background-image on layout / paint threads trigger repaint only rather than full reflow.
* Add reflow batching for when multiple images load quickly.
* Reduces the number of paints loading wikipedia from ~95 to ~35.
* Reasonably simple to add proper prefetch support in a follow up PR.
* Async loaded images always construct Image fragments now, instead of generic.
* Image fragments support the image not being present.
* Simpler implementation of synchronous image loading for reftests.
* Removed image holder.
* image.onload support.
* image NaturalWidth and NaturalHeight support.
* Updated WPT expectations.
2015-04-23 09:40:24 +10:00
bors-servo
9974ebb2f9
Auto merge of #5547 - aweinstock314:x11-clipboard, r=jdm
...
Manual re-opening of #5479 (since it seems that GitHub disables re-opening with the same number after a rebase).
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5547 )
<!-- Reviewable:end -->
2015-04-21 14:41:32 -05:00
Avi Weinstock
cf6aef5d51
Make the channel argument to TextInput::new be optional, to support the signature expected by the unit tests.
2015-04-21 15:18:23 -04:00
Simon Sapin
ce1f2bab7b
Fix up the splitting of the unit tests crate.
...
Closes #5707 . (Includes a rebase of it.)
Fixes #5688 .
2015-04-21 20:22:10 +02:00
Prabhjyot Singh Sodhi
7b9c9e1453
Split up the unit tests crate
2015-04-21 20:05:53 +02:00
Marcus Klaas
c1f25bbfe4
Replace usage of ResponseSenders by LoadConsumer
2015-04-19 13:26:56 +02:00
Marcus Klaas
0d482e36e6
Fix compiler warnings in net unit tests
2015-04-17 16:44:51 +02:00
Josh Matthews
7517aac9e9
Completely abstract sending responses over channels vs. listeners.
2015-04-16 11:46:39 -04:00
Josh Matthews
1644436557
Start switching net/ to use abstractions over channels to allow introducing non-channel communication in the future.
2015-04-16 11:46:39 -04:00
Ms2ger
306da57b07
Move mime classifier resources near the test.
2015-04-16 11:12:32 +02:00
Bogdan Cuza
3dd48d214b
Fix content type unit test
2015-04-14 23:08:00 +03:00
Edward Cho
d0469dfaf3
move mime classifier unit tests into unit test crate
2015-04-13 15:40:30 -05:00
bors-servo
22e570a06e
Auto merge of #5553 - luniv:css-rule-iterators, r=SimonSapin
2015-04-10 19:17:49 -05:00
James Gilbertson
f9b5de75f2
fixup! Use iterators for iterating through CSS rules
...
Update the media queries unit tests to use iterators
2015-04-10 16:36:44 -06:00
Aneesh Agrawal
d3dacd0816
Update dependency for image_cache_task.rs unit tests.
2015-04-10 06:11:31 -04:00
Patrick Walton
6d61468160
layout: Simplify and improve the correctness of whitespace stripping in
...
text layout, and unify the inline layout paths for pre- and
normally-formatted text.
This fixes a lot of "jumpiness" and removes the `new_line_pos` stuff.
Closes #2260 .
2015-04-08 14:29:23 -07:00
Simon Sapin
84e5f1e85b
Use the correct license header.
2015-04-08 01:07:58 +02:00
Simon Sapin
3b1cfe8458
Add license headers in tests/unit
2015-04-08 01:07:55 +02:00
Simon Sapin
dc431c9bdb
Move script crate unit tests into the unit_tests crate.
2015-04-08 01:07:53 +02:00
Simon Sapin
e5466a34c5
Move style crate unit tests into the unit_tests crate.
2015-04-08 01:07:52 +02:00
Simon Sapin
e27c967f81
Move net::resource_task unit tests into the unit_tests crate.
2015-04-08 01:07:51 +02:00
Simon Sapin
d88770e09f
Move net::{data_loader,image_cache_task} unit tests into the unit_tests crate.
2015-04-08 01:07:50 +02:00