Fix an error in 238354 - !=, not ==.
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Nov 2018 23:27:24 +0000 (23:27 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Nov 2018 23:27:24 +0000 (23:27 +0000)
Fixes test failures.

* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::layerBecameNonComposited):

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayerCompositor.cpp

index 76b486d..2574b82 100644 (file)
@@ -1,5 +1,14 @@
 2018-11-17  Simon Fraser  <simon.fraser@apple.com>
 
+        Fix an error in 238354 - !=, not ==.
+        
+        Fixes test failures.
+
+        * rendering/RenderLayerCompositor.cpp:
+        (WebCore::RenderLayerCompositor::layerBecameNonComposited):
+
+2018-11-17  Simon Fraser  <simon.fraser@apple.com>
+
         Clarify RenderLayerCompositor::hasAnyAdditionalCompositedLayers() and related code.
         https://bugs.webkit.org/show_bug.cgi?id=191810
 
index e0558d7..93d4f03 100644 (file)
@@ -1251,7 +1251,7 @@ void RenderLayerCompositor::layerBecameNonComposited(const RenderLayer& layer)
     // FIXME: "destroyed" is a misnomer.
     InspectorInstrumentation::renderLayerDestroyed(&page(), layer);
 
-    if (&layer == m_renderView.layer()) {
+    if (&layer != m_renderView.layer()) {
         ASSERT(m_contentLayersCount > 0);
         --m_contentLayersCount;
     }