Bug 1360488 - Part 2: stylo: Propagate quirks mode information from Gecko to Servo r=bholley

MozReview-Commit-ID: 6AyuC2jd3d4
This commit is contained in:
Nazım Can Altınova
2017-05-06 01:12:03 +03:00
parent 7aed30d8da
commit fe6b4ad014
5 changed files with 11 additions and 6 deletions

View File

@@ -13,12 +13,13 @@ namespace mozilla {
/* static */ already_AddRefed<ServoDeclarationBlock>
ServoDeclarationBlock::FromCssText(const nsAString& aCssText,
URLExtraData* aExtraData)
URLExtraData* aExtraData,
nsCompatibility aMode)
{
NS_ConvertUTF16toUTF8 value(aCssText);
// FIXME (bug 1343964): Figure out a better solution for sending the base uri to servo
RefPtr<RawServoDeclarationBlock>
raw = Servo_ParseStyleAttribute(&value, aExtraData).Consume();
raw = Servo_ParseStyleAttribute(&value, aExtraData, aMode).Consume();
RefPtr<ServoDeclarationBlock> decl = new ServoDeclarationBlock(raw.forget());
return decl.forget();
}