Commit 5e93ea19 authored by Dave Tapuska's avatar Dave Tapuska Committed by Commit Bot

Fix OOPIF hit testing in layout tests.

If we haven't received an activated surface yet ensure that we fallback
to querying the renderer for the target of input events.

BUG=601584

Change-Id: Id5dfcdb6bf54b98bebbd2a3b715d77202f402781
Reviewed-on: https://chromium-review.googlesource.com/1131219Reviewed-by: default avatarKen Buchanan <kenrb@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#573789}
parent f2eac7a5
......@@ -518,6 +518,8 @@ viz::FrameSinkId RenderWidgetHostViewBase::FrameSinkIdAtPoint(
gfx::ConvertPointToPixel(device_scale_factor, point);
viz::SurfaceId surface_id = GetCurrentSurfaceId();
if (!surface_id.is_valid()) {
// Force a query of the renderer if we don't have a surface id yet.
*out_query_renderer = true;
return GetFrameSinkId();
}
viz::SurfaceHittest hittest(delegate,
......
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