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

Unified Diff: Source/modules/mediasource/VideoPlaybackQuality.cpp

Issue 176763009: Have DOMWindow deal with references instead of pointers when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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/mediasource/VideoPlaybackQuality.cpp
diff --git a/Source/modules/mediasource/VideoPlaybackQuality.cpp b/Source/modules/mediasource/VideoPlaybackQuality.cpp
index 04f54eee9ec3d24640e576686619e5f9a453adac..4d49837583f665c498d925bb323d649c0659f3ff 100644
--- a/Source/modules/mediasource/VideoPlaybackQuality.cpp
+++ b/Source/modules/mediasource/VideoPlaybackQuality.cpp
@@ -50,8 +50,8 @@ VideoPlaybackQuality::VideoPlaybackQuality(
, m_droppedVideoFrames(droppedVideoFrames)
, m_corruptedVideoFrames(corruptedVideoFrames)
{
- if (document.domWindow() && document.domWindow()->performance())
- m_creationTime = document.domWindow()->performance()->now();
+ if (document.domWindow())
+ m_creationTime = document.domWindow()->performance().now();
}
}
« no previous file with comments | « Source/core/page/CreateWindow.cpp ('k') | Source/modules/screen_orientation/ScreenOrientationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698