Alan Jeffrey
e3030d053a
Replaced mutex in constellation logging by a reentrant mutex.
2016-07-29 09:44:45 -05:00
Alan Jeffrey
62e95c5a61
All our Cargo.toml files should contain an MPL-2.0 license field.
2016-07-14 10:26:34 -05:00
Ms2ger
8dd711d3db
Move util::cache to style.
2016-07-08 16:44:47 +02:00
Ms2ger
fa05a309f3
Remove HashCache.
2016-07-08 16:41:41 +02:00
Anthony Ramine
8ecb5962f3
Move util::str to style
2016-07-05 10:43:54 +02:00
Corey Farwell
22928f50ac
Refactor util::prefs
operations to be methods on static struct.
2016-07-02 16:43:39 -04:00
Josh Matthews
3cb8af20c2
Remove empty lines following braces.
2016-05-27 13:32:05 -04:00
Rahul Sharma
b4885fef9a
adding default config dirs
2016-05-25 10:55:07 +05:30
Matt Brubeck
d2717c4475
Eliminate unneeded clones in find_or_create
...
...and use it to eliminate duplicate hash lookups and string copies in shape_text.
2016-05-13 18:20:25 -07:00
Matt Brubeck
96c69f852c
Fix warnings in unit tests
2016-05-12 12:22:00 -07:00
Matt Brubeck
659305fe0a
Use byte indices instead of char indices for text runs
...
Replace character indices with UTF-8 byte offsets throughout the code dealing
with text shaping and breaking. This eliminates a lot of complexity when
converting from one to the other, and interoperates better with the rest of
the Rust ecosystem.
2016-04-28 14:32:14 -07:00
Simon Sapin
83b3ebf6ac
Simplify TOML syntax
...
* Sections like `[dependencies.foo]` can be entries in a `[dependencies]`
section with the `{key = value}` syntax.
* Per-target dependencies can be expressed with more general `cfg(…)`
conditions instead of exact target triples:
https://github.com/rust-lang/cargo/pull/2328
2016-04-26 23:51:36 +02:00
Simon Sapin
7932ab6ac2
Upgrade to rust-url 1.0 and hyper 0.9
2016-04-23 20:27:58 +02:00
Corey Farwell
07209c75db
Rename net.mime.sniff
pref to network.mime.sniff
.
...
Gecko uses the `network` prefix for network related items. Might be good
to mirror that here.
2016-04-17 16:15:24 -04:00
Emilio Cobos Álvarez
a57aa561c1
servo: Clean up unused variables and imports
2016-04-02 16:30:18 +02:00
Matthew Bentley
d06def01ff
Add testing for prefs
...
Also, spelling fix in opts.rs
Fix order of imports to satisfy the lint
Fix split line in test
Fix multi-line string
2016-04-01 21:39:56 -04:00
bors-servo
723989b9dd
Auto merge of #10252 - emilio:selection, r=mbrubeck
...
Implement ::selection pseudo-element
It only supports `color` and `background`, for now, but it shouldn't be hard to add more properties (like text-shadow).
r? @mbrubeck
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10252 )
<!-- Reviewable:end -->
2016-03-31 00:47:07 +05:30
Emilio Cobos Álvarez
46829bd53c
tests: Fix warning in unit tests
2016-03-30 14:28:13 +02:00
Josh Matthews
04df5decee
Avoid testing impossible file paths on Windows.
2016-03-28 23:16:10 -04:00
Corey Farwell
5efbf0fa8f
Move util::str::parse_length
into 'style' component.
...
The function is only used in the 'style' component, so we'll move it
there alongside other relevant parse functions.
2016-03-24 10:45:33 -04:00
Anthony Ramine
f89c321141
Bump euclid to 0.6.4
2016-03-09 20:15:11 +01:00
Anthony Ramine
5720c76816
Bump app_units to 0.2.3
2016-03-09 20:14:35 +01:00
Guillaume Gomez
02095cf550
Remove util::vec::Comparator
2016-03-01 14:28:16 +01:00
Anthony Ramine
db8d502f41
Move util::logical_geometry to style
2016-02-18 10:17:13 +01:00
Anthony Ramine
874fa5595f
Bump euclid to 0.6.2
2016-02-13 00:08:08 +01:00
Anthony Ramine
2d6ac4da97
Bump app_units to 0.2.1
2016-02-13 00:08:05 +01:00
Anthony Ramine
c6262c368f
Reorder dependencies in some Cargo.toml files
2016-02-13 00:08:04 +01:00
Anthony Ramine
cb5cd8d881
Say farewell to in-tree HeapSizeOf
2016-02-04 22:03:32 +01:00
Ms2ger
2ea9f2d028
Update Euclid.
2016-02-04 11:02:09 +01:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Simon Sapin
aa1eba4f5a
Use skia and deps from crates.io.
...
Fix https://github.com/servo/skia/issues/70
2015-12-02 19:07:59 +01:00
Manish Goregaokar
dc0e467945
Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
...
… and libc 0.2 and many other dependencies
2015-11-27 00:15:29 -05:00
Corey Farwell
30ea772939
Make util::str::parse_length work with floats
2015-11-14 16:47:10 -05:00
rohan.prinja
337066063a
fix impl of parse_length()
2015-11-14 10:02:26 -05:00
Manish Goregaokar
ce5586f74a
Update euclid to 0.3
2015-10-28 21:34:23 +05:30
Florian Merz
80e8a674e2
display input caret for textarea. fixes #7758
2015-10-21 22:38:23 +02:00
Corey Farwell
ea5e4e3ad0
Make util::str::str_join consistent with SliceConcatExt::join
...
Prior to this commit, `str_join` would skip empty items at the start of
the `Iterator` until it found a non-empty item. This contradicts
`SliceConcatExt::join` which doesn't skip anything.
Brought up in:
https://github.com/servo/servo/pull/7776#issuecomment-144317281
2015-09-30 19:23:18 -04:00
Manish Goregaokar
3c969b346a
Upgrade rust to f93ab64d4a1a7ee91759a1594ab2a426b6cc657e/rustc-1.5.0-dev.
2015-09-23 14:44:59 +02:00
bors-servo
6a12f00d6d
Auto merge of #7605 - nox:skew, r=mbrubeck
...
Implement "transform: skew()"
Thanks to @Jinwoo-Song for the original commit, which I just rebased and cleaned up. Fixes #6237 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7605 )
<!-- Reviewable:end -->
2015-09-16 06:31:48 -06:00
Simon Sapin
43c999905c
Replace reftest with a problematic file name with a unit test.
...
Fix #7609 , "error: unable to create file tests/ref/hello_a?foo#bar.html
(Invalid argument)" during git checkout on Windows.
Behavior change: passing an nonexistent file name on the command line
now shows a blank page (like network errors)
rather than exit with an error message.
2015-09-12 14:18:15 +02:00
Anthony Ramine
f11fcebd9c
Bump euclid to 0.2
2015-09-12 01:06:26 +02:00
David Rajchenbach-Teller
ec9502b0de
Resolves #7031 - Fix warnings in ./mach test-ref
2015-08-26 16:37:50 +02:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Josh Matthews
8bb853f643
Fix existing syntactics nits.
2015-08-16 10:30:43 -04:00
Simon Sapin
f10851e788
Update heap size tests for Vec allocation strategy change.
2015-07-30 17:30:53 +02:00
Bogdan Cuza
0baa6b477c
Replace astersisks with appropriate versions in deps
2015-07-20 20:08:08 +03: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
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
Corey Farwell
5c408d2be9
rust-geom API changes
...
https://github.com/servo/rust-geom/pull/81
2015-06-13 12:28:21 -07:00