TextTrackRegion Not Implemented
[WebKit-https.git] / Source / WebCore / html / track / TextTrackRegion.cpp
index 11d3849..fa72510 100644 (file)
@@ -40,6 +40,7 @@
 #include "ExceptionCodePlaceholder.h"
 #include "HTMLDivElement.h"
 #include "Logging.h"
+#include "RenderElement.h"
 #include "VTTCue.h"
 #include "WebVTTParser.h"
 #include <wtf/MathExtras.h>
@@ -76,8 +77,8 @@ TextTrackRegion::TextTrackRegion(ScriptExecutionContext& context)
     , m_regionAnchor(FloatPoint(defaultAnchorPointX, defaultAnchorPointY))
     , m_viewportAnchor(FloatPoint(defaultAnchorPointX, defaultAnchorPointY))
     , m_scroll(defaultScroll)
-    , m_regionDisplayTree(nullptr)
     , m_cueContainer(nullptr)
+    , m_regionDisplayTree(nullptr)
     , m_track(nullptr)
     , m_currentTop(0)
     , m_scrollTimer(this, &TextTrackRegion::scrollTimerFired)
@@ -354,6 +355,8 @@ const AtomicString& TextTrackRegion::textTrackRegionShadowPseudoId()
 
 void TextTrackRegion::appendTextTrackCueBox(PassRefPtr<VTTCueBox> displayBox)
 {
+    ASSERT(m_cueContainer);
+
     if (m_cueContainer->contains(displayBox.get()))
         return;