Commit 4770bf71 authored by Kevin McNee's avatar Kevin McNee Committed by Commit Bot

Use static_cast instead of reinterpret_cast for downcasting

static_cast is better suited for downcasting since it can check that the
types are related.

/content/renderer/render_widget_fullscreen_pepper.cc
This CL was uploaded by git cl split.

R=jonross@chromium.org

Change-Id: I74f67a038605cf52ea40fa8eaec6047a8b1e4b48
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2434631
Auto-Submit: Kevin McNee <mcnee@chromium.org>
Reviewed-by: default avatarJonathan Ross <jonross@chromium.org>
Commit-Queue: Jonathan Ross <jonross@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811358}
parent a676d6bf
......@@ -336,8 +336,7 @@ WebInputEventResult RenderWidgetFullscreenPepper::ProcessInputEvent(
// generates context menu events. Since we don't have a WebView, we need to
// do the necessary translation ourselves.
if (WebInputEvent::IsMouseEventType(event.GetType())) {
const WebMouseEvent& mouse_event =
reinterpret_cast<const WebMouseEvent&>(event);
const WebMouseEvent& mouse_event = static_cast<const WebMouseEvent&>(event);
bool send_context_menu_event = false;
// On Mac/Linux, we handle it on mouse down.
// On Windows, we handle it on mouse up.
......
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