nsCSSClipPathInstance.cpp - add null check.
parent
2779858895
commit
2d268b7cb3
|
@ -59,7 +59,7 @@ nsCSSClipPathInstance::HitTestBasicShapeClip(nsIFrame* aFrame,
|
|||
RefPtr<Path> path = instance.CreateClipPath(drawTarget);
|
||||
float pixelRatio = float(nsPresContext::AppUnitsPerCSSPixel()) /
|
||||
aFrame->PresContext()->AppUnitsPerDevPixel();
|
||||
return path->ContainsPoint(ToPoint(aPoint) * pixelRatio, Matrix());
|
||||
return path ? path->ContainsPoint(ToPoint(aPoint) * pixelRatio, Matrix()) : false;
|
||||
}
|
||||
|
||||
already_AddRefed<Path>
|
||||
|
|
Loading…
Reference in New Issue