| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 m_attachedElement->durationChanged(duration); | 164 m_attachedElement->durationChanged(duration); |
| 165 m_webMediaSource->setDuration(duration); | 165 m_webMediaSource->setDuration(duration); |
| 166 } | 166 } |
| 167 | 167 |
| 168 | 168 |
| 169 void MediaSourceBase::setReadyState(const AtomicString& state) | 169 void MediaSourceBase::setReadyState(const AtomicString& state) |
| 170 { | 170 { |
| 171 ASSERT(state == openKeyword() || state == closedKeyword() || state == endedK
eyword()); | 171 ASSERT(state == openKeyword() || state == closedKeyword() || state == endedK
eyword()); |
| 172 | 172 |
| 173 AtomicString oldState = readyState(); | 173 AtomicString oldState = readyState(); |
| 174 WTF_LOG(Media, "MediaSourceBase::setReadyState() %p : %s -> %s", this, oldSt
ate.string().ascii().data(), state.string().ascii().data()); | 174 WTF_LOG(Media, "MediaSourceBase::setReadyState() %p : %s -> %s", this, oldSt
ate.ascii().data(), state.ascii().data()); |
| 175 | 175 |
| 176 if (state == closedKeyword()) { | 176 if (state == closedKeyword()) { |
| 177 m_webMediaSource.clear(); | 177 m_webMediaSource.clear(); |
| 178 m_attachedElement = 0; | 178 m_attachedElement = 0; |
| 179 } | 179 } |
| 180 | 180 |
| 181 if (oldState == state) | 181 if (oldState == state) |
| 182 return; | 182 return; |
| 183 | 183 |
| 184 m_readyState = state; | 184 m_readyState = state; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 { | 309 { |
| 310 return ActiveDOMObject::executionContext(); | 310 return ActiveDOMObject::executionContext(); |
| 311 } | 311 } |
| 312 | 312 |
| 313 URLRegistry& MediaSourceBase::registry() const | 313 URLRegistry& MediaSourceBase::registry() const |
| 314 { | 314 { |
| 315 return MediaSourceRegistry::registry(); | 315 return MediaSourceRegistry::registry(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 } | 318 } |
| OLD | NEW |