Simon Sapin
c831369e3e
Move DOMRefCell back into script.
...
We’re not using it in style after all.
2016-10-04 18:35:00 +02:00
Bobby Holley
518324cff6
Implement AtomicRefCell.
...
MozReview-Commit-ID: 9LZ1WPQADav
2016-10-02 19:19:52 -07:00
Bobby Holley
8c14533e7f
Add a dependency on parking_lot to style.
...
MozReview-Commit-ID: 5zXmrdQ0fjU
2016-10-02 19:19:52 -07:00
Manish Goregaokar
b2e592b121
Move most of geckolib into style::gecko
2016-09-26 09:07:17 +02:00
Manish Goregaokar
bc9cbc87ba
Move gecko_* into style::gecko
...
Prepping for the next stage where most of geckolib/ is popped in here
2016-09-24 19:25:59 +05:30
Manish Goregaokar
c6787458d9
Move gecko_bindings and gecko_string_cache into the style crate
2016-09-24 19:25:55 +05:30
Simon Sapin
c87180a2fb
Move DOMRefCell to style.
2016-08-31 02:34:05 +02:00
bors-servo
c5e81f8361
Auto merge of #12945 - Manishearth:bgarray, r=SimonSapin
...
Support multiple backgrounds in both servo and stylo
(Commits do not build individually, but split up for review)
These patches make all of the background- properties accept multiple values, and add the layout code to display them.
Still needs some cleanup, and some testing, but it seems to work.
r? @SimonSapin
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12945 )
<!-- Reviewable:end -->
2016-08-22 22:09:23 -05:00
Manish Goregaokar
979a2798d5
Make Position a gecko-only vector longhand
2016-08-22 22:42:40 +05:30
Ms2ger
307d1ced3c
Move thread_state to style.
2016-08-22 16:08:56 +02:00
Simon Sapin
4062899fd8
Import SelectorMap back from the selectors crate.
...
Nobody else uses it, and I want to make breaking changes to it.
2016-08-21 03:40:30 +02:00
Manish Goregaokar
0d4d1b539e
Add safer bindings for refcounted types across ffi
2016-08-17 12:30:31 +05:30
Emilio Cobos Álvarez
9e88a495c8
style: Introduce a generic way of gathering information from the cascade, and use it for viewport units.
2016-08-16 10:58:16 -07:00
Simon Sapin
fdb2071b2d
Update to selectors 0.8.2
2016-08-09 18:18:38 +02:00
Ravi Shankar
a04028eede
Prefer length and percentage for word spacing
2016-08-09 17:53:40 +05:30
Xidorn Quan
ca3174f6f6
Remove unused libc dependency for windows in style
2016-08-04 10:09:34 +10:00
Emilio Cobos Álvarez
0b67b218d0
style: Add a new Timer structure to the shared style context, and basic infrastructure for controlling animations.
2016-07-20 09:05:53 -07:00
Simon Sapin
6d0e48f6cc
Remove some type aliases that are now just re-exports.
2016-07-20 08:42:47 +02:00
Simon Sapin
5c70dfab01
Have a concrete SelectorImpl type everywhere in the style crate.
...
It is conditionally compiled to one implementation or the other
(Gecko or Servo) with `#[cfg(…)]`.
2016-07-20 08:42:46 +02:00
Simon Sapin
b2a7e44373
Move ServoSelectorImpl to a dedicated module.
2016-07-20 08:40:53 +02:00
Simon Sapin
2f967893f3
Move geckolib/selector_impl.rs -> style/gecko_selector_impl.rs
2016-07-20 08:40:49 +02:00
Simon Sapin
db3607471f
Move geckolib/properties.mako.rs to style/properties/gecko.mako.rs
2016-07-20 08:40:22 +02:00
Simon Sapin
2c1f7c8a85
Move geckolib/values.rs to style/gecko_values.rs
2016-07-20 08:33:52 +02:00
Manish Goregaokar
704d7a01c9
Handle Calc refcounting
2016-07-19 11:29:11 +05:30
Manish Goregaokar
67bcb96cea
Add glue for calc values
2016-07-19 11:29:07 +05:30
Manish Goregaokar
3ead9cc67b
Improve mach clippy, add plugins to style/util
2016-07-12 19:59:58 +05:30
Ms2ger
9f13278b77
Move arc_ptr_eq to style.
2016-07-11 12:13:12 +02:00
Ms2ger
8dd711d3db
Move util::cache to style.
2016-07-08 16:44:47 +02:00
Anthony Ramine
8ecb5962f3
Move util::str to style
2016-07-05 10:43:54 +02:00
Anthony Ramine
744b94346a
Move util::tid to style
2016-07-05 10:36:38 +02:00
Anthony Ramine
bf34fdde1f
Move util::workqueue to style
2016-07-04 21:56:09 +02:00
Anthony Ramine
a5b524d559
Move util::vec::ForgetfulSink to style::sink and simplify it
2016-07-04 16:48:14 +02:00
Emilio Cobos Álvarez
c1fd7432e9
style: Add @keyframe rule parsing.
2016-06-28 15:09:53 +00:00
Simon Sapin
3932a82a2c
Replace usage of discriminant_value in viewport.rs
2016-06-28 06:47:57 +02:00
bors-servo
3809e4a23d
Auto merge of #11834 - servo:style-docs, r=SimonSapin
...
Add some documentation to the style crate.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11834 )
<!-- Reviewable:end -->
2016-06-27 17:14:55 -05:00
Ms2ger
79e0d18a1d
Add some documentation to the style crate.
2016-06-27 17:33:14 +02:00
Simon Sapin
f7f81e0ed0
Use our copy of RefCell for style data.
...
This allows removing `#![feature(as_unsafe_cell)]` in geckolib
and make progress towards #11815 .
2016-06-23 16:13:49 +02:00
Simon Sapin
00b6210519
Make the style crate almost build on stable Rust.
...
`discriminant_value` will need to be replaced with something else later.
2016-06-22 15:44:13 +02:00
Cameron McCormack
6d67aa8a01
Pass Gecko sheet base/referrer/principal from Servo_StylesheetFromUTF8Bytes through ParserContext.
2016-05-24 12:12:17 +10:00
bors-servo
0a3a50a129
Auto merge of #10706 - zwn:unused-extern-crates, r=nox
...
Turn on unused-extern-crates warning.
As discussed in #9256 . It should solve second half of the issue.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706 )
<!-- Reviewable:end -->
2016-04-22 13:40:38 -07:00
Zbynek Winkler
b021874ba0
Silence unused-extern-crates false positives.
...
Added #[allow(unused_extern_crates)] to silence false positives
* bitflags, lazy_static and matches because macro_use
* alloc_jemalloc because builtin crate
See https://github.com/rust-lang/rust/issues/30849
2016-04-22 22:20:05 +02:00
Ms2ger
0f2b83ca0f
Use num-traits in style.
2016-04-20 15:11:41 +02:00
Bobby Holley
3c44dbae21
Add a skeleton implementation of TComputedValues in geckolib.
2016-03-24 11:50:58 -07:00
Ms2ger
08083f1c9d
Deny unsafe code in more crates.
2016-03-18 14:43:03 +01:00
Suvish Varghese Thoovamalayil
de68820e76
Remove unused cell_extras feature gates. Fixes #9912
2016-03-08 16:56:13 +05:30
Anthony Ramine
db8d502f41
Move util::logical_geometry to style
2016-02-18 10:17:13 +01:00
Anthony Ramine
09f865919d
Move util::bezier to style
2016-02-14 19:45:24 +01: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
Anthony Ramine
cb5cd8d881
Say farewell to in-tree HeapSizeOf
2016-02-04 22:03:32 +01:00
Emilio Cobos Álvarez
a1c830f1c1
Update rust-selectors
...
This commits updates rust-selectors to use the generic parser, and as
such it moves the element state into the style crate.
2016-02-03 02:11:31 +01:00