#include "config.h"
#include "core/html/HTMLTrackElement.h"
-#include "HTMLNames.h"
-#include "bindings/v8/ExceptionStatePlaceholder.h"
+#include "bindings/core/v8/ExceptionStatePlaceholder.h"
+#include "core/HTMLNames.h"
+#include "core/dom/Document.h"
#include "core/events/Event.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/html/HTMLMediaElement.h"
#include "platform/Logging.h"
-using namespace std;
-
-namespace WebCore {
+namespace blink {
using namespace HTMLNames;
ScriptWrappable::init(this);
}
+DEFINE_NODE_FACTORY(HTMLTrackElement)
+
HTMLTrackElement::~HTMLTrackElement()
{
+#if !ENABLE(OILPAN)
if (m_track)
m_track->clearTrackElement();
-}
-
-PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(Document& document)
-{
- return adoptRef(new HTMLTrackElement(document));
+#endif
}
Node::InsertionNotificationRequest HTMLTrackElement::insertedInto(ContainerNode* insertionPoint)
return 0;
}
+void HTMLTrackElement::trace(Visitor* visitor)
+{
+ visitor->trace(m_track);
+ HTMLElement::trace(visitor);
+}
+
}