| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 TrackBase::~TrackBase() | 54 TrackBase::~TrackBase() |
| 55 { | 55 { |
| 56 #if !ENABLE(OILPAN) | 56 #if !ENABLE(OILPAN) |
| 57 ASSERT(!m_mediaElement); | 57 ASSERT(!m_mediaElement); |
| 58 #endif | 58 #endif |
| 59 } | 59 } |
| 60 | 60 |
| 61 void TrackBase::setMediaElement(HTMLMediaElement* mediaElement) | |
| 62 { | |
| 63 m_mediaElement = mediaElement; | |
| 64 } | |
| 65 | |
| 66 HTMLMediaElement* TrackBase::mediaElement() const | |
| 67 { | |
| 68 return m_mediaElement; | |
| 69 } | |
| 70 | |
| 71 Node* TrackBase::owner() const | 61 Node* TrackBase::owner() const |
| 72 { | 62 { |
| 73 return m_mediaElement; | 63 return m_mediaElement; |
| 74 } | 64 } |
| 75 | 65 |
| 76 DEFINE_TRACE(TrackBase) | 66 DEFINE_TRACE(TrackBase) |
| 77 { | 67 { |
| 78 visitor->trace(m_mediaElement); | 68 visitor->trace(m_mediaElement); |
| 79 } | 69 } |
| 80 | 70 |
| 81 void TrackBase::setKind(const AtomicString& kind) | 71 void TrackBase::setKind(const AtomicString& kind) |
| 82 { | 72 { |
| 83 if (isValidKind(kind)) | 73 if (isValidKind(kind)) |
| 84 m_kind = kind; | 74 m_kind = kind; |
| 85 else | 75 else |
| 86 m_kind = defaultKind(); | 76 m_kind = defaultKind(); |
| 87 } | 77 } |
| 88 | 78 |
| 89 } // namespace blink | 79 } // namespace blink |
| OLD | NEW |