src/blinkit/blink/renderer/core/layout/compositing/CompositedLayerMapping.cpp
bool CompositedLayerMapping::toggleScrollbarLayerIfNeeded(std::unique_ptr<GraphicsLayer>& layer, bool needsLayer, CompositingReasons reason)
{
    if (needsLayer == !!layer)
        return false;
    layer = needsLayer ? createGraphicsLayer(reason) : nullptr;
    return true;
}
// Only a member function so it can call createGraphicsLayer.
Only a member function so it can call createGraphicsLayer.
Only a member function so it can call createGraphicsLayer .
bool CompositedLayerMapping::toggleScrollbarLayerIfNeeded(std::unique_ptr<GraphicsLayer>& layer, bool needsLayer, CompositingReasons reason)
{
    if (needsLayer == !!layer)
        return false;
    layer = needsLayer ? createGraphicsLayer(reason) : nullptr;
    return true;
}
bool CompositedLayerMapping :: toggleScrollbarLayerIfNeeded ( std :: unique_ptr < GraphicsLayer > & layer , bool needsLayer , CompositingReasons reason ) { if ( needsLayer == ! ! layer ) return false ; layer = needsLayer ? createGraphicsLayer ( reason ) : nullptr ; return true ; }
Only a member function so it can call createGraphicsLayer.
Only a member function so it can call createGraphicsLayer .