Commit 55b3c61b authored by Zhuoyu Qian's avatar Zhuoyu Qian Committed by Commit Bot

Remove the check of LocalRootImpl() in HandleInputEvent().

In the function WebFrameWidgetImpl::HandleInputEvent, it looks like not
need to check LocalRootImpl(), this patch removes it.

Change-Id: I13ff011721e748875635b8894a57501a71efeb84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2318893Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: Zhuoyu Qian <zhuoyu.qian@samsung.com>
Cr-Commit-Position: refs/heads/master@{#792975}
parent 102ca21f
...@@ -456,12 +456,10 @@ WebInputEventResult WebFrameWidgetImpl::HandleInputEvent( ...@@ -456,12 +456,10 @@ WebInputEventResult WebFrameWidgetImpl::HandleInputEvent(
if (!GetPage()) if (!GetPage())
return WebInputEventResult::kNotHandled; return WebInputEventResult::kNotHandled;
if (LocalRootImpl()) { if (WebDevToolsAgentImpl* devtools = LocalRootImpl()->DevToolsAgentImpl()) {
if (WebDevToolsAgentImpl* devtools = LocalRootImpl()->DevToolsAgentImpl()) { auto result = devtools->HandleInputEvent(input_event);
auto result = devtools->HandleInputEvent(input_event); if (result != WebInputEventResult::kNotHandled)
if (result != WebInputEventResult::kNotHandled) return result;
return result;
}
} }
// Report the event to be NOT processed by WebKit, so that the browser can // Report the event to be NOT processed by WebKit, so that the browser can
......
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