Box larger specified values to avoid memmove impact

This commit is contained in:
Nazım Can Altınova 2017-02-06 21:53:59 +03:00 committed by Simon Sapin
parent abc40f61c0
commit 78afe2b8d1
26 changed files with 174 additions and 67 deletions

View file

@ -1007,12 +1007,12 @@ pub extern "C" fn Servo_DeclarationBlock_AddPresValue(declarations: RawServoDecl
}
LonghandId::Color => {
if let Some(color) = css_value.color_value() {
PropertyDeclaration::Color(DeclaredValue::Value(
PropertyDeclaration::Color(DeclaredValue::Value(Box::new(
specified::CSSRGBA {
parsed: convert_nscolor_to_rgba(color),
authored: None
}
))
)))
} else {
error!("stylo: got unexpected non-integer value for color presentation attribute");
return