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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 910983005: Decouple performance() from LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months 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
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 3f0dcfd7315d3d14c225c13003d02250fb1d5e17..0cfc807f29963488b3e137d14dac1bfa471eab96 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -147,6 +147,7 @@
#include "core/rendering/RenderBox.h"
#include "core/rendering/RenderFrame.h"
#include "core/rendering/RenderView.h"
+#include "core/timing/DOMWindowPerformance.h"
#include "core/timing/Performance.h"
#include "modules/geolocation/GeolocationController.h"
#include "modules/notifications/NotificationPermissionClient.h"
@@ -686,7 +687,7 @@ WebPerformance WebLocalFrameImpl::performance() const
{
if (!frame())
return WebPerformance();
- return WebPerformance(frame()->domWindow()->performance());
+ return WebPerformance(DOMWindowPerformance::performance(*(frame()->domWindow())));
}
bool WebLocalFrameImpl::dispatchBeforeUnloadEvent()
« Source/modules/webmidi/MIDIOutput.cpp ('K') | « Source/modules/webmidi/MIDIOutput.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698