RenderPtr<RenderText> Text::createTextRenderer(const RenderStyle& style) { if (isSVGText(this) || isSVGShadowText(this)) return createRenderer<RenderSVGInlineText>(*this, data()); if (style.hasTextCombine()) return createRenderer<RenderCombineText>(*this, data()); return createRenderer<RenderText>(*this, data()); }
RenderText* Text::createTextRenderer(RenderStyle* style) { if (isSVGText(this) || isSVGShadowText(this)) return new RenderSVGInlineText(this, dataImpl()); if (style->hasTextCombine()) return new RenderCombineText(this, dataImpl()); return new RenderText(this, dataImpl()); }
RenderText* Text::createTextRenderer(RenderArena* arena, RenderStyle* style) { #if ENABLE(SVG) if (isSVGText(this) || isSVGShadowText(this)) return new (arena) RenderSVGInlineText(this, dataImpl()); #endif if (style->hasTextCombine()) return new (arena) RenderCombineText(this, dataImpl()); return new (arena) RenderText(this, dataImpl()); }