Glenn Watson
0817f9ad44
Fix hover state on elements with transparent background colours.
...
Move culling of transparent display items to paint task rather than display list builder, so that hit testing detects mouse over on transparent background elements.
2015-03-03 09:15:11 +10:00
Patrick Walton
09358b908d
layout: Implement text-shadow
per CSS-TEXT-DECORATION-3 § 4.
2015-03-02 13:28:51 -08:00
Adenilson Cavalcanti
2c45eab00e
Clean compilation warnings.
2015-02-25 21:43:02 -08:00
Adenilson Cavalcanti
b9e9d7471d
Implements a DisplayList dumper.
...
This patch will iterate through the DisplayList after the reflow
is done and print its elements (as also any sub-lists associated
to a child node stacking context).
It adds a new CLI parameter to trigger the function to dump the display list
to console (i.e. servo --debug dump-display-list url).
Using both display list and flow tree information is helpful to debug
rendering issues.
2015-02-25 19:10:05 -08:00
Ms2ger
e072e5946e
Move gfx to libc from crates.io.
2015-02-21 10:53:00 +01:00
bors-servo
d26345f868
auto merge of #4994 : pcwalton/servo/layout-tinting, r=pcwalton
...
r? @metajack
2015-02-20 23:06:48 -07:00
Patrick Walton
40a3b41758
layout: Add an option to visualize parallel layout
2015-02-20 19:11:35 -08:00
Andreas Gal
ad5671bc14
Use cleaner StrokeOptions interface introduced by https://github.com/servo/rust-azure/pull/145 .
2015-02-20 14:56:23 -08:00
Jack Moffitt
7acc0619e6
Correct usage of number of painting threads.
...
Previously this used the number of layout threads to allocate the
threadpool. This also makes the member name consistent with the rest of
the structure.
2015-02-19 16:17:55 -07:00
Jack Moffitt
923676d443
Added overlay for demoing parallel painting.
2015-02-19 16:17:55 -07:00
Ms2ger
aaed4a54c7
Use rustc-serialize rather than the built-in deprecated serialize.
2015-02-17 13:24:15 +01:00
Adenilson Cavalcanti
ffa62c9688
Companion single Color patch.
...
This will also update the rust-azure dependency
to point to the hash where we have a single Color type.
Just executed ref-tests and no regressions found.
2015-02-13 14:49:28 -08:00
Ms2ger
d931617449
Make some feature gates conditional to avoid unused feature warnings.
2015-02-13 14:57:52 +01:00
Ms2ger
e25322ce5b
Fix warnings in gfx.
2015-02-13 11:00:20 +01:00
Matt Brubeck
76a2653f8f
Replace append_from and prepend_from with DList::append
2015-02-12 15:38:46 -08:00
Simon Sapin
d5dd1d658e
Upgrade to rustc ba2f13ef0 2015-02-04
2015-02-11 14:48:34 -08:00
Ms2ger
a09a912178
Import net as net rather than servo_net.
2015-02-10 12:55:24 +01:00
Ms2ger
b2fcc2397e
Import msg as msg rather than servo_msg.
2015-02-10 11:40:36 +01:00
Josh Matthews
446f0f447e
Allow unused variables, imports, and mutable.
2015-02-09 17:41:57 -05: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
7a36634963
Using the equality operator in PaintContext. Pay attention this
...
is a change on behavior as we previously didn't test for alpha
channel.
2015-02-03 18:51:50 -08:00
Adenilson Cavalcanti
ffa23088ff
Using the new transparent_black() in the proper places.
2015-02-03 18:08:30 -08:00
Adenilson Cavalcanti
e1db06475c
There are cases where we need opaque black (e.g. border color) and
...
other cases where we need transparent black (e.g. clearing, root layers).
2015-02-03 17:40:50 -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
bors-servo
6eac20d84d
auto merge of #4809 : mrobinson/servo/rust-layers-update, r=glennw
2015-02-02 16:57:51 -07:00
Martin Robinson
77e11909b4
Update to latest rust-layers
2015-02-02 15:41:53 -08:00
Adenilson Cavalcanti
10418a0ea1
Using color helpers in Compositor and PaintContext
...
(plus added TODO related to equality operators).
2015-02-02 14:49:26 -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
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
Ms2ger
505159a464
Import the util crate as util rather than servo_util.
...
This used to conflict with the util crate from the standard library, which
has long since been removed.
The import in layout has not been changed because of a conflict with the
util mod there.
2015-01-29 12:16:41 +01:00
Patrick Walton
abddfa742f
gfx: Implement font-stretch
per CSS3-FONTS § 3.3 in the Core Text
...
font backend.
2015-01-28 12:42:52 -08:00
bors-servo
c2076d707e
auto merge of #4660 : deokjinkim/servo/font_style, r=jdm
...
'oblique' font-style is not supported now.
When I checked freetype.h, same macro is used for italic and oblique.
/* FT_STYLE_FLAG_ITALIC :: */
/* Indicates that a given face style is italic or oblique. */
So, when font style is 'oblique', enable flag for italic.
With tests/html/test_italic_bold.html, it works well.
2015-01-28 11:51:53 -07: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
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
524966e3af
Use std::cmp::Ordering explicitly.
2015-01-22 14:49:25 +01:00
Ms2ger
808315926c
Pass a String to spawn_named.
...
IntoString has been removed from Rust, and named() will take a String, so
there is no good reason to do otherwise here.
2015-01-21 11:23:19 +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
Ms2ger
7eb659371d
Stop calling is_not_null.
...
It has been removed from Rust.
2015-01-20 13:08:49 +01:00
Deokjin Kim
ee0ce0d8f4
Merge branch 'master' of https://github.com/servo/servo into font_style
2015-01-20 11:02:41 +09:00
Deokjin Kim
80a6f0ae08
Support 'font-style: oblique'.
2015-01-20 10:48:23 +09:00