diff options
author | Moonchild <moonchild@palemoon.org> | 2020-05-04 13:11:28 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-05-06 19:14:05 +0200 |
commit | 56cb90a482737ae5252ac8b7ccbc0aff0b309410 (patch) | |
tree | e0daea85a05298224d6009a8a26605436a358a1e /dom/events/Event.cpp | |
parent | 812574875b650526bae87d6eb5542eced678ca24 (diff) | |
download | UXP-56cb90a482737ae5252ac8b7ccbc0aff0b309410.tar UXP-56cb90a482737ae5252ac8b7ccbc0aff0b309410.tar.gz UXP-56cb90a482737ae5252ac8b7ccbc0aff0b309410.tar.lz UXP-56cb90a482737ae5252ac8b7ccbc0aff0b309410.tar.xz UXP-56cb90a482737ae5252ac8b7ccbc0aff0b309410.zip |
Issue #1517 - Remove dom.event.highrestimestamp.enabled pref
This resolves #1517
Diffstat (limited to 'dom/events/Event.cpp')
-rwxr-xr-x | dom/events/Event.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/dom/events/Event.cpp b/dom/events/Event.cpp index 280e40ad5..91417499b 100755 --- a/dom/events/Event.cpp +++ b/dom/events/Event.cpp @@ -44,9 +44,6 @@ extern bool IsCurrentThreadRunningChromeWorker(); static char *sPopupAllowedEvents; -static bool sReturnHighResTimeStamp = false; -static bool sReturnHighResTimeStampIsSet = false; - Event::Event(EventTarget* aOwner, nsPresContext* aPresContext, WidgetEvent* aEvent) @@ -67,13 +64,6 @@ Event::ConstructorInit(EventTarget* aOwner, SetOwner(aOwner); mIsMainThreadEvent = NS_IsMainThread(); - if (mIsMainThreadEvent && !sReturnHighResTimeStampIsSet) { - Preferences::AddBoolVarCache(&sReturnHighResTimeStamp, - "dom.event.highrestimestamp.enabled", - sReturnHighResTimeStamp); - sReturnHighResTimeStampIsSet = true; - } - mPrivateDataDuplicated = false; mWantsPopupControlCheck = false; @@ -1109,10 +1099,6 @@ Event::TimeStamp() const double Event::TimeStampImpl() const { - if (!sReturnHighResTimeStamp) { - return static_cast<double>(mEvent->mTime); - } - if (mEvent->mTimeStamp.IsNull()) { return 0.0; } |