Logo Search packages:      
Sourcecode: xulrunner version File versions

void nsCanvasRenderingContext2D::ShadowFinalize ( gfxAlphaBoxBlur blur  )  [protected]

Completes a shadow drawing operation.

Parameters:
blur The gfxAlphaBoxBlur that was passed to ShadowInitialize.

Definition at line 1480 of file nsCanvasRenderingContext2D.cpp.

References ApplyStyle(), and gfxAlphaBoxBlur::Paint().

Referenced by DrawPath().

{
    ApplyStyle(STYLE_SHADOW);
    // canvas matrix was already applied, don't apply it twice, but do
    // apply the shadow offset
    gfxMatrix matrix = mThebes->CurrentMatrix();
    mThebes->IdentityMatrix();
    mThebes->Translate(CurrentState().shadowOffset);

    blur.Paint(mThebes);
    mThebes->SetMatrix(matrix);
}


Generated by  Doxygen 1.6.0   Back to index