Exemplo n.º 1
0
void GraphicsLayerChromium::setTransform(const TransformationMatrix& transform)
{
    // Call this method first to assign contents scale to LayerChromium so the painter can apply the scale transform.
    updateContentsScale();

    GraphicsLayer::setTransform(transform);
    updateTransform();
}
Exemplo n.º 2
0
void GraphicsLayerChromium::deviceOrPageScaleFactorChanged()
{
    updateContentsScale();
    // Invalidations are clamped to the layer's bounds but we receive the scale changed notification before receiving
    // the new layer bounds. When the scale changes, we really want to invalidate the post-scale layer bounds, so we
    // remember that the scale has changed and then invalidate the full layer bounds when we receive the new size.
    m_pageScaleChanged = true;
}
Exemplo n.º 3
0
void GraphicsLayerChromium::deviceOrPageScaleFactorChanged()
{
    updateContentsScale();
    if (m_layer)
        m_layer->pageScaleChanged();
}