OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void endTextPathLayout(); | 53 void endTextPathLayout(); |
54 | 54 |
55 void layoutInlineTextBox(SVGInlineTextBox*); | 55 void layoutInlineTextBox(SVGInlineTextBox*); |
56 void finishLayout(); | 56 void finishLayout(); |
57 | 57 |
58 private: | 58 private: |
59 void updateCharacterPositionIfNeeded(float& x, float& y); | 59 void updateCharacterPositionIfNeeded(float& x, float& y); |
60 void updateCurrentTextPosition(float x, float y, float glyphAdvance); | 60 void updateCurrentTextPosition(float x, float y, float glyphAdvance); |
61 void updateRelativePositionAdjustmentsIfNeeded(float dx, float dy); | 61 void updateRelativePositionAdjustmentsIfNeeded(float dx, float dy); |
62 | 62 |
63 void recordTextFragment(SVGInlineTextBox*, Vector<SVGTextMetrics>&); | 63 void recordTextFragment(SVGInlineTextBox*, const Vector<SVGTextMetrics>&); |
64 bool parentDefinesTextLength(RenderObject*) const; | 64 bool parentDefinesTextLength(RenderObject*) const; |
65 | 65 |
66 void layoutTextOnLineOrPath(SVGInlineTextBox*, RenderSVGInlineText*, const R
enderStyle*); | 66 void layoutTextOnLineOrPath(SVGInlineTextBox*, RenderSVGInlineText*, const R
enderStyle*); |
67 void finalizeTransformMatrices(Vector<SVGInlineTextBox*>&); | 67 void finalizeTransformMatrices(Vector<SVGInlineTextBox*>&); |
68 | 68 |
69 bool currentLogicalCharacterAttributes(SVGTextLayoutAttributes*&); | 69 bool currentLogicalCharacterAttributes(SVGTextLayoutAttributes*&); |
70 bool currentLogicalCharacterMetrics(SVGTextLayoutAttributes*&, SVGTextMetric
s&); | 70 bool currentLogicalCharacterMetrics(SVGTextLayoutAttributes*&, SVGTextMetric
s&); |
71 bool currentVisualCharacterMetrics(SVGInlineTextBox*, Vector<SVGTextMetrics>
&, SVGTextMetrics&); | 71 bool currentVisualCharacterMetrics(SVGInlineTextBox*, const Vector<SVGTextMe
trics>&, SVGTextMetrics&); |
72 | 72 |
73 void advanceToNextLogicalCharacter(const SVGTextMetrics&); | 73 void advanceToNextLogicalCharacter(const SVGTextMetrics&); |
74 void advanceToNextVisualCharacter(const SVGTextMetrics&); | 74 void advanceToNextVisualCharacter(const SVGTextMetrics&); |
75 | 75 |
76 private: | 76 private: |
77 Vector<SVGTextLayoutAttributes*>& m_layoutAttributes; | 77 Vector<SVGTextLayoutAttributes*>& m_layoutAttributes; |
78 | 78 |
79 Vector<SVGInlineTextBox*> m_lineLayoutBoxes; | 79 Vector<SVGInlineTextBox*> m_lineLayoutBoxes; |
80 Vector<SVGInlineTextBox*> m_pathLayoutBoxes; | 80 Vector<SVGInlineTextBox*> m_pathLayoutBoxes; |
81 SVGTextChunkBuilder m_chunkLayoutBuilder; | 81 SVGTextChunkBuilder m_chunkLayoutBuilder; |
(...skipping 16 matching lines...) Expand all Loading... |
98 float m_textPathLength; | 98 float m_textPathLength; |
99 float m_textPathStartOffset; | 99 float m_textPathStartOffset; |
100 float m_textPathCurrentOffset; | 100 float m_textPathCurrentOffset; |
101 float m_textPathSpacing; | 101 float m_textPathSpacing; |
102 float m_textPathScaling; | 102 float m_textPathScaling; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace WebCore | 105 } // namespace WebCore |
106 | 106 |
107 #endif | 107 #endif |
OLD | NEW |