mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 507367 incorrect null check in nsSVGPatternFrame::GetTargetGeometry
r=jwatt
This commit is contained in:
parent
854b7b365e
commit
72de25b884
@ -592,8 +592,8 @@ nsSVGPatternFrame::GetTargetGeometry(gfxMatrix *aCTM,
|
||||
} else {
|
||||
*aTargetContent = static_cast<nsSVGElement*>(aTarget->GetContent());
|
||||
}
|
||||
NS_ASSERTION(aTargetContent,"Caller does not have any content!");
|
||||
if (!aTargetContent)
|
||||
NS_ASSERTION(*aTargetContent,"Caller does not have any content!");
|
||||
if (!*aTargetContent)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
if (callerType == nsGkAtoms::svgGlyphFrame) {
|
||||
|
Loading…
Reference in New Issue
Block a user