diff --git a/dom/animation/KeyframeUtils.cpp b/dom/animation/KeyframeUtils.cpp index 2147c4ee705a..06839ffd1ae1 100644 --- a/dom/animation/KeyframeUtils.cpp +++ b/dom/animation/KeyframeUtils.cpp @@ -1014,8 +1014,6 @@ MakePropertyValuePair(nsCSSPropertyID aProperty, const nsAString& aStringValue, result.mProperty = aProperty; if (aDocument->GetStyleBackendType() == StyleBackendType::Servo) { - nsCString name = nsCSSProps::GetStringValue(aProperty); - NS_ConvertUTF16toUTF8 value(aStringValue); // FIXME this is using the wrong base uri (bug 1343919) @@ -1024,7 +1022,7 @@ MakePropertyValuePair(nsCSSPropertyID aProperty, const nsAString& aStringValue, aDocument->NodePrincipal()); RefPtr servoDeclarationBlock = - Servo_ParseProperty(&name, &value, data).Consume(); + Servo_ParseProperty(aProperty, &value, data).Consume(); if (servoDeclarationBlock) { result.mServoDeclarationBlock = servoDeclarationBlock.forget(); diff --git a/layout/style/ServoBindingList.h b/layout/style/ServoBindingList.h index c684caeb949f..fac53177b842 100644 --- a/layout/style/ServoBindingList.h +++ b/layout/style/ServoBindingList.h @@ -124,7 +124,7 @@ SERVO_BINDING_FUNC(Servo_PageRule_SetStyle, void, // Animations API SERVO_BINDING_FUNC(Servo_ParseProperty, RawServoDeclarationBlockStrong, - const nsACString* property, const nsACString* value, + nsCSSPropertyID property, const nsACString* value, RawGeckoURLExtraData* data) SERVO_BINDING_FUNC(Servo_ParseEasing, bool, const nsAString* easing,