Attempt to fix the Windows build after http://trac.webkit.org/changeset/157547.
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Oct 2013 01:53:39 +0000 (01:53 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Oct 2013 01:53:39 +0000 (01:53 +0000)
Apparently some Windows code uses setFrame and I missed it.

* platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
(WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
(WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157548 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp

index c83069f..c89b9e3 100644 (file)
@@ -1,5 +1,15 @@
 2013-10-16  Tim Horton  <timothy_horton@apple.com>
 
+        Attempt to fix the Windows build after http://trac.webkit.org/changeset/157547.
+
+        Apparently some Windows code uses setFrame and I missed it.
+
+        * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
+        (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
+        (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
+
+2013-10-16  Tim Horton  <timothy_horton@apple.com>
+
         Remote Layer Tree: Complete support for simple layer properties
         https://bugs.webkit.org/show_bug.cgi?id=122933
 
index 77a6367..2d2e668 100644 (file)
@@ -119,7 +119,8 @@ void MediaPlayerPrivateFullscreenWindow::setRootChildLayer(PassRefPtr<PlatformCA
     m_layerTreeHost->setRootChildLayer(m_rootChild.get());
     PlatformCALayer* rootLayer = m_rootChild->rootLayer();
     CGRect rootBounds = m_rootChild->rootLayer()->bounds();
-    m_rootChild->setFrame(rootBounds);
+    m_rootChild->setPosition(rootBounds.origin);
+    m_rootChild->setBounds(FloatRect(FloatPoint(), rootBounds.size));
     m_rootChild->setBackgroundColor(CGColorGetConstantColor(kCGColorBlack));
 #ifndef NDEBUG
     RetainPtr<CGColorRef> redColor = adoptCF(CGColorCreateGenericRGB(1, 0, 0, 1));
@@ -170,7 +171,8 @@ LRESULT MediaPlayerPrivateFullscreenWindow::wndProc(HWND hWnd, UINT message, WPA
                 m_layerTreeHost->resize();
                 PlatformCALayer* rootLayer = m_rootChild->rootLayer();
                 CGRect rootBounds = m_rootChild->rootLayer()->bounds();
-                m_rootChild->setFrame(rootBounds);
+                m_rootChild->setPosition(rootBounds.origin);
+                m_rootChild->setBounds(FloatRect(FloatPoint(), rootBounds.size));
                 m_rootChild->setNeedsLayout();
             }
 #endif