Bug 1546998 - Remove EventStateManager::UserInputCount; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D29323

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Edgar Chen 2019-04-30 08:55:10 +00:00
Родитель 86c8243a1a
Коммит aeb9b8e285
2 изменённых файлов: 0 добавлений и 14 удалений

Просмотреть файл

@ -193,7 +193,6 @@ NS_INTERFACE_MAP_END
static uint32_t sESMInstanceCount = 0;
uint64_t EventStateManager::sUserInputCounter = 0;
int32_t EventStateManager::sUserInputEventDepth = 0;
int32_t EventStateManager::sUserKeyboardEventDepth = 0;
bool EventStateManager::sNormalLMouseEventInProcess = false;
@ -4055,7 +4054,6 @@ bool EventStateManager::IsHandlingKeyboardInput() {
/*static*/
void EventStateManager::StartHandlingUserInput(EventMessage aMessage) {
++sUserInputEventDepth;
++sUserInputCounter;
if (sUserInputEventDepth == 1) {
sLatestUserInputStart = sHandlingInputStart = TimeStamp::Now();
}

Просмотреть файл

@ -268,13 +268,6 @@ class EventStateManager : public nsSupportsWeakReference, public nsIObserver {
static bool IsHandlingUserInput();
static bool IsHandlingKeyboardInput();
/**
* Get the number of user inputs handled since process start. This
* includes anything that is initiated by user, with the exception
* of page load events or mouse over events.
*/
static uint64_t UserInputCount() { return sUserInputCounter; }
/**
* Get the timestamp at which the latest user input was handled.
*
@ -1256,11 +1249,6 @@ class EventStateManager : public nsSupportsWeakReference, public nsIObserver {
// Array for accesskey support
nsCOMArray<nsIContent> mAccessKeys;
// The number of user inputs handled since process start. This
// includes anything that is initiated by user, with the exception
// of page load events or mouse over events.
static uint64_t sUserInputCounter;
// The current depth of user and keyboard inputs. sUserInputEventDepth
// is the number of any user input events, page load events and mouse over
// events. sUserKeyboardEventDepth is the number of keyboard input events.