| OLD | NEW |
| 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 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1982 if (previousSeekStillPending) | 1982 if (previousSeekStillPending) |
| 1983 return; | 1983 return; |
| 1984 // FIXME: There must be a stable state before timeupdate+seeked are
dispatched and seeking | 1984 // FIXME: There must be a stable state before timeupdate+seeked are
dispatched and seeking |
| 1985 // is reset to false. See http://crbug.com/266631 | 1985 // is reset to false. See http://crbug.com/266631 |
| 1986 scheduleTimeupdateEvent(false); | 1986 scheduleTimeupdateEvent(false); |
| 1987 scheduleEvent(EventTypeNames::seeked); | 1987 scheduleEvent(EventTypeNames::seeked); |
| 1988 } | 1988 } |
| 1989 m_seeking = false; | 1989 m_seeking = false; |
| 1990 return; | 1990 return; |
| 1991 } | 1991 } |
| 1992 time = seekableRanges->nearest(time); | 1992 time = seekableRanges->nearest(time, now); |
| 1993 | 1993 |
| 1994 if (m_playing) { | 1994 if (m_playing) { |
| 1995 if (m_lastSeekTime < now) | 1995 if (m_lastSeekTime < now) |
| 1996 addPlayedRange(m_lastSeekTime, now); | 1996 addPlayedRange(m_lastSeekTime, now); |
| 1997 } | 1997 } |
| 1998 m_lastSeekTime = time; | 1998 m_lastSeekTime = time; |
| 1999 m_sentEndEvent = false; | 1999 m_sentEndEvent = false; |
| 2000 | 2000 |
| 2001 // 8 - Queue a task to fire a simple event named seeking at the element. | 2001 // 8 - Queue a task to fire a simple event named seeking at the element. |
| 2002 scheduleEvent(EventTypeNames::seeking); | 2002 scheduleEvent(EventTypeNames::seeking); |
| (...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3970 | 3970 |
| 3971 #if ENABLE(WEB_AUDIO) | 3971 #if ENABLE(WEB_AUDIO) |
| 3972 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3972 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
| 3973 { | 3973 { |
| 3974 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) | 3974 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) |
| 3975 audioSourceProvider()->setClient(0); | 3975 audioSourceProvider()->setClient(0); |
| 3976 } | 3976 } |
| 3977 #endif | 3977 #endif |
| 3978 | 3978 |
| 3979 } | 3979 } |
| OLD | NEW |