Changeset 83654 in webkit
- Timestamp:
- Apr 12, 2011 3:46:01 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83652 r83654 1 2011-04-11 Jer Noble <jer.noble@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 REGRESSION: Vimeo fullscreen video displays incorrectly 6 https://bugs.webkit.org/show_bug.cgi?id=58291 7 8 * fullscreen/video-specified-size-expected.txt: Added. 9 * fullscreen/video-specified-size.html: Added. 10 * fullscreen/full-screen-test.js: 11 * fullscreen/full-screen-zIndex-expected.txt: Added. 12 * fullscreen/full-screen-zIndex.html: Added. 13 * platform/mac/fullscreen/full-screen-zIndex-expected.checksum: Added. 14 * platform/mac/fullscreen/full-screen-zIndex-expected.png: Added. 15 1 16 2011-04-12 Yael Aharon <yael.aharon@nokia.com> 2 17 -
trunk/LayoutTests/fullscreen/full-screen-test.js
r81038 r83654 1 1 var console = null; 2 2 var printFullTestDetails = true; // This is optionaly switched of by test whose tested values can differ. (see disableFullTestDetailsPrinting()) 3 var runPixelTests; 3 4 4 5 logConsole(); 5 6 6 if ( window.layoutTestController) {7 if (!runPixelTests && window.layoutTestController) { 7 8 layoutTestController.dumpAsText(); 8 9 layoutTestController.waitUntilDone(); … … 81 82 } 82 83 83 function waitForEventAndEnd(e ventName, funcString)84 function waitForEventAndEnd(element, eventName, funcString) 84 85 { 85 waitForEvent(e ventName, funcString, true)86 waitForEvent(element, eventName, funcString, true) 86 87 } 87 88 -
trunk/Source/WebCore/ChangeLog
r83653 r83654 1 2011-04-11 Jer Noble <jer.noble@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 REGRESSION: Vimeo fullscreen video displays incorrectly 6 https://bugs.webkit.org/show_bug.cgi?id=58291 7 8 Set the RenderFullScreen's zIndex to the max. And make sure to override 9 a video element's specified width and height by making its full screen rules 10 important. Also, always show the controls when a media element is in full 11 screen mode. 12 13 Test: fullscreen/video-specified-size.html 14 Test: fullscreen/full-screen-zIndex.html 15 16 * css/fullscreen.css: 17 (video:-webkit-full-screen): 18 * html/HTMLMediaElement.cpp: 19 (WebCore::HTMLMediaElement::controls): Always show controls in full screen mode. 20 (WebCore::HTMLMediaElement::preDispatchEventHandler): Added. Handle the fullscreen 21 change event and hide or show the controls accordingly. 22 * html/HTMLMediaElement.h: 23 * rendering/RenderFullScreen.cpp: 24 (RenderFullScreen::createFullScreenStyle): Set the zIndex to INT_MAX and use a 25 vertical flexbox instead of a horizontal one. 26 1 27 2011-04-12 Chris Marrin <cmarrin@apple.com> 2 28 -
trunk/Source/WebCore/css/fullscreen.css
r75277 r83654 8 8 9 9 video:-webkit-full-screen { 10 background-color: black; 11 width: auto; 12 height: 100%; 13 max-width: 100%; 10 background-color: black !important; 11 position: static !important; 12 margin: 0 !important; 13 height: 100% !important; 14 width: 100% !important; 15 -webkit-box-flex: 1 !important; 16 display: block !important; 14 17 } 15 18 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r83545 r83654 1493 1493 return true; 1494 1494 1495 // Always show controls when in full screen mode. 1496 if (isFullscreen()) 1497 return true; 1498 1495 1499 return hasAttribute(controlsAttr); 1496 1500 } … … 2652 2656 } 2653 2657 2654 } 2655 2656 #endif 2658 void* HTMLMediaElement::preDispatchEventHandler(Event* event) 2659 { 2660 if (event && event->type() == eventNames().webkitfullscreenchangeEvent) { 2661 if (controls()) { 2662 if (!hasMediaControls()) { 2663 ensureMediaControls(); 2664 mediaControls()->reset(); 2665 } 2666 mediaControls()->show(); 2667 } else if (hasMediaControls()) 2668 mediaControls()->hide(); 2669 } 2670 return 0; 2671 } 2672 2673 2674 } 2675 2676 #endif -
trunk/Source/WebCore/html/HTMLMediaElement.h
r83545 r83654 327 327 void ensureMediaControls(); 328 328 329 virtual void* preDispatchEventHandler(Event*); 330 329 331 Timer<HTMLMediaElement> m_loadTimer; 330 332 Timer<HTMLMediaElement> m_asyncEventTimer; -
trunk/Source/WebCore/rendering/RenderFullScreen.cpp
r81291 r83654 47 47 48 48 // Create a stacking context: 49 fullscreenStyle->setZIndex( 0);49 fullscreenStyle->setZIndex(INT_MAX); 50 50 51 51 fullscreenStyle->setFontDescription(FontDescription()); … … 55 55 fullscreenStyle->setBoxPack(BCENTER); 56 56 fullscreenStyle->setBoxAlign(BCENTER); 57 fullscreenStyle->setBoxOrient( HORIZONTAL);57 fullscreenStyle->setBoxOrient(VERTICAL); 58 58 59 59 fullscreenStyle->setPosition(FixedPosition);
Note: See TracChangeset
for help on using the changeset viewer.