diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2011-06-03 20:53:43 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2011-06-03 20:53:43 (GMT) |
commit | e62f24018fee11831cbf66e9608d0ab82917c8ee (patch) | |
tree | 0f511f62be65e2f9c9f2aa3bebaefa7a4835be63 /src/3rdparty/webkit/Source/WebKit2/WebProcess | |
parent | b1c3521316566b54184d097e9ee020350426850f (diff) | |
download | Qt-e62f24018fee11831cbf66e9608d0ab82917c8ee.zip Qt-e62f24018fee11831cbf66e9608d0ab82917c8ee.tar.gz Qt-e62f24018fee11831cbf66e9608d0ab82917c8ee.tar.bz2 |
Updated WebKit to 4e7dfbab30278b0427e699baaadbf3e5aab88203
Reviewed-by: Andreas Kling
Diffstat (limited to 'src/3rdparty/webkit/Source/WebKit2/WebProcess')
3 files changed, 17 insertions, 11 deletions
diff --git a/src/3rdparty/webkit/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.h b/src/3rdparty/webkit/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.h index e247eb5..805b129 100644 --- a/src/3rdparty/webkit/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.h +++ b/src/3rdparty/webkit/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.h @@ -31,6 +31,7 @@ #import "LayerTreeContext.h" #import "WebFullScreenManager.h" +#import <WebCore/GraphicsLayer.h> #import <WebCore/IntRect.h> #import <wtf/RetainPtr.h> @@ -53,7 +54,7 @@ private: virtual void beginExitFullScreenAnimation(float duration); OwnPtr<WebCore::GraphicsLayer> m_rootLayer; - WebCore::GraphicsLayer* m_fullScreenRootLayer; + RetainPtr<PlatformLayer> m_fullScreenRootLayer; LayerTreeContext m_layerTreeContext; RetainPtr<WKCARemoteLayerClientRef> m_remoteLayerClient; RetainPtr<id> m_enterFullScreenListener; diff --git a/src/3rdparty/webkit/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm b/src/3rdparty/webkit/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm index 62a0ffe..4ca225a 100644 --- a/src/3rdparty/webkit/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm +++ b/src/3rdparty/webkit/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm @@ -117,7 +117,6 @@ PassRefPtr<WebFullScreenManagerMac> WebFullScreenManagerMac::create(WebPage* pag WebFullScreenManagerMac::WebFullScreenManagerMac(WebPage* page) : WebFullScreenManager(page) - , m_fullScreenRootLayer(0) { m_enterFullScreenListener.adoptNS([[WebFullScreenManagerAnimationListener alloc] initWithManager:this began:&WebFullScreenManagerMac::beganEnterFullScreenAnimation finished:&WebFullScreenManagerMac::finishedEnterFullScreenAnimation]); m_exitFullScreenListener.adoptNS([[WebFullScreenManagerAnimationListener alloc] initWithManager:this began:&WebFullScreenManagerMac::beganExitFullScreenAnimation finished:&WebFullScreenManagerMac::finishedExitFullScreenAnimation]); @@ -132,19 +131,21 @@ WebFullScreenManagerMac::~WebFullScreenManagerMac() void WebFullScreenManagerMac::setRootFullScreenLayer(WebCore::GraphicsLayer* layer) { - if (m_fullScreenRootLayer == layer) + if (m_fullScreenRootLayer == (layer ? layer->platformLayer() : 0)) return; - m_fullScreenRootLayer = layer; - if (!m_fullScreenRootLayer) { + if (!layer) { m_page->send(Messages::WebFullScreenManagerProxy::ExitAcceleratedCompositingMode()); if (m_rootLayer) { m_rootLayer->removeAllChildren(); m_rootLayer = nullptr; } + + [[NSNotificationCenter defaultCenter] postNotificationName:@"WebKitLayerHostChanged" object:m_fullScreenRootLayer.get() userInfo:nil]; + m_fullScreenRootLayer = 0; return; } - + if (!m_rootLayer) { mach_port_t serverPort = WebProcess::shared().compositingRenderServerPort(); m_remoteLayerClient = WKCARemoteLayerClientMakeWithServerPort(serverPort); @@ -163,12 +164,14 @@ void WebFullScreenManagerMac::setRootFullScreenLayer(WebCore::GraphicsLayer* lay } m_rootLayer->removeAllChildren(); - - if (m_fullScreenRootLayer) - m_rootLayer->addChild(m_fullScreenRootLayer); + m_rootLayer->addChild(layer); m_rootLayer->syncCompositingStateForThisLayerOnly(); m_page->corePage()->mainFrame()->view()->syncCompositingStateIncludingSubframes(); + m_fullScreenRootLayer = layer->platformLayer(); + layer->syncCompositingState(); + + [[NSNotificationCenter defaultCenter] postNotificationName:@"WebKitLayerHostChanged" object:m_fullScreenRootLayer.get() userInfo:nil]; } void WebFullScreenManagerMac::beginEnterFullScreenAnimation(float duration) @@ -190,7 +193,7 @@ void WebFullScreenManagerMac::beginEnterFullScreenAnimation(float duration) // FIXME: Once we gain the ability to do native WebKit animations of generated // content, this can change to use them. Meanwhile, we'll have to animate the // CALayer directly: - CALayer* caLayer = m_fullScreenRootLayer->platformLayer(); + CALayer* caLayer = m_fullScreenRootLayer.get(); // Create a transformation matrix that will transform the renderer layer such that // the fullscreen element appears to move from its starting position and size to its @@ -245,7 +248,7 @@ void WebFullScreenManagerMac::beginExitFullScreenAnimation(float duration) // FIXME: Once we gain the ability to do native WebKit animations of generated // content, this can change to use them. Meanwhile, we'll have to animate the // CALayer directly: - CALayer* caLayer = m_fullScreenRootLayer->platformLayer(); + CALayer* caLayer = m_fullScreenRootLayer.get(); // Create a transformation matrix that will transform the renderer layer such that // the fullscreen element appears to move from its starting position and size to its diff --git a/src/3rdparty/webkit/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm b/src/3rdparty/webkit/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm index 06cf6c5..eed8fab 100644 --- a/src/3rdparty/webkit/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm +++ b/src/3rdparty/webkit/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm @@ -76,6 +76,7 @@ void InitWebCoreSystemInterface(void) INIT(QTMovieMaxTimeLoaded); INIT(QTMovieMaxTimeLoadedChangeNotification); INIT(QTMovieMaxTimeSeekable); + INIT(QTMovieResolvedURL); INIT(QTMovieSelectPreferredAlternates); INIT(QTMovieSetShowClosedCaptions); INIT(QTMovieViewSetDrawSynchronously); @@ -144,6 +145,7 @@ void InitWebCoreSystemInterface(void) INIT(DidBeginScrollGesture); INIT(DidEndScrollGesture); INIT(ScrollbarPainterUsesOverlayScrollers); + INIT(AVAssetResolvedURL); #else INIT(GetHyphenationLocationBeforeIndex); INIT(GetNSEventMomentumPhase); |