diff options
Diffstat (limited to 'WebCore/html/HTMLVideoElement.cpp')
-rw-r--r-- | WebCore/html/HTMLVideoElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/html/HTMLVideoElement.cpp b/WebCore/html/HTMLVideoElement.cpp index ed2d35c..cd9c7ec 100644 --- a/WebCore/html/HTMLVideoElement.cpp +++ b/WebCore/html/HTMLVideoElement.cpp @@ -76,7 +76,7 @@ void HTMLVideoElement::attach() updateDisplayState(); if (shouldDisplayPosterImage()) { if (!m_imageLoader) - m_imageLoader.set(new HTMLImageLoader(this)); + m_imageLoader = adoptPtr(new HTMLImageLoader(this)); m_imageLoader->updateFromElement(); if (renderer()) { RenderImage* imageRenderer = toRenderImage(renderer()); @@ -105,7 +105,7 @@ void HTMLVideoElement::parseMappedAttribute(Attribute* attr) #if !ENABLE(PLUGIN_PROXY_FOR_VIDEO) if (shouldDisplayPosterImage()) { if (!m_imageLoader) - m_imageLoader.set(new HTMLImageLoader(this)); + m_imageLoader = adoptPtr(new HTMLImageLoader(this)); m_imageLoader->updateFromElementIgnoringPreviousError(); } else { if (m_imageLoader) |