| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/html/HTMLMediaElement.h" | 30 #include "core/html/HTMLMediaElement.h" |
| 31 #include "core/html/HTMLTrackElement.h" | 31 #include "core/html/HTMLTrackElement.h" |
| 32 #include "core/html/track/TextTrackCueList.h" | 32 #include "core/html/track/TextTrackCueList.h" |
| 33 #include "core/html/track/vtt/VTTRegionList.h" | 33 #include "core/html/track/vtt/VTTRegionList.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 using namespace HTMLNames; | 37 using namespace HTMLNames; |
| 38 | 38 |
| 39 LoadableTextTrack::LoadableTextTrack(HTMLTrackElement* track) | 39 LoadableTextTrack::LoadableTextTrack(HTMLTrackElement* track) |
| 40 : TextTrack(track->document(), emptyAtom, emptyAtom, emptyAtom, emptyAtom, T
rackElement) | 40 : TextTrack(emptyAtom, emptyAtom, emptyAtom, emptyAtom, TrackElement) |
| 41 , m_trackElement(track) | 41 , m_trackElement(track) |
| 42 , m_loadTimer(this, &LoadableTextTrack::loadTimerFired) | 42 , m_loadTimer(this, &LoadableTextTrack::loadTimerFired) |
| 43 , m_isDefault(false) | 43 , m_isDefault(false) |
| 44 { | 44 { |
| 45 } | 45 } |
| 46 | 46 |
| 47 LoadableTextTrack::~LoadableTextTrack() | 47 LoadableTextTrack::~LoadableTextTrack() |
| 48 { | 48 { |
| 49 #if !ENABLE(OILPAN) | 49 #if !ENABLE(OILPAN) |
| 50 ASSERT(!m_trackElement); | 50 ASSERT(!m_trackElement); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } | 172 } |
| 173 | 173 |
| 174 void LoadableTextTrack::trace(Visitor* visitor) | 174 void LoadableTextTrack::trace(Visitor* visitor) |
| 175 { | 175 { |
| 176 visitor->trace(m_trackElement); | 176 visitor->trace(m_trackElement); |
| 177 visitor->trace(m_loader); | 177 visitor->trace(m_loader); |
| 178 TextTrack::trace(visitor); | 178 TextTrack::trace(visitor); |
| 179 } | 179 } |
| 180 | 180 |
| 181 } // namespace WebCore | 181 } // namespace WebCore |
| OLD | NEW |