From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/rendering/svg/SVGTextLayoutEngine.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'Source/WebCore/rendering/svg/SVGTextLayoutEngine.h') 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& 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&); + void recordTextFragment(SVGInlineTextBox&, Vector&); bool parentDefinesTextLength(RenderObject*) const; - void layoutTextOnLineOrPath(SVGInlineTextBox*, RenderSVGInlineText*, const RenderStyle*); + void layoutTextOnLineOrPath(SVGInlineTextBox&, RenderSVGInlineText&, const RenderStyle&); void finalizeTransformMatrices(Vector&); bool currentLogicalCharacterAttributes(SVGTextLayoutAttributes*&); bool currentLogicalCharacterMetrics(SVGTextLayoutAttributes*&, SVGTextMetrics&); - bool currentVisualCharacterMetrics(SVGInlineTextBox*, Vector&, SVGTextMetrics&); + bool currentVisualCharacterMetrics(const SVGInlineTextBox&, Vector&, SVGTextMetrics&); void advanceToNextLogicalCharacter(const SVGTextMetrics&); void advanceToNextVisualCharacter(const SVGTextMetrics&); @@ -105,6 +104,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif -- cgit v1.2.1