Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git c/WebCore/WebCore.pri i/WebCore/WebCore.pri
- index 3331626..a70b28d 100644
- --- c/WebCore/WebCore.pri
- +++ i/WebCore/WebCore.pri
- @@ -60,6 +60,7 @@ STYLESHEETS_EMBED = \
- $$PWD/css/wml.css \
- $$PWD/css/mediaControls.css \
- $$PWD/css/mediaControlsQt.css \
- + $$PWD/css/mediaControlsQtFullscreen.css \
- $$PWD/css/themeQtNoListboxes.css \
- $$PWD/css/themeQtMobile.css
- diff --git c/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp i/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
- index d69dbc3..ffe6dee 100644
- --- c/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
- +++ i/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
- @@ -159,7 +159,8 @@ void MediaPlayerPrivateQt::load(const String& url)
- // QtMultimedia does not have an API to throttle loading
- // so we handle this ourselves by delaying the load
- - if (m_preload == MediaPlayer::None) {
- + if (m_preload == MediaPlayer::None
- + || m_webCorePlayer->shouldForceFullscreenVideoPlayback()) {
- m_delayingLoad = true;
- return;
- }
- diff --git c/WebCore/platform/qt/RenderThemeQt.cpp i/WebCore/platform/qt/RenderThemeQt.cpp
- index 7388b76..fffb594 100644
- --- c/WebCore/platform/qt/RenderThemeQt.cpp
- +++ i/WebCore/platform/qt/RenderThemeQt.cpp
- @@ -989,7 +989,12 @@ ControlPart RenderThemeQt::initializeCommonQStyleOptions(QStyleOption& option, R
- String RenderThemeQt::extraMediaControlsStyleSheet()
- {
- - return String(mediaControlsQtUserAgentStyleSheet, sizeof(mediaControlsQtUserAgentStyleSheet));
- + String result = String(mediaControlsQtUserAgentStyleSheet, sizeof(mediaControlsQtUserAgentStyleSheet));
- +
- + if (m_page && m_page->chrome()->client()->shouldForceFullScreenVideoPlayback())
- + result += String(mediaControlsQtFullscreenUserAgentStyleSheet, sizeof(mediaControlsQtFullscreenUserAgentStyleSheet));
- +
- + return result;
- }
- // Helper class to transform the painter's world matrix to the object's content area, scaled to 0,0,100,100
Add Comment
Please, Sign In to add comment