Clarify RenderLayerCompositor::hasAnyAdditionalCompositedLayers() and related code.
Created attachment 355202 [details] Patch
Comment on attachment 355202 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=355202&action=review > Source/WebCore/rendering/RenderLayerCompositor.cpp:1257 > + if (&layer != m_renderView.layer()) { > + ASSERT(m_contentLayersCount > 0); > + --m_contentLayersCount; > + } Don't we prefer the early return style? if (&layer == m_renderView.layer()) return;
https://trac.webkit.org/changeset/238354/webkit and https://trac.webkit.org/changeset/238355/webkit
<rdar://problem/46152495>