| 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 3274 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3285     if (!m_playedTimeRanges) |  3285     if (!m_playedTimeRanges) | 
|  3286         m_playedTimeRanges = TimeRanges::create(); |  3286         m_playedTimeRanges = TimeRanges::create(); | 
|  3287  |  3287  | 
|  3288     return m_playedTimeRanges->copy(); |  3288     return m_playedTimeRanges->copy(); | 
|  3289 } |  3289 } | 
|  3290  |  3290  | 
|  3291 PassRefPtrWillBeRawPtr<TimeRanges> HTMLMediaElement::seekable() const |  3291 PassRefPtrWillBeRawPtr<TimeRanges> HTMLMediaElement::seekable() const | 
|  3292 { |  3292 { | 
|  3293     if (webMediaPlayer()) { |  3293     if (webMediaPlayer()) { | 
|  3294         double maxTimeSeekable = webMediaPlayer()->maxTimeSeekable(); |  3294         double maxTimeSeekable = webMediaPlayer()->maxTimeSeekable(); | 
|  3295         if (maxTimeSeekable) |  3295         if (maxTimeSeekable || duration() != std::numeric_limits<double>::infini
      ty()) | 
|  3296             return TimeRanges::create(0, maxTimeSeekable); |  3296             return TimeRanges::create(0, maxTimeSeekable); | 
|  3297     } |  3297     } | 
|  3298     return TimeRanges::create(); |  3298     return TimeRanges::create(); | 
|  3299 } |  3299 } | 
|  3300  |  3300  | 
|  3301 bool HTMLMediaElement::potentiallyPlaying() const |  3301 bool HTMLMediaElement::potentiallyPlaying() const | 
|  3302 { |  3302 { | 
|  3303     // "pausedToBuffer" means the media engine's rate is 0, but only because it 
      had to stop playing |  3303     // "pausedToBuffer" means the media engine's rate is 0, but only because it 
      had to stop playing | 
|  3304     // when it ran out of buffered data. A movie is this state is "potentially p
      laying", modulo the |  3304     // when it ran out of buffered data. A movie is this state is "potentially p
      laying", modulo the | 
|  3305     // checks in couldPlayIfEnoughData(). |  3305     // checks in couldPlayIfEnoughData(). | 
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4031  |  4031  | 
|  4032 #if ENABLE(WEB_AUDIO) |  4032 #if ENABLE(WEB_AUDIO) | 
|  4033 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |  4033 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 
|  4034 { |  4034 { | 
|  4035     if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) |  4035     if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) | 
|  4036         audioSourceProvider()->setClient(0); |  4036         audioSourceProvider()->setClient(0); | 
|  4037 } |  4037 } | 
|  4038 #endif |  4038 #endif | 
|  4039  |  4039  | 
|  4040 } |  4040 } | 
| OLD | NEW |