void GraphicsLayerChromium::setName(const String& inName)
{
+ m_nameBase = inName;
String name = String::format("GraphicsLayerChromium(%p) GraphicsLayer(%p) ", m_layer.get(), this) + inName;
GraphicsLayer::setName(name);
+ updateNames();
+}
+
+void GraphicsLayerChromium::updateNames()
+{
+ if (m_layer)
+ m_layer->setName("Layer for " + m_nameBase);
+ if (m_transformLayer)
+ m_transformLayer->setName("TransformLayer for " + m_nameBase);
+ if (m_contentsLayer)
+ m_contentsLayer->setName("ContentsLayer for " + m_nameBase);
}
bool GraphicsLayerChromium::setChildren(const Vector<GraphicsLayer*>& children)
GraphicsLayer::setMaskLayer(maskLayer);
LayerChromium* maskLayerChromium = m_maskLayer ? m_maskLayer->platformLayer() : 0;
+ if (maskLayerChromium)
+ maskLayerChromium->setIsMask(true);
m_layer->setMaskLayer(maskLayerChromium);
}
}
updateOpacityOnLayer();
+ updateNames();
}
void GraphicsLayerChromium::updateLayerDrawsContent()
}
}
updateDebugIndicators();
+ updateNames();
}
// This function simply mimics the operation of GraphicsLayerCA