DevTools: 'Overrides' UI overlay obstructs page and element inspector

BUG=302862
R=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160559 bbb929c8-8fbe-4397-9dbb-9b2b20218538
bool InspectorOverlay::handleMouseEvent(const PlatformMouseEvent& event)
{
    if (isEmpty())
        return false;

    EventHandler& eventHandler = overlayPage()->mainFrame()->eventHandler();
    bool result;
    switch (event.type()) {
    case PlatformEvent::MouseMoved:
        result = eventHandler.handleMouseMoveEvent(event);
        break;
    case PlatformEvent::MousePressed:
        result = eventHandler.handleMousePressEvent(event);
        break;
    case PlatformEvent::MouseReleased:
        result = eventHandler.handleMouseReleaseEvent(event);
        break;
    default:
        return false;
    }

    overlayPage()->mainFrame()->document()->updateLayout();
    return result;
}

bool InspectorOverlay::handleMouseEvent(const PlatformMouseEvent& event)
{
    if (isEmpty())
        return false;

    EventHandler& eventHandler = overlayPage()->mainFrame()->eventHandler();
    bool result;
    switch (event.type()) {
    case PlatformEvent::MouseMoved:
        result = eventHandler.handleMouseMoveEvent(event);
        break;
    case PlatformEvent::MousePressed:
        result = eventHandler.handleMousePressEvent(event);
        break;
    case PlatformEvent::MouseReleased:
        result = eventHandler.handleMouseReleaseEvent(event);
        break;
    default:
        return false;
    }

    overlayPage()->mainFrame()->document()->updateLayout();
    return result;
}
