Glenn Watson
86baef2cc0
Remove compositor layers when iframes are removed from doc or display:none.
2015-03-04 07:51:46 +10:00
Glenn Watson
611fd7a846
Reap layout data whenever a node is removed from the tree.
...
Also introduce a clear() function to layout data which will be used to clear items such as compositor layouts.
Clear the layout data when a node becomes display:none.
2015-03-03 07:12:51 +10: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
Glenn Watson
7aacf90161
Fixes background-color calculation for iframes. Fixes #1248
2015-02-16 08:16:18 +10: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
Ms2ger
7c6b03abfe
Opt-in rather than opt-out to unsafe blocks in layout.
2015-02-08 20:03:27 +01: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
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
Alexandru Cojocaru
685fee02a0
add unwrap
to send/recv
calls
2015-02-03 16:05:13 +01: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
9f57fa17d0
Add LayoutJS<Node>::from_trusted_node_address()
2015-02-01 01:54:38 +09:00
Tetsuharu OHZEKI
6b1e2bd11c
Use LayoutJS<T> in layout crate.
2015-02-01 01:54:37 +09:00
Simon Sapin
d13d36f57f
End the libstyle 'pub use' madness.
2015-01-30 15:08:29 +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
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
01ed338746
Move to to_owned rather than into_string.
...
into_string has been removed from Rust.
2015-01-20 14:49:07 +01: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
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
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
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
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
f85b9e37cc
Add HTMLElementTypeId enum ( fixes #3625 )
2015-01-02 23:10:31 +05:30
Manish Goregaokar
c7dfb1d24b
layout: to_string() -> into_string()
2014-12-27 14:48:36 +01:00
Patrick Walton
cc7cacfd5f
gfx: Clip the background properly when border-radius
is used.
...
Improves Reddit, GitHub, etc.
2014-12-22 14:48:55 -08:00
Patrick Walton
dea8375613
gfx: Refactor the border drawing code and split out fragment display
...
list building into multiple functions.
This should have no functional changes; it's just code cleanup.
2014-12-22 14:48:55 -08:00
Tetsuharu OHZEKI
a7bb436177
script: Remove glob imports added in #4405
2014-12-19 04:52:48 +09:00
Patrick Walton
7371e0b8e3
compositing: Implement cursor
per CSS3-UI § 8.1.1 in the CEF/Mac port.
...
I'm not sure how we want to handle Linux cursors, and GLFW has no
ability to set cursors (short of disabling it and managing it yourself).
2014-12-17 22:58:52 -08:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -05:00
Ms2ger
ac95d12037
Remove some manual deref() / deref_mut() calls.
2014-12-16 16:41:33 +01:00
Patrick Walton
17835ba0cb
style: Implement quirks mode rules.
2014-12-15 17:41:51 -08:00
Patrick Walton
a200b139b6
script: Add some workarounds for image cache task races
2014-12-15 14:16:20 -08:00
Tetsuharu OHZEKI
9cda2c3395
Replace almost "render" to "paint" in layout crate.
...
This doesn't touch some "render" words which are used as general means.
2014-12-08 15:00:57 +09:00
Tetsuharu OHZEKI
79722bdc03
Rename gfx::paint_task::Msg
2014-12-08 14:05:50 +09:00