mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Revert "style: Preserve font-family identifier sequence when serializing."
This reverts commit 4f525f6fa0
.
This commit is contained in:
parent
ac37f81c1f
commit
e163352714
4 changed files with 24 additions and 52 deletions
|
@ -5,7 +5,7 @@
|
|||
use cssparser::SourceLocation;
|
||||
use gfx::font_cache_thread::FontCacheThread;
|
||||
use ipc_channel::ipc;
|
||||
use style::computed_values::font_family::{FamilyName, FamilyNameSyntax};
|
||||
use style::computed_values::font_family::FamilyName;
|
||||
use style::font_face::{FontFaceRuleData, Source};
|
||||
|
||||
#[test]
|
||||
|
@ -15,11 +15,11 @@ fn test_local_web_font() {
|
|||
let font_cache_thread = FontCacheThread::new(inp_chan, None);
|
||||
let family_name = FamilyName {
|
||||
name: From::from("test family"),
|
||||
syntax: FamilyNameSyntax::Quoted,
|
||||
quoted: true,
|
||||
};
|
||||
let variant_name = FamilyName {
|
||||
name: From::from("test font face"),
|
||||
syntax: FamilyNameSyntax::Quoted,
|
||||
quoted: true,
|
||||
};
|
||||
let font_face_rule = FontFaceRuleData {
|
||||
family: Some(family_name.clone()),
|
||||
|
|
|
@ -14,7 +14,7 @@ use servo_url::ServoUrl;
|
|||
use std::borrow::ToOwned;
|
||||
use std::sync::Mutex;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
use style::computed_values::font_family::{FamilyName, FamilyNameSyntax};
|
||||
use style::computed_values::font_family::FamilyName;
|
||||
use style::context::QuirksMode;
|
||||
use style::error_reporting::{ParseErrorReporter, ContextualParseError};
|
||||
use style::media_queries::MediaList;
|
||||
|
@ -254,7 +254,7 @@ fn test_parse_stylesheet() {
|
|||
CssRule::FontFeatureValues(Arc::new(stylesheet.shared_lock.wrap(FontFeatureValuesRule {
|
||||
family_names: vec![FamilyName {
|
||||
name: Atom::from("test"),
|
||||
syntax: FamilyNameSyntax::Identifiers(vec![Atom::from("test")]),
|
||||
quoted: false,
|
||||
}],
|
||||
swash: vec![
|
||||
FFVDeclaration {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue