mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
Bug 1467536: Serialize properties flagged as SerializedByServo from getComputedStyle. r=xidorn
MozReview-Commit-ID: 9hnxejljlhG
This commit is contained in:
parent
5545421406
commit
f5badb6060
@ -464,13 +464,18 @@ nsComputedDOMStyle::GetPropertyValue(const nsAString& aPropertyName,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (RefPtr<CSSValue> value = (this->*entry->mGetter)()) {
|
||||
ErrorResult rv;
|
||||
nsString text;
|
||||
value->GetCssText(text, rv);
|
||||
aReturn.Assign(text);
|
||||
return rv.StealNSResult();
|
||||
if (!nsCSSProps::PropHasFlags(prop, CSSPropFlags::SerializedByServo)) {
|
||||
if (RefPtr<CSSValue> value = (this->*entry->mGetter)()) {
|
||||
ErrorResult rv;
|
||||
nsString text;
|
||||
value->GetCssText(text, rv);
|
||||
aReturn.Assign(text);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Servo_GetPropertyValue(mComputedStyle, prop, &aReturn);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user