Changeset 85767 in webkit


Ignore:
Timestamp:
May 4, 2011 11:39:26 AM (13 years ago)
Author:
jer.noble@apple.com
Message:

2011-05-04 Jer Noble <jer.noble@apple.com>

Reviewed by Darin Adler.

Entering full screen fails >= second time on Vimeo.com.
https://bugs.webkit.org/show_bug.cgi?id=60143

Force the RenderFullScreen's layer backing to be recreated when setAnimating() is called.
Previously, the RenderLayerCompositor would fail to reparent the RenderFullScreen's layer
at the end of an animation, if it determined that the RenderFullScreen would still require
a layer even when not animating.

  • rendering/RenderFullScreen.cpp: (RenderFullScreen::setAnimating): Clear the renderer's layer.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r85760 r85767  
     12011-05-04  Jer Noble  <jer.noble@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Entering full screen fails >= second time on Vimeo.com.
     6        https://bugs.webkit.org/show_bug.cgi?id=60143
     7
     8        Force the RenderFullScreen's layer backing to be recreated when setAnimating() is called.
     9        Previously, the RenderLayerCompositor would fail to reparent the RenderFullScreen's layer
     10        at the end of an animation, if it determined that the RenderFullScreen would still require
     11        a layer even when not animating.
     12
     13        * rendering/RenderFullScreen.cpp:
     14        (RenderFullScreen::setAnimating): Clear the renderer's layer.
     15
    1162011-05-04  Simon Fraser  <simon.fraser@apple.com>
    217
  • trunk/Source/WebCore/rendering/RenderFullScreen.cpp

    r83654 r85767  
    3131#include "RenderLayer.h"
    3232
     33#if USE(ACCELERATED_COMPOSITING)
     34#include "RenderLayerCompositor.h"
     35#endif
     36
    3337using namespace WebCore;
    3438
     
    3741    m_isAnimating = animating;
    3842#if USE(ACCELERATED_COMPOSITING)
    39     if (layer())
     43    if (layer()) {
    4044        layer()->contentChanged(RenderLayer::FullScreenChanged);
     45        // Clearing the layer's backing will force the compositor to reparent
     46        // the layer the next time layers are synchronized.
     47        layer()->clearBacking();
     48    }
    4149#endif
    4250}
Note: See TracChangeset for help on using the changeset viewer.