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
Ms2ger
05c4e3b9f5
Stop using Vec::from_elem.
...
It is obsolete on Rust master.
2015-01-19 14:42:30 +01:00
bors-servo
efae66bccb
auto merge of #4625 : mrobinson/servo/surface-refactor, r=jdm
...
We no longer need to implement from_azure_surface in Servo, now that
rust-layers is handling more of the glue between rust-layers and Azure.
2015-01-16 12:57:44 -07:00
Gilles Leblanc
9fe39951b0
Write a macro or syntax extension to generate OpenType tags
...
Fixes #4556
2015-01-15 20:01:40 -05:00
Martin Robinson
c3d23a0630
Update to latest rust-azure and rust-layers
...
We no longer need to implement from_azure_surface in Servo, now that
rust-layers is handling more of the glue between rust-layers and Azure.
2015-01-15 12:59:11 -08:00
bors-servo
432b89f60f
auto merge of #4616 : glennw/servo/update-png-hb, r=metajack
2015-01-13 14:06:48 -07:00
Glenn Watson
c8e3d13821
Update png/harfbuzz, use prefixed symbol names.
2015-01-13 14:34:11 +10:00
Patrick Walton
97d3443003
layout: Implement mix-blend-mode
per COMPOSITING § 3.4.1.
...
`background-blend-mode` is not yet supported because we don't support
multiple backgrounds yet.
2015-01-12 08:02:41 -08:00
bors-servo
ffdbf29db2
auto merge of #4557 : pcwalton/servo/filter, r=mbrubeck
...
`blur` and `drop-shadow` are not yet supported, because the
`text-shadow` PR makes some fundamental changes to blur rendering that
are needed first.
r? @mbrubeck
2015-01-09 09:03:48 -07:00
Patrick Walton
15d60d7ea4
layout: Implement filter
per CSS-FILTERS § 5.
...
`blur` and `drop-shadow` are not yet supported, because the
`text-shadow` PR makes some fundamental changes to blur rendering that
are needed first.
2015-01-09 07:26:13 -08:00
bors-servo
0b06aeebe3
auto merge of #4553 : mrobinson/servo/paint-task-cleanup, r=larsbergstrom
...
This simplifies calling it substantially. Also avoid unnecessarily
changing the PaintTask epoch when we don't have paint permission.
2015-01-09 08:24:48 -07:00
bors-servo
0793137631
auto merge of #4575 : mttr/servo/warnings, r=jdm
...
Notes:
* This adds `#![allow(missing_copy_implementations)]` to components/*/lib.rs. I'm not sure how to approach the missing Copy warnings (are there things for which Copy should NOT be implemented, and how can I tell?) so I stuck this in to make life easier when looking through the warnings. I can easily remove this if necessary.
* This leaves the following type of warnings, which I couldn't figure out how to approach (I'll investigate it later if no one else wants to).
```
css/matching.rs:72:23: 72:35 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:72 this_as_query.equiv(other)
^~~~~~~~~~~~
css/matching.rs:95:10: 95:49 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:95 impl<'a> Equiv<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsCacheQuery<'a> {
```
2015-01-08 16:03:55 -07:00
bors-servo
4cd9eb1253
auto merge of #4574 : Ms2ger/servo/if_let, r=Manishearth
...
This feature is now supported unconditionally.
2015-01-08 14:42:53 -07:00
bors-servo
1a021f6635
auto merge of #4523 : pcwalton/servo/text-rendering, r=mbrubeck
...
Like Gecko, we treat `geometricprecision` the same as
`optimizelegibility` for now.
r? @mbrubeck
2015-01-08 13:48:53 -07:00
Patrick Walton
53b74ae853
layout: Implement text-rendering
per SVG 1.1 § 11.7.4.
...
Like Gecko, we treat `geometricprecision` the same as
`optimizelegibility` for now.
2015-01-08 12:32:58 -08:00
bors-servo
1458709247
auto merge of #4558 : mrobinson/servo/compositor-message-renames, r=zwarich
...
These names no longer reflect what the messages do, so rename them to
SetFrameTree, AssignPaintedBuffers, and CreateOrUpdateBaseLayer.
2015-01-08 12:36:53 -07:00
Matthew Rasmus
a3fc3a1581
Allow missing_copy_implementations
2015-01-08 08:51:11 -08:00
Matthew Rasmus
c9325c9711
Fix use {f32,f64}::consts
warning
2015-01-08 08:51:10 -08:00
Matthew Rasmus
9881ecf8e2
Fix string::raw::from_buf
deprecation warning
2015-01-08 08:51:10 -08:00
Patrick Walton
899c9429d0
layout: Implement pointer-events: none
per SVG 1.1 § 16.6.
...
SVG-only values are not yet supported.
2015-01-08 08:32:26 -08:00
Ms2ger
5f31da82bd
Remove if_let feature gates.
...
This feature is now supported unconditionally.
2015-01-08 17:26:06 +01:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Martin Robinson
ad751e4926
Rename Compositor messages SetIds and Paint
...
These names no longer reflect what the messages do, so rename them to
SetFrameTree and AssignPaintedBuffers.
2015-01-06 07:23:26 -08:00
Martin Robinson
0d164712b7
Make initialize_layers a PaintTask method
...
This simplifies calling it substantially. Also avoid unnecessarily
changing the PaintTask epoch when we don't have paint permission.
2015-01-05 13:35:15 -08:00
Ms2ger
c4e44b568a
Remove the unused native argument from spawn_named_with_send_on_failure.
2015-01-05 08:58:00 +01:00
Patrick Walton
bf540d590a
layout: Explicitly thread border box dimensions and relative offsets
...
through display list building.
The old `flow_origin` concept was ill-defined (sometimes the border box
plus the flow origin, sometimes including horizontal margins and
sometimes not, sometimes including relative position and sometimes not),
leading to brittleness and test failures. This commit reworks the logic
to always pass border box origins in during display list building.
2015-01-04 17:43:05 -08:00
Patrick Walton
5ea2c6dcfd
layout: Paint stacking contexts' overflow areas properly.
...
This was making `box-shadow` not show up in many cases, in particular,
but the effects were not limited to that.
2015-01-04 17:41:59 -08:00
Ms2ger
04eb923da9
Remove dependencies on the native crate.
2015-01-04 16:28:02 +01:00
Ms2ger
1130c1dced
Qualify PixelsByColorType.
2015-01-04 15:18:19 +01:00
Ms2ger
d759b07299
Qualify libstyle enums.
2015-01-04 15:04:35 +01:00
Ms2ger
9068e62f2a
Qualify Azure enums.
2015-01-04 15:04:26 +01:00
Ms2ger
be5e9b4278
Remove some obsolete formatting traits.
2015-01-04 11:59:51 +01:00