mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Remove the stupid space serialization on font-settings.
This commit is contained in:
parent
190e9b9715
commit
1380f1a14f
4 changed files with 69 additions and 70 deletions
|
@ -58,7 +58,7 @@ impl ToNsCssValue for font_feature_settings::T {
|
|||
nscssvalue.set_pair_list(tags.into_iter().map(|entry| {
|
||||
let mut feature = nsCSSValue::null();
|
||||
let mut raw = [0u8; 4];
|
||||
(&mut raw[..]).write_u32::<BigEndian>(entry.tag).unwrap();
|
||||
(&mut raw[..]).write_u32::<BigEndian>(entry.tag.0).unwrap();
|
||||
feature.set_string(str::from_utf8(&raw).unwrap());
|
||||
|
||||
let mut index = nsCSSValue::null();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue