forked from mirrors/gecko-dev
merge commit
This commit is contained in:
commit
2ab53f03ad
1 changed files with 2 additions and 2 deletions
|
|
@ -277,7 +277,7 @@ nsSVGViewBox::SMILViewBox
|
|||
}
|
||||
nsSMILValue val(&SVGViewBoxSMILType::sSingleton);
|
||||
// Check for OOM when the nsSMILValue ctor called SVGViewBoxSMILType::Init:
|
||||
if (!val.mU.mPtr) {
|
||||
if (val.IsNull()) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
*static_cast<nsSVGViewBoxRect*>(val.mU.mPtr) = viewBox;
|
||||
|
|
@ -291,7 +291,7 @@ nsSVGViewBox::SMILViewBox::GetBaseValue() const
|
|||
{
|
||||
nsSMILValue val(&SVGViewBoxSMILType::sSingleton);
|
||||
// Check for OOM when the nsSMILValue ctor called SVGViewBoxSMILType::Init:
|
||||
if (val.mU.mPtr) {
|
||||
if (!val.IsNull()) {
|
||||
*static_cast<nsSVGViewBoxRect*>(val.mU.mPtr) = mVal->mBaseVal;
|
||||
}
|
||||
return val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue