| Index: Source/core/html/HTMLVideoElement.cpp
|
| diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp
|
| index 7748b964d1893c7670773a8fea40ff6241c94855..4009845fde9f2db3b6f1f45f9bb48a584c6554ae 100644
|
| --- a/Source/core/html/HTMLVideoElement.cpp
|
| +++ b/Source/core/html/HTMLVideoElement.cpp
|
| @@ -32,10 +32,11 @@
|
| #include "core/dom/Attribute.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "core/dom/shadow/ShadowRoot.h"
|
| +#include "core/frame/Settings.h"
|
| #include "core/html/HTMLImageLoader.h"
|
| #include "core/html/canvas/CanvasRenderingContext.h"
|
| #include "core/html/parser/HTMLParserIdioms.h"
|
| -#include "core/frame/Settings.h"
|
| #include "core/rendering/RenderImage.h"
|
| #include "core/rendering/RenderVideo.h"
|
| #include "platform/UserGestureIndicator.h"
|
| @@ -54,9 +55,10 @@ inline HTMLVideoElement::HTMLVideoElement(Document& document)
|
|
|
| PassRefPtrWillBeRawPtr<HTMLVideoElement> HTMLVideoElement::create(Document& document)
|
| {
|
| - RefPtrWillBeRawPtr<HTMLVideoElement> videoElement(adoptRefWillBeRefCountedGarbageCollected(new HTMLVideoElement(document)));
|
| - videoElement->suspendIfNeeded();
|
| - return videoElement.release();
|
| + RefPtrWillBeRawPtr<HTMLVideoElement> video = adoptRefWillBeRefCountedGarbageCollected(new HTMLVideoElement(document));
|
| + video->ensureUserAgentShadowRoot();
|
| + video->suspendIfNeeded();
|
| + return video.release();
|
| }
|
|
|
| bool HTMLVideoElement::rendererIsNeeded(const RenderStyle& style)
|
|
|