diff options
Diffstat (limited to 'Source/WebCore/rendering/svg/SVGTextLayoutEngine.h')
-rw-r--r-- | Source/WebCore/rendering/svg/SVGTextLayoutEngine.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Source/WebCore/rendering/svg/SVGTextLayoutEngine.h b/Source/WebCore/rendering/svg/SVGTextLayoutEngine.h index c4a926400..3fcfdb4f0 100644 --- a/Source/WebCore/rendering/svg/SVGTextLayoutEngine.h +++ b/Source/WebCore/rendering/svg/SVGTextLayoutEngine.h @@ -17,10 +17,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGTextLayoutEngine_h -#define SVGTextLayoutEngine_h +#pragma once -#if ENABLE(SVG) #include "Path.h" #include "SVGTextChunkBuilder.h" #include "SVGTextFragment.h" @@ -31,6 +29,7 @@ namespace WebCore { class RenderObject; class RenderStyle; class RenderSVGInlineText; +class RenderSVGTextPath; class SVGElement; class SVGInlineTextBox; class SVGRenderStyle; @@ -51,10 +50,10 @@ public: Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttributes; } SVGTextChunkBuilder& chunkLayoutBuilder() { return m_chunkLayoutBuilder; } - void beginTextPathLayout(RenderObject*, SVGTextLayoutEngine& lineLayout); + void beginTextPathLayout(RenderSVGTextPath&, SVGTextLayoutEngine& lineLayout); void endTextPathLayout(); - void layoutInlineTextBox(SVGInlineTextBox*); + void layoutInlineTextBox(SVGInlineTextBox&); void finishLayout(); private: @@ -62,15 +61,15 @@ private: void updateCurrentTextPosition(float x, float y, float glyphAdvance); void updateRelativePositionAdjustmentsIfNeeded(float dx, float dy); - void recordTextFragment(SVGInlineTextBox*, Vector<SVGTextMetrics>&); + void recordTextFragment(SVGInlineTextBox&, Vector<SVGTextMetrics>&); bool parentDefinesTextLength(RenderObject*) const; - void layoutTextOnLineOrPath(SVGInlineTextBox*, RenderSVGInlineText*, const RenderStyle*); + void layoutTextOnLineOrPath(SVGInlineTextBox&, RenderSVGInlineText&, const RenderStyle&); void finalizeTransformMatrices(Vector<SVGInlineTextBox*>&); bool currentLogicalCharacterAttributes(SVGTextLayoutAttributes*&); bool currentLogicalCharacterMetrics(SVGTextLayoutAttributes*&, SVGTextMetrics&); - bool currentVisualCharacterMetrics(SVGInlineTextBox*, Vector<SVGTextMetrics>&, SVGTextMetrics&); + bool currentVisualCharacterMetrics(const SVGInlineTextBox&, Vector<SVGTextMetrics>&, SVGTextMetrics&); void advanceToNextLogicalCharacter(const SVGTextMetrics&); void advanceToNextVisualCharacter(const SVGTextMetrics&); @@ -105,6 +104,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif |