Josh Matthews
446f0f447e
Allow unused variables, imports, and mutable.
2015-02-09 17:41:57 -05:00
Ms2ger
18b49fd68e
Reduce duplicated code in from_thread_safe_layout_node.
2015-02-08 20:14:46 +01:00
Ms2ger
19e5c2c88c
Remove a transmute from to_untrusted_node_address.
2015-02-08 20:03:44 +01:00
Ms2ger
7c6b03abfe
Opt-in rather than opt-out to unsafe blocks in layout.
2015-02-08 20:03:27 +01:00
Ms2ger
a819b0b1b6
Fix the documentation comment syntax in flow_ref.rs.
2015-02-08 19:56:04 +01:00
Ms2ger
c3acbd90d8
Remove transmutes from put_task_local_bloom_filter.
2015-02-08 19:07:19 +01:00
bors-servo
e14c569ed0
auto merge of #4832 : Adenilson/servo/transparentBlack01, r=jdm
...
This patch set will implement a new helper function for transparent black, while changing the behavior of helper black() function returning opaque black by default.
It will also use the new Color equality operator to streamline the code in some points.
2015-02-04 04:21:49 -07:00
Adenilson Cavalcanti
3088b8fc30
Using the new equality operator in LayoutTask.
2015-02-03 18:14:42 -08:00
Adenilson Cavalcanti
ffa23088ff
Using the new transparent_black() in the proper places.
2015-02-03 18:08:30 -08:00
bors-servo
1e72608f5c
auto merge of #4823 : Ms2ger/servo/warnings, r=jdm
2015-02-03 17:57:51 -07:00
Martin Robinson
8855a25780
Revert "Using Color equality operators to streamline code"
2015-02-03 15:07:30 -08:00
Martin Robinson
728f723753
Merge pull request #4825 from Adenilson/usingColorOperators01
...
Using Color equality operators to streamline code
2015-02-03 11:12:44 -08:00
Adenilson Cavalcanti
cc404aba1a
Using Color equality operators to streamline code in
...
PaintContext and LayoutTask.
2015-02-03 11:03:09 -08:00
Ms2ger
e2408355a7
Fix build warnings.
2015-02-03 18:22:27 +01:00
Alexandru Cojocaru
685fee02a0
add unwrap
to send/recv
calls
2015-02-03 16:05:13 +01:00
Matthew Rasmus
846fc6453a
Shrink-to-fit inline-blocks with width set to auto
2015-02-02 15:52:12 -08:00
Matthew Rasmus
5b340599f2
Fix 'inline-block' sizing issues
...
Fixes #3624
2015-02-02 15:52:11 -08:00
Adenilson Cavalcanti
417ffca937
Implements 2 helper functions for Color type (white() and black())
...
and uses it in layout_task.rs.
2015-02-02 10:52:17 -08:00
Tetsuharu OHZEKI
2cca095481
Add LayoutJS<T: Reflectable>.get_jsobject().
2015-02-01 01:54:38 +09:00
Tetsuharu OHZEKI
9f57fa17d0
Add LayoutJS<Node>::from_trusted_node_address()
2015-02-01 01:54:38 +09:00
Tetsuharu OHZEKI
8889041c19
Use BarCast::to_layout_js() instead of LayoutJS.to_script().
2015-02-01 01:54:37 +09:00
Tetsuharu OHZEKI
6b1e2bd11c
Use LayoutJS<T> in layout crate.
2015-02-01 01:54:37 +09:00
Josh Matthews
9e01d91947
Lock crates.io dependencies to specific versions.
2015-01-31 01:27:26 +01:00
bors-servo
172aed535b
auto merge of #4757 : servo/servo/newnewnewcss, r=mbrubeck
...
(Still off by default. Enable with `RUST_LOG=style`.)
r? @mbrubeck
2015-01-30 15:27:53 -07:00
Patrick Walton
7934bf294d
layout: Fix warnings.
2015-01-30 11:35:50 -08:00
Simon Sapin
d13d36f57f
End the libstyle 'pub use' madness.
2015-01-30 15:08:29 +01:00
Patrick Walton
5fdaba05a6
layout: Implement text-align: justify
and text-justify
per
...
CSS-TEXT-3 § 7.3.
`text-justify: distribute` is not supported.
The behavior of `text-justify: none` does not seem to match what Firefox
and Chrome do, but it seems to match the spec.
Closes #213 .
2015-01-29 17:00:41 -08:00
Glenn Watson
1f37c6eabe
Add layout support and tests for inline iframes. Fixes #1697 .
2015-01-29 16:36:20 +10:00
Patrick Walton
d891c677aa
layout: Implement floated list items.
...
This patch also makes Servo not crash when
`generated_containing_block_rect()` is called on a list item (as, for
example, GitHub does), and for good measure I added the fix to other
flows as well.
2015-01-28 19:58:24 -08:00
bors-servo
c8e68fa45c
auto merge of #4592 : pcwalton/servo/text-overflow, r=mbrubeck
...
Only the one-value syntax is supported for now.
r? @mbrubeck
2015-01-28 17:24:50 -07:00
Patrick Walton
0f8e436745
layout: Implement text-overflow: ellipsis
per CSS-UI-3 § 6.2.
...
Only the one-value syntax is supported for now.
2015-01-28 16:23:31 -08:00
Ms2ger
2026cbada2
Fix various build warnings.
2015-01-28 20:42:39 +01:00
bors-servo
6dc2b895b8
auto merge of #4656 : PeterReid/servo/issue4125, r=mbrubeck
...
Fixes #4125
Conforming to section 5.5 (Rounded Corners/Overlapping Curves) of "CSS Background and Borders Module Level 3", border radii on elements whose border curves would have overlapped are uniformly scaled down to the point that they no longer do.
http://dev.w3.org/csswg/css-backgrounds/#corner-overlap
2015-01-28 10:18:52 -07:00
Ms2ger
1b3e368bcd
Don't shadow lifetimes in layout.
2015-01-28 14:44:32 +01:00
Manish Goregaokar
b68b7e87c8
self import
2015-01-28 13:46:00 +05:30
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Peter Reid
c9cbb5b071
Handle overlapping border-radius corners
...
Conforming to section 5.5 (Rounded Corners/Overlapping Curves) of "CSS
Background and Borders Module Level 3", border radii on elements whose
border curves would have overlapped are uniformly scaled down to the
point that they no longer do.
http://dev.w3.org/csswg/css-backgrounds/#corner-overlap
2015-01-26 09:04:42 -05:00
Ms2ger
801949556d
Return *const T from JS::unsafe_get() ( fixes #4712 ).
2015-01-24 16:43:19 +01:00
Josh Matthews
d2f0aac5ce
Make UntrustedNodeAddress a newtype.
...
This will allow us to make it Send after the Rust upgrade.
2015-01-24 11:40:21 +01:00
Ms2ger
13c7cf928a
Stop calling deref() and deref_mut() explicitly.
2015-01-22 16:04:21 +01:00
Ms2ger
024571dfa3
Use chars().count() rather than char_len().
...
The latter is obsolete in current Rust.
2015-01-22 14:49:26 +01:00
Ms2ger
faefb27f3e
Use std::sync::atomic::Ordering explicitly.
2015-01-22 14:49:25 +01:00
Simon Sapin
d034a6c6bc
Port to the new cssparser.
...
https://github.com/servo/rust-cssparser/pull/68
2015-01-21 22:23:46 +01:00
Ms2ger
01ed338746
Move to to_owned rather than into_string.
...
into_string has been removed from Rust.
2015-01-20 14:49:07 +01:00
bors-servo
d747a33df9
auto merge of #4664 : Ms2ger/servo/from_elem, r=larsbergstrom
...
It is obsolete on Rust master.
2015-01-19 09:12:46 -07:00
Ms2ger
05c4e3b9f5
Stop using Vec::from_elem.
...
It is obsolete on Rust master.
2015-01-19 14:42:30 +01:00
Ms2ger
394f816343
Disallow lines that span more than 160 columns.
...
The Rust style guide suggests 100, but we have too many violations in the
tree already. This check can be tightened over time.
2015-01-19 13:48:32 +01:00
Edit Balint
1d91e9000c
Use DrawTarget::new instead of DrawTarget::new_with_data in CanvasPaintTask
2015-01-15 14:04:46 +01:00
bors-servo
62d1761d2a
auto merge of #4598 : mttr/servo/table_percentage, r=pcwalton
...
Fixes #4421
2015-01-13 13:24:48 -07:00
bors-servo
8103bba19b
auto merge of #4619 : mbrubeck/servo/dead-top-margin, r=Ms2ger
...
Added in #1988 but never used. r? @pcwalton
2015-01-12 16:12:46 -07:00