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 3202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3213 // We can't cast if we don't have a media player. | 3213 // We can't cast if we don't have a media player. |
3214 m_remoteRoutesAvailable = false; | 3214 m_remoteRoutesAvailable = false; |
3215 m_playingRemotely = false; | 3215 m_playingRemotely = false; |
3216 if (mediaControls()) | 3216 if (mediaControls()) |
3217 mediaControls()->refreshCastButtonVisibilityWithoutUpdate(); | 3217 mediaControls()->refreshCastButtonVisibilityWithoutUpdate(); |
3218 | 3218 |
3219 if (layoutObject()) | 3219 if (layoutObject()) |
3220 layoutObject()->setShouldDoFullPaintInvalidation(); | 3220 layoutObject()->setShouldDoFullPaintInvalidation(); |
3221 } | 3221 } |
3222 | 3222 |
3223 void HTMLMediaElement::stop() { | 3223 void HTMLMediaElement::contextDestroyed() { |
3224 BLINK_MEDIA_LOG << "stop(" << (void*)this << ")"; | 3224 BLINK_MEDIA_LOG << "contextDestroyed(" << (void*)this << ")"; |
3225 | 3225 |
3226 // Close the async event queue so that no events are enqueued. | 3226 // Close the async event queue so that no events are enqueued. |
3227 cancelPendingEventsAndCallbacks(); | 3227 cancelPendingEventsAndCallbacks(); |
3228 m_asyncEventQueue->close(); | 3228 m_asyncEventQueue->close(); |
3229 | 3229 |
3230 // Clear everything in the Media Element | 3230 // Clear everything in the Media Element |
3231 clearMediaPlayer(); | 3231 clearMediaPlayer(); |
3232 m_readyState = kHaveNothing; | 3232 m_readyState = kHaveNothing; |
3233 m_readyStateMaximum = kHaveNothing; | 3233 m_readyStateMaximum = kHaveNothing; |
3234 setNetworkState(kNetworkEmpty); | 3234 setNetworkState(kNetworkEmpty); |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3990 | 3990 |
3991 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() | 3991 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() |
3992 const { | 3992 const { |
3993 IntRect result; | 3993 IntRect result; |
3994 if (LayoutObject* object = m_element->layoutObject()) | 3994 if (LayoutObject* object = m_element->layoutObject()) |
3995 result = object->absoluteBoundingBoxRect(); | 3995 result = object->absoluteBoundingBoxRect(); |
3996 return result; | 3996 return result; |
3997 } | 3997 } |
3998 | 3998 |
3999 } // namespace blink | 3999 } // namespace blink |
OLD | NEW |