| 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 3184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3195 } | 3195 } |
| 3196 | 3196 |
| 3197 // MediaPlayerPresentation methods | 3197 // MediaPlayerPresentation methods |
| 3198 void HTMLMediaElement::mediaPlayerRepaint() | 3198 void HTMLMediaElement::mediaPlayerRepaint() |
| 3199 { | 3199 { |
| 3200 if (m_webLayer) | 3200 if (m_webLayer) |
| 3201 m_webLayer->invalidate(); | 3201 m_webLayer->invalidate(); |
| 3202 | 3202 |
| 3203 updateDisplayState(); | 3203 updateDisplayState(); |
| 3204 if (renderer()) | 3204 if (renderer()) |
| 3205 renderer()->paintInvalidationForWholeRenderer(); | 3205 renderer()->setShouldDoFullPaintInvalidation(true); |
| 3206 } | 3206 } |
| 3207 | 3207 |
| 3208 void HTMLMediaElement::mediaPlayerSizeChanged() | 3208 void HTMLMediaElement::mediaPlayerSizeChanged() |
| 3209 { | 3209 { |
| 3210 WTF_LOG(Media, "HTMLMediaElement::mediaPlayerSizeChanged"); | 3210 WTF_LOG(Media, "HTMLMediaElement::mediaPlayerSizeChanged"); |
| 3211 | 3211 |
| 3212 ASSERT(hasVideo()); // "resize" makes no sense absent video. | 3212 ASSERT(hasVideo()); // "resize" makes no sense absent video. |
| 3213 if (m_readyState > HAVE_NOTHING && isHTMLVideoElement(*this)) | 3213 if (m_readyState > HAVE_NOTHING && isHTMLVideoElement(*this)) |
| 3214 scheduleEvent(EventTypeNames::resize); | 3214 scheduleEvent(EventTypeNames::resize); |
| 3215 | 3215 |
| (...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3989 | 3989 |
| 3990 #if ENABLE(WEB_AUDIO) | 3990 #if ENABLE(WEB_AUDIO) |
| 3991 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3991 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
| 3992 { | 3992 { |
| 3993 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) | 3993 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) |
| 3994 audioSourceProvider()->setClient(0); | 3994 audioSourceProvider()->setClient(0); |
| 3995 } | 3995 } |
| 3996 #endif | 3996 #endif |
| 3997 | 3997 |
| 3998 } | 3998 } |
| OLD | NEW |