Bug 1360488 - Part 2: stylo: Propagate quirks mode information from Gecko to Servo r=bholley
MozReview-Commit-ID: 6AyuC2jd3d4
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user