#include "core/html/track/TextTrackCueList.h"
#include "core/html/track/vtt/VTTRegionList.h"
-namespace WebCore {
+namespace blink {
using namespace HTMLNames;
LoadableTextTrack::LoadableTextTrack(HTMLTrackElement* track)
- : TextTrack(track->document(), emptyAtom, emptyAtom, emptyAtom, emptyAtom, TrackElement)
+ : TextTrack(emptyAtom, emptyAtom, emptyAtom, emptyAtom, TrackElement)
, m_trackElement(track)
, m_loadTimer(this, &LoadableTextTrack::loadTimerFired)
, m_isDefault(false)
void LoadableTextTrack::setMode(const AtomicString& mode)
{
TextTrack::setMode(mode);
+#if !ENABLE(OILPAN)
if (!m_trackElement)
return;
+#endif
if (m_trackElement->readyState() == HTMLTrackElement::NONE)
m_trackElement->scheduleLoad();
if (m_loader)
m_loader->cancelLoad();
+#if !ENABLE(OILPAN)
if (!m_trackElement)
return;
+#endif
// 4.8.10.12.3 Sourcing out-of-band text tracks (continued)
{
ASSERT_UNUSED(loader, m_loader == loader);
+#if !ENABLE(OILPAN)
if (!m_trackElement)
return;
+#endif
m_trackElement->didCompleteLoad(loadingFailed ? HTMLTrackElement::Failure : HTMLTrackElement::Success);
}
TextTrack::trace(visitor);
}
-} // namespace WebCore
+} // namespace blink