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 3127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3138 | 3138 |
3139 updateDisplayState(); | 3139 updateDisplayState(); |
3140 if (renderer()) | 3140 if (renderer()) |
3141 renderer()->repaint(); | 3141 renderer()->repaint(); |
3142 } | 3142 } |
3143 | 3143 |
3144 void HTMLMediaElement::mediaPlayerSizeChanged() | 3144 void HTMLMediaElement::mediaPlayerSizeChanged() |
3145 { | 3145 { |
3146 WTF_LOG(Media, "HTMLMediaElement::mediaPlayerSizeChanged"); | 3146 WTF_LOG(Media, "HTMLMediaElement::mediaPlayerSizeChanged"); |
3147 | 3147 |
| 3148 if (m_readyState > HAVE_NOTHING) |
| 3149 scheduleEvent(EventTypeNames::resize); |
| 3150 |
3148 if (renderer()) | 3151 if (renderer()) |
3149 renderer()->updateFromElement(); | 3152 renderer()->updateFromElement(); |
3150 } | 3153 } |
3151 | 3154 |
3152 PassRefPtr<TimeRanges> HTMLMediaElement::buffered() const | 3155 PassRefPtr<TimeRanges> HTMLMediaElement::buffered() const |
3153 { | 3156 { |
3154 if (!m_player) | 3157 if (!m_player) |
3155 return TimeRanges::create(); | 3158 return TimeRanges::create(); |
3156 | 3159 |
3157 if (m_mediaSource) | 3160 if (m_mediaSource) |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3912 if (m_webLayer) | 3915 if (m_webLayer) |
3913 m_webLayer->setOpaque(m_opaque); | 3916 m_webLayer->setOpaque(m_opaque); |
3914 } | 3917 } |
3915 | 3918 |
3916 bool HTMLMediaElement::isInteractiveContent() const | 3919 bool HTMLMediaElement::isInteractiveContent() const |
3917 { | 3920 { |
3918 return fastHasAttribute(controlsAttr); | 3921 return fastHasAttribute(controlsAttr); |
3919 } | 3922 } |
3920 | 3923 |
3921 } | 3924 } |
OLD | NEW |