Bug 1350010, part 7 - Treat unset -moz-context-properties as 'inherit'. r=heycam

MozReview-Commit-ID: Cu3dbFfeCgM
This commit is contained in:
Jonathan Watt 2017-04-21 12:46:18 +01:00
parent 4a322bd7c5
commit 4ee0a918ed

View File

@ -9637,6 +9637,7 @@ nsRuleNode::ComputeSVGData(void* aStartStruct,
}
case eCSSUnit_Inherit:
case eCSSUnit_Unset:
svg->mContextProps.Clear();
svg->mContextProps.AppendElements(parentSVG->mContextProps);
svg->mContextPropsBits = parentSVG->mContextPropsBits;
@ -9645,7 +9646,6 @@ nsRuleNode::ComputeSVGData(void* aStartStruct,
case eCSSUnit_Initial:
case eCSSUnit_None:
case eCSSUnit_Unset:
svg->mContextProps.Clear();
svg->mContextPropsBits = 0;
break;