Example #1
0
void ContinuousPainter::setNeedsDisplayRecursive(GraphicsLayer* layer)
{
    if (!layer)
        return;

    TRACE_EVENT0("blink", "ContinuousPainter::setNeedsDisplayRecursive");
    layer->setNeedsDisplay();

    setNeedsDisplayRecursive(layer->maskLayer());
    setNeedsDisplayRecursive(layer->contentsClippingMaskLayer());

    const Vector<GraphicsLayer*>& children = layer->children();
    Vector<GraphicsLayer*>::const_iterator it;
    for (it = children.begin(); it != children.end(); ++it)
        setNeedsDisplayRecursive(*it);
}
Example #2
0
void ContinuousPainter::setNeedsDisplayRecursive(GraphicsLayer* layer, PageOverlayList* pageOverlays)
{
    if (!layer)
        return;

    if (pageOverlays && pageOverlays->findGraphicsLayer(layer) != WTF::kNotFound)
        return;

    TRACE_EVENT0("webkit", "ContinuousPainter::setNeedsDisplayRecursive");
    layer->setNeedsDisplay();

    setNeedsDisplayRecursive(layer->maskLayer(), pageOverlays);
    setNeedsDisplayRecursive(layer->replicaLayer(), pageOverlays);

    const Vector<GraphicsLayer*>& children = layer->children();
    Vector<GraphicsLayer*>::const_iterator it;
    for (it = children.begin(); it != children.end(); ++it)
        setNeedsDisplayRecursive(*it, pageOverlays);
}