mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Do not use CVAS for FontSettings<T>
This commit is contained in:
parent
def983c295
commit
bf034a83e8
4 changed files with 8 additions and 11 deletions
|
@ -316,7 +316,7 @@
|
|||
|
||||
% if not property.derived_from:
|
||||
match value {
|
||||
DeclaredValue::Value(ref specified_value) => {
|
||||
DeclaredValue::Value(specified_value) => {
|
||||
% if property.ident in SYSTEM_FONT_LONGHANDS and product == "gecko":
|
||||
if let Some(sf) = specified_value.get_system() {
|
||||
longhands::system_font::resolve_system_font(sf, context);
|
||||
|
|
|
@ -2014,15 +2014,10 @@ https://drafts.csswg.org/css-fonts-4/#low-level-font-variation-settings-control-
|
|||
animation_value_type="ComputedValue"
|
||||
flags="APPLIES_TO_FIRST_LETTER APPLIES_TO_FIRST_LINE APPLIES_TO_PLACEHOLDER"
|
||||
spec="${variation_spec}">
|
||||
use values::computed::ComputedValueAsSpecified;
|
||||
use values::generics::FontSettings;
|
||||
|
||||
impl ComputedValueAsSpecified for SpecifiedValue {}
|
||||
|
||||
pub type SpecifiedValue = computed_value::T;
|
||||
|
||||
|
||||
|
||||
pub mod computed_value {
|
||||
use values::generics::{FontSettings, FontSettingTagFloat};
|
||||
pub type T = FontSettings<FontSettingTagFloat>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue