Guest User

Untitled

a guest
Jun 25th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. diff --git c/WebCore/WebCore.pri i/WebCore/WebCore.pri
  2. index 3331626..a70b28d 100644
  3. --- c/WebCore/WebCore.pri
  4. +++ i/WebCore/WebCore.pri
  5. @@ -60,6 +60,7 @@ STYLESHEETS_EMBED = \
  6. $$PWD/css/wml.css \
  7. $$PWD/css/mediaControls.css \
  8. $$PWD/css/mediaControlsQt.css \
  9. + $$PWD/css/mediaControlsQtFullscreen.css \
  10. $$PWD/css/themeQtNoListboxes.css \
  11. $$PWD/css/themeQtMobile.css
  12.  
  13. diff --git c/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp i/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
  14. index d69dbc3..ffe6dee 100644
  15. --- c/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
  16. +++ i/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
  17. @@ -159,7 +159,8 @@ void MediaPlayerPrivateQt::load(const String& url)
  18.  
  19. // QtMultimedia does not have an API to throttle loading
  20. // so we handle this ourselves by delaying the load
  21. - if (m_preload == MediaPlayer::None) {
  22. + if (m_preload == MediaPlayer::None
  23. + || m_webCorePlayer->shouldForceFullscreenVideoPlayback()) {
  24. m_delayingLoad = true;
  25. return;
  26. }
  27. diff --git c/WebCore/platform/qt/RenderThemeQt.cpp i/WebCore/platform/qt/RenderThemeQt.cpp
  28. index 7388b76..fffb594 100644
  29. --- c/WebCore/platform/qt/RenderThemeQt.cpp
  30. +++ i/WebCore/platform/qt/RenderThemeQt.cpp
  31. @@ -989,7 +989,12 @@ ControlPart RenderThemeQt::initializeCommonQStyleOptions(QStyleOption& option, R
  32.  
  33. String RenderThemeQt::extraMediaControlsStyleSheet()
  34. {
  35. - return String(mediaControlsQtUserAgentStyleSheet, sizeof(mediaControlsQtUserAgentStyleSheet));
  36. + String result = String(mediaControlsQtUserAgentStyleSheet, sizeof(mediaControlsQtUserAgentStyleSheet));
  37. +
  38. + if (m_page && m_page->chrome()->client()->shouldForceFullScreenVideoPlayback())
  39. + result += String(mediaControlsQtFullscreenUserAgentStyleSheet, sizeof(mediaControlsQtFullscreenUserAgentStyleSheet));
  40. +
  41. + return result;
  42. }
  43.  
  44. // 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