Commit ab2088c5 authored by Lan Wei's avatar Lan Wei Committed by Commit Bot

Remove the check for input_state in the session for all pointers

In ExecutePerformActions function, we have checked if all the
coordinates stored in input_state for all pointers are integers. Right
now, we did not clear the states from the previous session, which
makes this check fail for some wpt pointerevent tests.
https://wpt.fyi/results/pointerevents/
pointerevent_touch-action-keyboard.html?label=master&label=experimental

We will add it back once we have added the ExecuteReleaseActions
function after running each test in wpt serve.

Bug: 606367
Change-Id: Ifda3d57fd8cc0506f713ee26984eb2cbceff02ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713249Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680031}
parent e4adfa40
...@@ -1429,10 +1429,10 @@ Status ExecutePerformActions(Session* session, ...@@ -1429,10 +1429,10 @@ Status ExecutePerformActions(Session* session,
} }
} }
int init_x, init_y; int init_x = 0;
if (!input_state->GetInteger("x", &init_x) || int init_y = 0;
!input_state->GetInteger("y", &init_y)) input_state->GetInteger("x", &init_x);
return Status(kUnknownError, "invalid input state"); input_state->GetInteger("y", &init_y);
if (pointer_type == "mouse" || pointer_type == "pen") { if (pointer_type == "mouse" || pointer_type == "pen") {
longest_mouse_list_size = longest_mouse_list_size =
......
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