Chromium Code Reviews| 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) { | |
|
vsevik
2013/12/13 13:04:43
nit: drop braces for consistency.
Ami GONE FROM CHROMIUM
2013/12/13 17:48:43
Done.
| |
| 3149 scheduleEvent(EventTypeNames::resize); | |
| 3150 } | |
| 3151 | |
| 3148 if (renderer()) | 3152 if (renderer()) |
| 3149 renderer()->updateFromElement(); | 3153 renderer()->updateFromElement(); |
| 3150 } | 3154 } |
| 3151 | 3155 |
| 3152 PassRefPtr<TimeRanges> HTMLMediaElement::buffered() const | 3156 PassRefPtr<TimeRanges> HTMLMediaElement::buffered() const |
| 3153 { | 3157 { |
| 3154 if (!m_player) | 3158 if (!m_player) |
| 3155 return TimeRanges::create(); | 3159 return TimeRanges::create(); |
| 3156 | 3160 |
| 3157 if (m_mediaSource) | 3161 if (m_mediaSource) |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3912 if (m_webLayer) | 3916 if (m_webLayer) |
| 3913 m_webLayer->setOpaque(m_opaque); | 3917 m_webLayer->setOpaque(m_opaque); |
| 3914 } | 3918 } |
| 3915 | 3919 |
| 3916 bool HTMLMediaElement::isInteractiveContent() const | 3920 bool HTMLMediaElement::isInteractiveContent() const |
| 3917 { | 3921 { |
| 3918 return fastHasAttribute(controlsAttr); | 3922 return fastHasAttribute(controlsAttr); |
| 3919 } | 3923 } |
| 3920 | 3924 |
| 3921 } | 3925 } |
| OLD | NEW |