Remove contexts from WKCACFContextFlusher before destroying them
[WebKit-https.git] / Source / WebCore / ChangeLog
index d71a309587a0fc8fed69aeca8f1feb119ff516d8..db5846d1a14b556670ad3fb758d584743da45d58 100644 (file)
@@ -1,3 +1,25 @@
+2011-01-17  Adam Roben  <aroben@apple.com>
+
+        Remove contexts from WKCACFContextFlusher before destroying them
+
+        We aren't really using WKCACFContextFlusher for anything useful at the
+        moment, but that will probably change in the near future.
+
+        I couldn't come up with a way to test this because it isn't possible to
+        resize a window in DumpRenderTree.
+
+        Fixes <http://webkit.org/b/52573> REGRESSION (r75262): Crash beneath
+        WKCACFContextFlusher::flushAllContexts when resizing window on page
+        that uses accelerated compositing
+
+        Reviewed by Simon Fraser.
+
+        * platform/graphics/win/WKCACFLayerRenderer.cpp:
+        (WebCore::WKCACFLayerRenderer::~WKCACFLayerRenderer): Remove our
+        context from WKCACFContextFlusher. (This code was erroneously removed
+        from WKCACFLayerRenderer::destroyRenderer in r75262. This is a more
+        sensible place for it.)
+
 2011-01-17  Adam Roben  <aroben@apple.com>
 
         Don't access the CACFLayerRef's sublayers directly from PlatformCALayer