Bug 1309109 part 7 - Remove the extra level of GeckoDeclarationBlock. r=manishearth,mystor

MozReview-Commit-ID: 2TzqrAWbaeD
This commit is contained in:
Xidorn Quan
2016-10-18 15:29:03 +11:00
parent 0cd7cc2ac0
commit e3277454a2
4 changed files with 6 additions and 13 deletions

View File

@@ -14,8 +14,7 @@ ServoDeclarationBlock::FromStyleAttribute(const nsAString& aString)
{
NS_ConvertUTF16toUTF8 value(aString);
RefPtr<RawServoDeclarationBlock> raw = Servo_ParseStyleAttribute(
reinterpret_cast<const uint8_t*>(value.get()),
value.Length(), nullptr).Consume();
reinterpret_cast<const uint8_t*>(value.get()), value.Length()).Consume();
RefPtr<ServoDeclarationBlock> decl = new ServoDeclarationBlock(raw.forget());
return decl.forget();
}