mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use upstream lazy_static!() macro through Cargo
... instead of having our own copy. https://github.com/Kimundi/lazy-static.rs
This commit is contained in:
parent
af96e8e409
commit
a40b94d7f9
6 changed files with 7 additions and 66 deletions
|
@ -29,3 +29,5 @@ git = "https://github.com/servo/rust-cssparser"
|
|||
[dependencies.encoding]
|
||||
git = "https://github.com/lifthrasiir/rust-encoding"
|
||||
|
||||
[dependencies.lazy_static]
|
||||
git = "https://github.com/Kimundi/lazy-static.rs"
|
||||
|
|
|
@ -22,9 +22,9 @@ extern crate url;
|
|||
|
||||
extern crate cssparser;
|
||||
extern crate encoding;
|
||||
|
||||
#[phase(plugin)]
|
||||
extern crate "macros" as servo_macros;
|
||||
extern crate lazy_static;
|
||||
|
||||
extern crate "util" as servo_util;
|
||||
|
||||
|
||||
|
|
|
@ -1822,7 +1822,7 @@ fn get_writing_mode(inheritedbox_style: &style_structs::InheritedBox) -> Writing
|
|||
|
||||
|
||||
/// The initial values for all style structs as defined by the specification.
|
||||
lazy_init! {
|
||||
lazy_static! {
|
||||
static ref INITIAL_VALUES: ComputedValues = ComputedValues {
|
||||
% for style_struct in STYLE_STRUCTS:
|
||||
${style_struct.ident}: Arc::new(style_structs::${style_struct.name} {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue