| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 3358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3369 m_loadState = WaitingForSource; | 3369 m_loadState = WaitingForSource; |
| 3370 | 3370 |
| 3371 // We can't cast if we don't have a media player. | 3371 // We can't cast if we don't have a media player. |
| 3372 m_playingRemotely = false; | 3372 m_playingRemotely = false; |
| 3373 remoteRouteAvailabilityChanged(WebRemotePlaybackAvailability::Unknown); | 3373 remoteRouteAvailabilityChanged(WebRemotePlaybackAvailability::Unknown); |
| 3374 | 3374 |
| 3375 if (layoutObject()) | 3375 if (layoutObject()) |
| 3376 layoutObject()->setShouldDoFullPaintInvalidation(); | 3376 layoutObject()->setShouldDoFullPaintInvalidation(); |
| 3377 } | 3377 } |
| 3378 | 3378 |
| 3379 void HTMLMediaElement::contextDestroyed() { | 3379 void HTMLMediaElement::contextDestroyed(ExecutionContext*) { |
| 3380 BLINK_MEDIA_LOG << "contextDestroyed(" << (void*)this << ")"; | 3380 BLINK_MEDIA_LOG << "contextDestroyed(" << (void*)this << ")"; |
| 3381 | 3381 |
| 3382 // Close the async event queue so that no events are enqueued. | 3382 // Close the async event queue so that no events are enqueued. |
| 3383 cancelPendingEventsAndCallbacks(); | 3383 cancelPendingEventsAndCallbacks(); |
| 3384 m_asyncEventQueue->close(); | 3384 m_asyncEventQueue->close(); |
| 3385 | 3385 |
| 3386 // Clear everything in the Media Element | 3386 // Clear everything in the Media Element |
| 3387 clearMediaPlayer(); | 3387 clearMediaPlayer(); |
| 3388 m_readyState = kHaveNothing; | 3388 m_readyState = kHaveNothing; |
| 3389 m_readyStateMaximum = kHaveNothing; | 3389 m_readyStateMaximum = kHaveNothing; |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4126 kMostlyFillViewportBecomeStableSeconds, BLINK_FROM_HERE); | 4126 kMostlyFillViewportBecomeStableSeconds, BLINK_FROM_HERE); |
| 4127 } | 4127 } |
| 4128 | 4128 |
| 4129 void HTMLMediaElement::viewportFillDebouncerTimerFired(TimerBase*) { | 4129 void HTMLMediaElement::viewportFillDebouncerTimerFired(TimerBase*) { |
| 4130 m_mostlyFillingViewport = true; | 4130 m_mostlyFillingViewport = true; |
| 4131 if (m_webMediaPlayer) | 4131 if (m_webMediaPlayer) |
| 4132 m_webMediaPlayer->becameDominantVisibleContent(m_mostlyFillingViewport); | 4132 m_webMediaPlayer->becameDominantVisibleContent(m_mostlyFillingViewport); |
| 4133 } | 4133 } |
| 4134 | 4134 |
| 4135 } // namespace blink | 4135 } // namespace blink |
| OLD | NEW |