Commit d6ecab29 authored by junov@chromium.org's avatar junov@chromium.org

Adding nullptr check in CanvasRenderingContext2D::draw

BUG=522799
NOTRY=true

Review URL: https://codereview.chromium.org/1288063010

git-svn-id: svn://svn.chromium.org/blink/trunk@200919 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 85634862
...@@ -885,7 +885,7 @@ bool CanvasRenderingContext2D::draw(const DrawFunc& drawFunc, const ContainsFunc ...@@ -885,7 +885,7 @@ bool CanvasRenderingContext2D::draw(const DrawFunc& drawFunc, const ContainsFunc
return false; return false;
SkIRect clipBounds; SkIRect clipBounds;
if (!drawingCanvas()->getClipDeviceBounds(&clipBounds)) if (!drawingCanvas() || !drawingCanvas()->getClipDeviceBounds(&clipBounds))
return false; return false;
// If gradient size is zero, then paint nothing. // If gradient size is zero, then paint nothing.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment