Commit graph

160 commits

Author SHA1 Message Date
Matt Murphy
8b94a44c0b Changes based on review 2014-05-04 23:16:18 +02:00
Matt Murphy
af920f442b Convert Vec::new() to vec!() 2014-05-04 23:16:18 +02:00
Matt Murphy
631f70b1c5 ~[] to Vec in util/cache.rs 2014-05-04 23:16:18 +02:00
Matt Murphy
544bbcde92 ~[] to Vec in util/time.rs 2014-05-04 23:16:17 +02:00
Ms2ger
0ff8610727 Reorder some comparisons to avoid allocating strings for them. 2014-05-04 10:17:06 +02:00
Ms2ger
25542e3f7e Replace most ~"string"s with "string".to_owned(). 2014-05-04 09:39:07 +02:00
Ms2ger
243814022e Replace all ~"" with "".to_owned(). 2014-05-03 22:17:45 +02:00
bors-servo
56fe29dd44 auto merge of #2303 : Manishearth/servo/privtype, r=jdm 2014-05-03 12:01:26 -04:00
Manish Goregaokar
e656f1efff Fix some private type export warnings 2014-05-03 21:20:44 +05:30
Ms2ger
86df4c1fc1 Stop passing owned strings to fail!().
The ~"string" expression is being removed in upstream rust.
2014-05-03 12:16:52 +02:00
Patrick Walton
27276c0305 layout: Re-enable parallel layout by removing all RefCell instances
from `Flow`s; in the process, remove `InlineInfo` in favor of the
range-based design that was originally planned and halfway implemented.

Now, the DOM tree structure for inline flows is reflected not by a
series of arrays but instead by a flat list of ranges into the list of
boxes. As part of this, the `border` and `padding` fields, which were
incorrect in the case of inlines and necessitated separate
`noncontent_inline_foo` methods, have been merged into a single
`border_padding` field that is always guaranteed to be correct after
width assignment, even for inlines.
2014-05-02 11:47:08 -07:00
Matt Brubeck
4821df6216 Replace Au::zero_* with generic methods 2014-05-02 09:30:57 -07:00
Matt Brubeck
3c27126477 Use derived traits for Au
This code did not use derived traits previously because their methods were not
inlined, but this was fixed in mozilla/rust#10557.
2014-04-29 17:33:00 -07:00
Lars Bergstrom
948daf2422 This batch of changes upgrades Servo to work with the Rust upgrade as of
April 10, 2014. The main changes are to privacy, to work around the
issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the
various API changes strewn throughout the libraries.
2014-04-27 15:46:12 -05:00
Josh Matthews
be2b983ec1 Make the I Tried star appear when a top-level page load fails for network-related reasons.
Under the hood, this requires treating the I Tried pipeline as a new load instead of a replacement, since the failure-handling code interacts poorly with the rest of the replacement code when we get a series of staggered failures over time from the various pipeline components.
2014-04-24 01:07:52 -04:00
Josh Matthews
d04efe6037 Fix some private type in public signature warnings. 2014-04-16 17:20:15 -04:00
bors-servo
ceefbe2d05 auto merge of #2085 : lpy/servo/issue2079, r=jdm
see #2079
2014-04-11 12:49:19 -04:00
lpy
601480eaf2 Replace @s with Rc types.(fixes #2079) 2014-04-12 00:43:46 +08:00
Lars Bergstrom
ccb522a465 Android fixes for February Rust Upgrade 2014-04-10 13:00:12 -05:00
Ms2ger
4e34fcd264 Remove trailing whitespace. 2014-04-07 11:41:58 +02:00
bors-servo
4386bae576 auto merge of #2034 : saneyuki/servo/timer, r=jdm
Now, our rust compiler has `std::io::timer`!
2014-04-05 06:46:27 -04:00
bors-servo
2a5f82a764 auto merge of #2032 : brunoabinader/servo/html-whitespace, r=Ms2ger
Specs:
http://dom.spec.whatwg.org/#concept-ordered-set-parser
http://encoding.spec.whatwg.org/#ascii-whitespace

This PR implements the HTMLSpaceCharSplits iterator, used to split a string in a subset of strings separated by valid HTML space characters. Its first usage is upon splitting ```class``` attribute values.

Closes #1840.
2014-04-05 04:04:34 -04:00
Tetsuharu OHZEKI
7019ba1bc8 Use std::io::timer instead of servo_util::time::Timer. 2014-04-05 10:50:27 +09:00
Josh Matthews
4b8254f32b Fix tests. 2014-04-04 18:45:43 -04:00
Ms2ger
fb09979502 Address review comments. 2014-04-04 21:30:33 +02:00
Ms2ger
31eee791dd Upgrade rust. 2014-04-04 20:10:32 +02:00
Bruno de Oliveira Abinader
594df4d696 Implement split_html_space_chars helper function 2014-04-04 09:08:36 -04:00
Lars Bergstrom
ccc7c8b497 Disable parallel layout 2014-04-03 20:40:48 -05:00
Patrick Walton
c49f23ffb2 layout: Address review feedback. 2014-04-03 14:51:18 -07:00
Patrick Walton
f8e3e50db5 util: Add a rect_contains_point utility method 2014-04-03 14:50:07 -07:00
Patrick Walton
dae4166eb3 util: Add some utility methods to SmallVec. 2014-04-03 14:50:07 -07:00
Bruno de Oliveira Abinader
9038f21026 Support live HTMLCollection for FieldSet.elements 2014-03-26 09:11:13 -04:00
Matt Brubeck
00ca300305 Set a name for WorkQueue tasks (fixes #1830) 2014-03-25 07:33:02 -07:00
Josh Matthews
25d3c9078e Revert "Set a name for WorkQueue tasks (fixes #1830)"
This reverts commit f1394e3ffc.
2014-03-22 01:33:54 -04:00
Matt Brubeck
f1394e3ffc Set a name for WorkQueue tasks (fixes #1830) 2014-03-21 15:36:02 -07:00
Lars Bergstrom
a6100563a6 Rust upgrade for new master rebase 2014-03-18 22:00:48 -05:00
Josh Matthews
64c0de9fe7 Warning police. 2014-03-18 09:31:22 -05:00
Lars Bergstrom
bbac8aa5c3 Rust upgrades 2014-03-18 09:30:35 -05:00
Patrick Walton
3f8882450c script: Fix background color of Acid2.
There were two problems here: (1) we did not process style sheets with an
unexpected `rel` attribute but a correct MIME type; (2) we did not
consider `none` a valid value for the `background` property.
2014-03-13 18:08:50 -07:00
Keegan McAllister
c277d25506 Don't crash on bad command-line arguments
As amusing as it is to have servo --help die with SIGILL, it's not the best
user experience :)
2014-02-26 18:01:04 -08:00
Patrick Walton
282bd1d031 layout: Construct flows in parallel, without a leaf set 2014-02-24 18:12:44 -08:00
bors-servo
998710d907 auto merge of #1738 : saneyuki/servo/opt, r=kmcallister
I think gfx/opts.rs should be placed to more general place.
2014-02-24 17:43:41 -05:00
Tetsuharu OHZEKI
63cab5c72c Move from gfx::opts to servo_util::opts. 2014-02-25 07:07:54 +09:00
Josh Matthews
625325434b Implement JSManaged for DOM objects. 2014-02-24 15:16:42 -05:00
bors-servo
006237fed3 auto merge of #1712 : larsbergstrom/servo/more_atmuts, r=larsbergstrom,metajack
These commits remove @mut from the rest of Servo except for the script crate.

They rely on the hack `Rc` type exported from rust-layers, which will be removed once that same version lands in our Rust upgrade, but is required for now because otherwise I'd have to make all of these structures either `Send` or `Freeze`.

r? @metajack or @kmcallister
2014-02-21 19:46:54 -05:00
Lars Bergstrom
347bbd2883 De-@mut the FrameTree. 2014-02-21 18:42:40 -06:00
Junyoung Cho
ab589403ed Fix: whitespace is considered as spaces(U+0020), tabs(U+0009), and line breaks(U+000D U+000A) 2014-02-21 21:20:48 +09:00
Junyoung Cho
327e1e20a9 Prevent '&nbsp' from stripping as whitespace 2014-02-21 17:30:15 +09:00
Youngmin Yoo
13f9a66632 Impl Basic support for object element 2014-02-20 17:31:16 +09:00
bors-servo
edd7e32fdb auto merge of #1602 : pcwalton/servo/more-inlines, r=jdm
9% improvement in style recalc on the rainbow page.

r? @jdm
2014-02-18 14:08:12 -05:00