mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Qualify libstyle enums.
This commit is contained in:
parent
9068e62f2a
commit
d759b07299
5 changed files with 38 additions and 38 deletions
|
@ -101,8 +101,8 @@ impl FontContext {
|
|||
// painting. We should also support true small-caps (where the
|
||||
// font supports it) in the future.
|
||||
let actual_pt_size = match variant {
|
||||
font_variant::small_caps => pt_size.scale_by(SMALL_CAPS_SCALE_FACTOR),
|
||||
font_variant::normal => pt_size,
|
||||
font_variant::T::small_caps => pt_size.scale_by(SMALL_CAPS_SCALE_FACTOR),
|
||||
font_variant::T::normal => pt_size,
|
||||
};
|
||||
|
||||
let handle: FontHandle = FontHandleMethods::new_from_template(&self.platform_handle,
|
||||
|
@ -139,7 +139,7 @@ impl FontContext {
|
|||
// so they will never be released. Find out a good time to drop them.
|
||||
|
||||
let desc = FontTemplateDescriptor::new(style.font_weight,
|
||||
style.font_style == font_style::italic);
|
||||
style.font_style == font_style::T::italic);
|
||||
let mut fonts = SmallVec8::new();
|
||||
|
||||
for family in style.font_family.iter() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue