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 |
61 Node* TrackBase::owner() const | 71 Node* TrackBase::owner() const |
62 { | 72 { |
63 return m_mediaElement; | 73 return m_mediaElement; |
64 } | 74 } |
65 | 75 |
66 DEFINE_TRACE(TrackBase) | 76 DEFINE_TRACE(TrackBase) |
67 { | 77 { |
68 visitor->trace(m_mediaElement); | 78 visitor->trace(m_mediaElement); |
69 } | 79 } |
70 | 80 |
71 void TrackBase::setKind(const AtomicString& kind) | 81 void TrackBase::setKind(const AtomicString& kind) |
72 { | 82 { |
73 if (isValidKind(kind)) | 83 if (isValidKind(kind)) |
74 m_kind = kind; | 84 m_kind = kind; |
75 else | 85 else |
76 m_kind = defaultKind(); | 86 m_kind = defaultKind(); |
77 } | 87 } |
78 | 88 |
79 } // namespace blink | 89 } // namespace blink |
OLD | NEW |