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

Side by Side Diff: Source/core/html/HTMLMediaElement.cpp

Issue 587373002: Do not fire an initial periodic timeupdate event while currentTime is 0 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 , m_playbackRate(1.0f) 316 , m_playbackRate(1.0f)
317 , m_defaultPlaybackRate(1.0f) 317 , m_defaultPlaybackRate(1.0f)
318 , m_networkState(NETWORK_EMPTY) 318 , m_networkState(NETWORK_EMPTY)
319 , m_readyState(HAVE_NOTHING) 319 , m_readyState(HAVE_NOTHING)
320 , m_readyStateMaximum(HAVE_NOTHING) 320 , m_readyStateMaximum(HAVE_NOTHING)
321 , m_volume(1.0f) 321 , m_volume(1.0f)
322 , m_lastSeekTime(0) 322 , m_lastSeekTime(0)
323 , m_previousProgressTime(std::numeric_limits<double>::max()) 323 , m_previousProgressTime(std::numeric_limits<double>::max())
324 , m_duration(std::numeric_limits<double>::quiet_NaN()) 324 , m_duration(std::numeric_limits<double>::quiet_NaN())
325 , m_lastTimeUpdateEventWallTime(0) 325 , m_lastTimeUpdateEventWallTime(0)
326 , m_lastTimeUpdateEventMovieTime(std::numeric_limits<double>::max()) 326 , m_lastTimeUpdateEventMovieTime(0)
327 , m_defaultPlaybackStartPosition(0) 327 , m_defaultPlaybackStartPosition(0)
328 , m_loadState(WaitingForSource) 328 , m_loadState(WaitingForSource)
329 , m_deferredLoadState(NotDeferred) 329 , m_deferredLoadState(NotDeferred)
330 , m_deferredLoadTimer(this, &HTMLMediaElement::deferredLoadTimerFired) 330 , m_deferredLoadTimer(this, &HTMLMediaElement::deferredLoadTimerFired)
331 , m_webLayer(0) 331 , m_webLayer(0)
332 , m_preload(MediaPlayer::Auto) 332 , m_preload(MediaPlayer::Auto)
333 , m_displayMode(Unknown) 333 , m_displayMode(Unknown)
334 , m_cachedTime(MediaPlayer::invalidTime()) 334 , m_cachedTime(MediaPlayer::invalidTime())
335 , m_fragmentEndTime(MediaPlayer::invalidTime()) 335 , m_fragmentEndTime(MediaPlayer::invalidTime())
336 , m_pendingActionFlags(0) 336 , m_pendingActionFlags(0)
(...skipping 3710 matching lines...) Expand 10 before | Expand all | Expand 10 after
4047 4047
4048 #if ENABLE(WEB_AUDIO) 4048 #if ENABLE(WEB_AUDIO)
4049 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) 4049 void HTMLMediaElement::clearWeakMembers(Visitor* visitor)
4050 { 4050 {
4051 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) 4051 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider())
4052 audioSourceProvider()->setClient(0); 4052 audioSourceProvider()->setClient(0);
4053 } 4053 }
4054 #endif 4054 #endif
4055 4055
4056 } 4056 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698