void SVGInlineTextBox::restoreGraphicsContextAfterTextPainting(GraphicsContext*& context, TextRun& textRun) { releasePaintingResource(context, /* path */0); #if ENABLE(SVG_FONTS) textRun.setActivePaintingResource(0); #endif }
bool SVGInlineTextBox::prepareGraphicsContextForTextPainting(GraphicsContext*& context, TextRun& textRun, RenderStyle* style) { bool acquiredResource = acquirePaintingResource(context, parent()->renderer(), style); #if ENABLE(SVG_FONTS) // SVG Fonts need access to the painting resource used to draw the current text chunk. if (acquiredResource) textRun.setActivePaintingResource(m_paintingResource); #endif return acquiredResource; }