summaryrefslogtreecommitdiffstats
path: root/layout/base/nsDocumentViewer.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-04 10:06:24 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-04 10:07:40 +0200
commitb28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9 (patch)
tree0b6e4cfff6c1d4f699aa04c98c27744b4c0c481f /layout/base/nsDocumentViewer.cpp
parent45ec2bceb4822646805136b8874a3681b14e78ef (diff)
parent93cae908bcbd063f21d5663a7d3149464af2ad20 (diff)
downloadUXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.tar
UXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.tar.gz
UXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.tar.lz
UXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.tar.xz
UXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.zip
Remove all C++ telemetry autotimers
Tag #21
Diffstat (limited to 'layout/base/nsDocumentViewer.cpp')
-rw-r--r--layout/base/nsDocumentViewer.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp
index 8b76227ff..5478c61b0 100644
--- a/layout/base/nsDocumentViewer.cpp
+++ b/layout/base/nsDocumentViewer.cpp
@@ -1206,11 +1206,8 @@ nsDocumentViewer::PermitUnloadInternal(bool *aShouldPrompt,
nsIDocument::PageUnloadingEventTimeStamp timestamp(mDocument);
mInPermitUnload = true;
- {
- Telemetry::AutoTimer<Telemetry::HANDLE_BEFOREUNLOAD_MS> telemetryTimer;
- EventDispatcher::DispatchDOMEvent(window, nullptr, event, mPresContext,
+ EventDispatcher::DispatchDOMEvent(window, nullptr, event, mPresContext,
nullptr);
- }
mInPermitUnload = false;
}
@@ -1389,10 +1386,7 @@ nsDocumentViewer::PageHide(bool aIsUnload)
nsIDocument::PageUnloadingEventTimeStamp timestamp(mDocument);
- {
- Telemetry::AutoTimer<Telemetry::HANDLE_UNLOAD_MS> telemetryTimer;
- EventDispatcher::Dispatch(window, mPresContext, &event, nullptr, &status);
- }
+ EventDispatcher::Dispatch(window, mPresContext, &event, nullptr, &status);
}
#ifdef MOZ_XUL