Consider merging https://chromium.googlesource.com/chromium/blink/+/3dfbb71ed8eefeca1618b85c72b912c051314836 In collectLayers, if a layer is normal flow only, we will not add it to the z-order lists. The trouble is that RenderLayer::shouldBeNormalFlowOnly depends on RenderLayer::needsCompositedScrolling. This means that the result of collectLayers depends on the opt-in decision of other layers, something which must not happen: when we are determining opt-in, we must never depend on the opt-in decision for another layer. This CL makes this function opt-in agnostic when it needs to be.