mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
style: Move -moz-script-size-multiplier outside of mako
This commit is contained in:
parent
976f9e3d13
commit
20cfefbbbd
7 changed files with 53 additions and 26 deletions
|
@ -3182,11 +3182,12 @@ pub extern "C" fn Servo_DeclarationBlock_SetNumberValue(
|
|||
) {
|
||||
use style::properties::{PropertyDeclaration, LonghandId};
|
||||
use style::properties::longhands::_moz_script_level::SpecifiedValue as MozScriptLevel;
|
||||
use style::properties::longhands::_moz_script_size_multiplier::SpecifiedValue as MozScriptSizeMultiplier;
|
||||
|
||||
let long = get_longhand_from_id!(property);
|
||||
|
||||
let prop = match_wrap_declared! { long,
|
||||
MozScriptSizeMultiplier => value,
|
||||
MozScriptSizeMultiplier => MozScriptSizeMultiplier(value),
|
||||
// Gecko uses Number values to signal that it is absolute
|
||||
MozScriptLevel => MozScriptLevel::MozAbsolute(value as i32),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue