| Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| index a0807a878501ba7dbf78ad80b7d9f2cee8a31d97..15416fab4e632f86bd4bd37840c2bc16ebc767fa 100644
|
| --- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| +++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| @@ -2368,11 +2368,12 @@ bool CanvasRenderingContext2D::drawCustomFocusRing(Element* element)
|
|
|
| bool CanvasRenderingContext2D::focusRingCallIsValid(const Path& path, Element* element)
|
| {
|
| + ASSERT(element);
|
| if (!state().m_invertibleCTM)
|
| return false;
|
| if (path.isEmpty())
|
| return false;
|
| - if (!element || !element->isDescendantOf(canvas()))
|
| + if (!element->isDescendantOf(canvas()))
|
| return false;
|
|
|
| return true;
|
|
|