Commit graph

21 commits

Author SHA1 Message Date
UK992
93a103ba73 Reorder use statements 2016-09-09 04:55:19 +02:00
Manish Goregaokar
36c63db5d4
Rename sugar::refptr to sugar::ownership 2016-09-02 08:56:47 +05:30
Manish Goregaokar
8bed07292c
Add bindings for owned types, use for servostyleset 2016-09-02 08:56:45 +05:30
Manish Goregaokar
db7156526f
Allow for regular non-arc borrowed types, use for StyleSet 2016-09-02 08:56:44 +05:30
Emilio Cobos Álvarez
4194ba063a
style: Make WorkQueue creation fallible.
Fixes bug 1290205 in bugzilla.
2016-08-25 23:43:31 -07:00
Ms2ger
992391d6ad Move the user agent and user stylesheets to layout_thread. 2016-08-23 15:33:47 +02:00
Ms2ger
307d1ced3c Move thread_state to style. 2016-08-22 16:08:56 +02:00
Martin Robinson
6259df5e2d Update to euclid 0.8 2016-08-12 03:12:06 +02:00
Bobby Holley
933cef4adc Flush stylesheets when doing non-traversal-driven style operations.
Without this, the stylist can be stale when we query it.
2016-07-28 17:19:08 -07:00
Simon Sapin
6d0e48f6cc Remove some type aliases that are now just re-exports. 2016-07-20 08:42:47 +02:00
Ms2ger
cbfe77cee1 Move some unit type definitions to style_traits. 2016-07-11 12:14:27 +02:00
Cameron McCormack
00fe12d3ad Add STYLO_THREADS environment variable to control number of style worker threads. 2016-07-05 18:03:30 -07:00
Anthony Ramine
bf34fdde1f Move util::workqueue to style 2016-07-04 21:56:09 +02:00
Emilio Cobos Álvarez
203d2a62c2
style: Remove the Mutex from new_animations_sender by moving it to the local StyleContext.
As a follow-up, we could move all the data living under a mutex in the
SharedLayoutContext only in order to create the local context to the same place.

This should increase animation performance when there are multiple animations in
one page that happen to be on different threads.
2016-07-01 13:48:06 -07:00
Emilio Cobos Álvarez
e015e87697
geckolib: fix geckolib build by implementing display on Atoms. 2016-06-28 15:27:58 +00:00
Josh Matthews
3cb8af20c2 Remove empty lines following braces. 2016-05-27 13:32:05 -04:00
Bobby Holley
d6a6f2c7e0 Hoist gecko bindings into their own crate.
This will be helpful for leveraging the bindings with our nsIAtom-backed
string_cache replacement.
2016-05-11 14:32:26 -07:00
Emilio Cobos Álvarez
1a0175fdbb
geckolib: Fix geckolib build after style and layout changes 2016-04-29 22:54:51 +02:00
Bobby Holley
c4aa7cd862 Update gecko bindings.
I'm in the process of making the binding generator easier to use, so that we can check it
into the tree. More patches in that direction soon, but I wanted to first just update the
existing bindings to match the state of the world in gecko.
2016-03-02 16:48:54 -08:00
Emilio Cobos Álvarez
dd503dfacb Refactor style to be completely backend-independent
This commit refactors the style crate to be completely independent of
the actual implementation and pseudo-elements supported.

This also adds a gecko backend which introduces parsing for the
anonymous box pseudo-elements[1], although there's still no way of
querying them.

https://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSAnonBoxList.h
2016-02-13 16:05:14 +01:00
Bobby Holley
2e770b78a2 Implement a more realistic and persistent document restyle. 2016-02-03 18:39:16 -08:00