Commit a0601c14 authored by dmichael@chromium.org's avatar dmichael@chromium.org

Make WebPluginContainerImpl::invalidateRect check for NULL renderer

The plugin might attempt to call invalidateRect while it is being
destroyed, in which case its renderer could be NULL.

BUG=432045

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185308 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7d2aee0e
......@@ -137,6 +137,8 @@ void WebPluginContainerImpl::invalidateRect(const IntRect& rect)
return;
RenderBox* renderer = toRenderBox(m_element->renderer());
if (!renderer)
return;
IntRect dirtyRect = rect;
dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(),
......
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