Bug 1334330 - Part 3: stylo: Use GenericSpecifiedValue abstraction in elements using only common mappers; r=bz,emilio

MozReview-Commit-ID: B8vg4ZiqRGK
This commit is contained in:
Manish Goregaokar
2017-01-26 16:51:01 -08:00
parent e8b3bc62ed
commit 2d1e54b302
9 changed files with 49 additions and 57 deletions

View File

@@ -319,14 +319,13 @@ HTMLImageElement::ParseAttribute(int32_t aNamespaceID,
void
HTMLImageElement::MapAttributesIntoRule(const nsMappedAttributes* aAttributes,
GenericSpecifiedValues* aGenericData)
GenericSpecifiedValues* aData)
{
nsRuleData* aData = aGenericData->AsRuleData();
nsGenericHTMLElement::MapImageAlignAttributeInto(aAttributes, aGenericData);
nsGenericHTMLElement::MapImageBorderAttributeInto(aAttributes, aGenericData);
nsGenericHTMLElement::MapImageMarginAttributeInto(aAttributes, aGenericData);
nsGenericHTMLElement::MapImageSizeAttributesInto(aAttributes, aGenericData);
nsGenericHTMLElement::MapCommonAttributesInto(aAttributes, aGenericData);
nsGenericHTMLElement::MapImageAlignAttributeInto(aAttributes, aData);
nsGenericHTMLElement::MapImageBorderAttributeInto(aAttributes, aData);
nsGenericHTMLElement::MapImageMarginAttributeInto(aAttributes, aData);
nsGenericHTMLElement::MapImageSizeAttributesInto(aAttributes, aData);
nsGenericHTMLElement::MapCommonAttributesInto(aAttributes, aData);
}
nsChangeHint