mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1269885: Enforce that a (re)initialized nsSVGViewBox's mBaseValue represents "none". r=longsonr
MozReview-Commit-ID: LVZtimXYllo
This commit is contained in:
parent
83303b4718
commit
028104646a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user