mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
stylo: Implement gecko glue for font-language-override.
To be aligned with the implementation from Gecko side, we parse font-language-override as Normal keyword or String. Then, we compute and store it as a u32. So, as to the stylo glue, we can just pass the u32 to Gecko. The extra crate, byteorder, is used to simplify the computing and serialization. Since we now implement font-language-override for Gecko, we can remove the additional branches for font-language-override in font shorthand. ref: Gecko Bug 1347821
This commit is contained in:
parent
9eb6bb78b0
commit
a9e4b9caa6
6 changed files with 103 additions and 39 deletions
|
@ -41,6 +41,7 @@ extern crate app_units;
|
|||
extern crate atomic_refcell;
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
#[allow(unused_extern_crates)] extern crate byteorder;
|
||||
#[cfg(feature = "gecko")] #[macro_use] #[no_link] extern crate cfg_if;
|
||||
#[macro_use] extern crate cssparser;
|
||||
extern crate euclid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue