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

Unified Diff: Source/modules/webmidi/MIDIOutput.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/modules/webmidi/MIDIOutput.cpp
diff --git a/Source/modules/webmidi/MIDIOutput.cpp b/Source/modules/webmidi/MIDIOutput.cpp
index 4a10e4ca676c455dc76d156aa25f277de8df8551..b54d1eef0cfebeefad760b376c18d0f34f0b17e1 100644
--- a/Source/modules/webmidi/MIDIOutput.cpp
+++ b/Source/modules/webmidi/MIDIOutput.cpp
@@ -35,6 +35,7 @@
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
#include "core/frame/LocalDOMWindow.h"
+#include "core/timing/DOMWindowPerformance.h"
#include "core/timing/Performance.h"
#include "modules/webmidi/MIDIAccess.h"
@@ -45,7 +46,7 @@ namespace {
double now(ExecutionContext* context)
{
LocalDOMWindow* window = context ? context->executingWindow() : 0;
- Performance* performance = window ? window->performance() : 0;
+ Performance* performance = window ? DOMWindowPerformance::performance(*window) : 0;
jsbell 2015/02/12 20:09:06 Make it nullptr while you're here? (and maybe the
return performance ? performance->now() : 0.0;
}

Powered by Google App Engine
This is Rietveld 408576698