зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1324700 - Servo_ParseProperty() takes nsCSSPropertyID instead of nsACString. r=heycam
MozReview-Commit-ID: Gn90DBlJSS9 --HG-- extra : rebase_source : 444f4188de7e32f5414f2b75046903dc504db1a0
This commit is contained in:
Родитель
b802b1057e
Коммит
784bf46abc
|
@ -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<RawServoDeclarationBlock> servoDeclarationBlock =
|
||||
Servo_ParseProperty(&name, &value, data).Consume();
|
||||
Servo_ParseProperty(aProperty, &value, data).Consume();
|
||||
|
||||
if (servoDeclarationBlock) {
|
||||
result.mServoDeclarationBlock = servoDeclarationBlock.forget();
|
||||
|
|
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче