mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 05:37:11 +00:00
mTarget can be null in CanvasRenderingContext2D::ClearRect(), return early if so.
This commit is contained in:
@@ -2528,7 +2528,7 @@ CanvasRenderingContext2D::ClearRect(double aX, double aY, double aW,
|
||||
double aH)
|
||||
{
|
||||
// Do not allow zeros - it's a no-op at that point per spec.
|
||||
if (!ValidateRect(aX, aY, aW, aH, false)) {
|
||||
if (!mTarget || !ValidateRect(aX, aY, aW, aH, false)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user