Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(797)

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/user_model.cc

Issue 2476263002: scheduler: Reset pending input event count on navigation (Closed)
Patch Set: Formatting Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/renderer/user_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scheduler/renderer/user_model.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/user_model.cc b/third_party/WebKit/Source/platform/scheduler/renderer/user_model.cc
index a288c1b83c08b2b7a37c88d821a257c38cee9627..ac8e50fa6527bdc606463c2961bf16e37e8de8e7 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/user_model.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/user_model.cc
@@ -196,6 +196,7 @@ void UserModel::Reset(base::TimeTicks now) {
last_reset_time_ = now;
is_gesture_active_ = false;
is_gesture_expected_ = false;
+ pending_input_event_count_ = 0;
}
void UserModel::AsValueInto(base::trace_event::TracedValue* state) const {
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/renderer/user_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698