| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 WebKitSourceBuffer::~WebKitSourceBuffer() | 72 WebKitSourceBuffer::~WebKitSourceBuffer() |
| 73 { | 73 { |
| 74 } | 74 } |
| 75 | 75 |
| 76 PassRefPtr<TimeRanges> WebKitSourceBuffer::buffered(ExceptionState& exceptionSta
te) const | 76 PassRefPtr<TimeRanges> WebKitSourceBuffer::buffered(ExceptionState& exceptionSta
te) const |
| 77 { | 77 { |
| 78 // Section 3.1 buffered attribute steps. | 78 // Section 3.1 buffered attribute steps. |
| 79 // 1. If this object has been removed from the sourceBuffers attribute of th
e parent media source then throw an | 79 // 1. If this object has been removed from the sourceBuffers attribute of th
e parent media source then throw an |
| 80 // InvalidStateError exception and abort these steps. | 80 // InvalidStateError exception and abort these steps. |
| 81 if (throwExceptionIfRemoved(isRemoved(), exceptionState)) | 81 if (throwExceptionIfRemoved(isRemoved(), exceptionState)) |
| 82 return 0; | 82 return nullptr; |
| 83 | 83 |
| 84 // 2. Return a new static normalized TimeRanges object for the media segment
s buffered. | 84 // 2. Return a new static normalized TimeRanges object for the media segment
s buffered. |
| 85 return TimeRanges::create(m_webSourceBuffer->buffered()); | 85 return TimeRanges::create(m_webSourceBuffer->buffered()); |
| 86 } | 86 } |
| 87 | 87 |
| 88 double WebKitSourceBuffer::timestampOffset() const | 88 double WebKitSourceBuffer::timestampOffset() const |
| 89 { | 89 { |
| 90 return m_timestampOffset; | 90 return m_timestampOffset; |
| 91 } | 91 } |
| 92 | 92 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 { | 172 { |
| 173 return !m_source; | 173 return !m_source; |
| 174 } | 174 } |
| 175 | 175 |
| 176 void WebKitSourceBuffer::trace(Visitor* visitor) | 176 void WebKitSourceBuffer::trace(Visitor* visitor) |
| 177 { | 177 { |
| 178 visitor->trace(m_source); | 178 visitor->trace(m_source); |
| 179 } | 179 } |
| 180 | 180 |
| 181 } // namespace WebCore | 181 } // namespace WebCore |
| OLD | NEW |