• koz@chromium.org's avatar
    Don't detach elements from the render tree when entering fullscreen mode · 24394b45
    koz@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=66531
    
    Source/WebCore:
    
    This prevents plugin instances from being destroyed and reinstantiated
    when entering fullscreen mode.
    
    Reviewed by James Robinson.
    
    Test: plugins/fullscreen-plugins-dont-reload.html
    
    * dom/Document.cpp:
    (WebCore::Document::webkitWillEnterFullScreenForElement):
    (WebCore::Document::webkitDidExitFullScreenForElement):
    * dom/NodeRenderingContext.cpp:
    (WebCore::NodeRendererFactory::createRendererIfNeeded):
    * rendering/RenderFullScreen.cpp:
    (createFullScreenStyle):
    (RenderFullScreen::wrapRenderer):
    (RenderFullScreen::unwrapRenderer):
    * rendering/RenderFullScreen.h:
    
    LayoutTests:
    
    Test that the plugin is not reloaded when entering fullscreen.
    
    Reviewed by James Robinson.
    
    * plugins/fullscreen-plugins-dont-reload-expected.txt: Added.
    * plugins/fullscreen-plugins-dont-reload.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    24394b45
fullscreen-plugins-dont-reload-expected.txt 150 Bytes