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
Matt Brubeck
97a8b617fb
Remove unused Flow method
2015-01-12 09:58:53 -08:00
bors-servo
e6fe9f1409
auto merge of #4582 : pcwalton/servo/blend-modes, r=glennw
...
`background-blend-mode` is not yet supported because we don't support
multiple backgrounds yet.
r? @glennw
2015-01-12 09:03:48 -07: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
b020a015d9
auto merge of #4615 : kartaa/servo/master, r=jdm
...
Update wrapper.rs for Issue #4572 in servo/servo.
2015-01-12 08:24:47 -07:00
Ashish Sharma
fd0a0d6da8
remove unused function with_layout_node #4572
...
remove documentation in with_layout_node #4572
remove unused documentation in function with_layout_node #4572
2015-01-12 20:48:02 +05:30
Matthew Rasmus
182f1a0d01
table_wrapper.rs: Fix for percentage widths
...
Fixes #4421
2015-01-11 11:39:09 -08:00
Martin Robinson
6a46eef5cd
Update FrameTree pipelines when appropriate
...
Instead of simply creating a new FrameTree when an iframe starts a
load, update the existing FrameTree's pipeline. This prevents the
FrameTree from accumulating many extra children.
2015-01-09 15:14:01 -08:00
Edit Balint
81f47344d6
CanvasRenderTask connected to Layout
...
Update rust-azure to f4a02f3f621b0a994a20d42e438371a87c62f898.
2015-01-09 18:53:10 +01:00
bors-servo
43e34d6d10
auto merge of #4588 : Ms2ger/servo/layout-cleanup, r=larsbergstrom
2015-01-09 09:42: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
Ms2ger
b14a94a30f
Pass a Vec to ApplicableDeclarationsCacheEntry::new.
...
As it copies the slice anyway, it is better to give the caller the opportunity
to pass in an existing Vec.
2015-01-09 13:30:43 +01:00
Ms2ger
f8785beb24
Remove transmutes in LayoutContext.
2015-01-09 13:30:42 +01: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
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
Patrick Walton
af7cf26e76
layout: Implement outline-offset
per CSS-UI-3 § 5.5.
2015-01-08 10:49:54 -08:00
bors-servo
a88e668091
auto merge of #4530 : pcwalton/servo/pointer-events, r=mbrubeck
...
SVG-only values are not yet supported.
r? @mbrubeck
2015-01-08 10:48:55 -07:00
Patrick Walton
0627d4c599
layout: Implement word-break: break-all
per CSS3-TEXT § 5.2.
2015-01-08 09:04:24 -08:00
Matthew Rasmus
a3fc3a1581
Allow missing_copy_implementations
2015-01-08 08:51:11 -08:00
Matthew Rasmus
dc72119998
Fix non_upper_case_globals
warnings
2015-01-08 08:51:11 -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
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
bors-servo
ba8cf6b0e6
auto merge of #4542 : servo/servo/pre-rustup_20141221, r=saneyuki
...
In particular, this contains changes to qualify enums where rust will require it, and to stop using some features that will be removed.
2015-01-04 12:39:47 -07:00
bors-servo
2e17cae5d0
auto merge of #4495 : MeghaGupta/servo/typeid, r=Ms2ger
2015-01-04 12:12:48 -07:00
Ms2ger
6e027cda2d
Rename the ConstellationControlMsg variants.
2015-01-04 19:01:13 +01:00
Ms2ger
4d47817bae
Rename TimeProfilerCategory variants.
2015-01-04 11:59:23 +01:00
Ms2ger
de0caf8761
Rename constellation_msg::Msg variants.
2015-01-04 11:59:21 +01:00
Ms2ger
d5cc791d31
Rename paint_task::Msg variants.
2015-01-04 11:06:07 +01:00
bors-servo
e8fac3681b
auto merge of #4535 : servo/servo/pre-rustup_20141221, r=jdm
...
This prepares for the rust upgrade currently being conducted.
2015-01-03 14:39:46 -07:00
Ms2ger
fbf257f878
Remove obsolete attributes.
2015-01-03 10:06:17 +01:00
Martin Robinson
c0b397322f
Stall PaintTask exit until it can release all buffers
...
It is possible for a PaintTask to start exiting soon after sending new
buffers to the compositor. In that case, the compositor should return
the now unnecessary buffers to the PaintTask so that it can properly
free them.
To accomplish this, the compositor now keeps a hash map of paint task
channels per pipeline id. When a PaintTask exists, the constellation
informs the compositor that it can forget about it. Additionally, the
PaintTask should not wait for any buffers when the engine is doing a
complete shutdown. In that case, the compositor is already halted and
has simply let all buffers leak. We pipe through the shutdown type when
destroying the pipeline to make this decision.
Fixes #2641 .
2015-01-02 15:20:32 -08:00
Ms2ger
b51e83819d
Fix obsolete format traits.
...
They are to be removed from the language in the next rust upgrade.
2015-01-02 19:04:18 +01:00
Megha Gupta
5031096853
Fix inheritance enums for htmlmediaelement and htmltablecellelement
2015-01-02 23:10:32 +05:30