Bug 1269885: Enforce that a (re)initialized nsSVGViewBox's mBaseValue represents "none". r=longsonr

MozReview-Commit-ID: LVZtimXYllo
This commit is contained in:
Daniel Holbert 2016-06-01 09:21:03 -07:00
parent 83303b4718
commit 028104646a

View File

@ -67,6 +67,11 @@ void
nsSVGViewBox::Init()
{
mHasBaseVal = false;
// We shouldn't use mBaseVal for rendering (its usages should be guarded with
// "mHasBaseVal" checks), but just in case we do by accident, this will
// ensure that we treat it as "none" and ignore its numeric values:
mBaseVal.none = true;
mAnimVal = nullptr;
}