| Index: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| index 9b915b95dd7d202ecce9b1fc70ecf556e1fd6bf5..d1787bbcc2bc6ccccfc29b7ea6ba24aa7074b4aa 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
|
| @@ -54,13 +54,16 @@ namespace blink {
|
| using namespace HTMLNames;
|
|
|
| inline HTMLVideoElement::HTMLVideoElement(Document& document)
|
| - : HTMLMediaElement(videoTag, document),
|
| - m_customControlsFullscreenDetector(
|
| - new MediaCustomControlsFullscreenDetector(*this)) {
|
| + : HTMLMediaElement(videoTag, document) {
|
| if (document.settings()) {
|
| m_defaultPosterURL =
|
| AtomicString(document.settings()->getDefaultVideoPosterURL());
|
| }
|
| +
|
| + if (RuntimeEnabledFeatures::videoFullscreenDetectionEnabled()) {
|
| + m_customControlsFullscreenDetector =
|
| + new MediaCustomControlsFullscreenDetector(*this);
|
| + }
|
| }
|
|
|
| HTMLVideoElement* HTMLVideoElement::create(Document& document) {
|
|
|