Make some things that return never-null pointers return references instead.
[WebKit-https.git] / Source / WebCore / html / HTMLMediaElement.cpp
index 2a698b5..a67e26d 100644 (file)
@@ -4649,7 +4649,7 @@ bool HTMLMediaElement::createMediaControls()
     if (isFullscreen())
         mediaControls->enteredFullscreen();
 
-    ensureUserAgentShadowRoot()->appendChild(mediaControls, ASSERT_NO_EXCEPTION);
+    ensureUserAgentShadowRoot().appendChild(mediaControls, ASSERT_NO_EXCEPTION);
 
     if (!controls() || !inDocument())
         mediaControls->hide();