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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 bool currentLogicalCharacterMetrics(SVGTextLayoutAttributes*&, SVGTextMetric
s&); | 68 bool currentLogicalCharacterMetrics(SVGTextLayoutAttributes*&, SVGTextMetric
s&); |
69 bool currentVisualCharacterMetrics(SVGInlineTextBox*, const Vector<SVGTextMe
trics>&, SVGTextMetrics&); | 69 bool currentVisualCharacterMetrics(SVGInlineTextBox*, const Vector<SVGTextMe
trics>&, SVGTextMetrics&); |
70 | 70 |
71 void advanceToNextLogicalCharacter(const SVGTextMetrics&); | 71 void advanceToNextLogicalCharacter(const SVGTextMetrics&); |
72 void advanceToNextVisualCharacter(const SVGTextMetrics&); | 72 void advanceToNextVisualCharacter(const SVGTextMetrics&); |
73 | 73 |
74 private: | 74 private: |
75 Vector<SVGTextLayoutAttributes*>& m_layoutAttributes; | 75 Vector<SVGTextLayoutAttributes*>& m_layoutAttributes; |
76 | 76 |
77 Vector<SVGInlineTextBox*> m_lineLayoutBoxes; | 77 Vector<SVGInlineTextBox*> m_lineLayoutBoxes; |
78 Vector<SVGInlineTextBox*> m_pathLayoutBoxes; | |
79 | 78 |
80 SVGTextFragment m_currentTextFragment; | 79 SVGTextFragment m_currentTextFragment; |
81 unsigned m_layoutAttributesPosition; | 80 unsigned m_layoutAttributesPosition; |
82 unsigned m_logicalCharacterOffset; | 81 unsigned m_logicalCharacterOffset; |
83 unsigned m_logicalMetricsListOffset; | 82 unsigned m_logicalMetricsListOffset; |
84 unsigned m_visualCharacterOffset; | 83 unsigned m_visualCharacterOffset; |
85 unsigned m_visualMetricsListOffset; | 84 unsigned m_visualMetricsListOffset; |
86 float m_x; | 85 float m_x; |
87 float m_y; | 86 float m_y; |
88 float m_dx; | 87 float m_dx; |
89 float m_dy; | 88 float m_dy; |
90 bool m_isVerticalText; | 89 bool m_isVerticalText; |
91 bool m_inPathLayout; | 90 bool m_inPathLayout; |
92 | 91 |
93 // Text on path layout | 92 // Text on path layout |
94 Path::PositionCalculator* m_textPathCalculator; | 93 Path::PositionCalculator* m_textPathCalculator; |
95 float m_textPathLength; | 94 float m_textPathLength; |
96 float m_textPathStartOffset; | 95 float m_textPathStartOffset; |
97 float m_textPathCurrentOffset; | 96 float m_textPathCurrentOffset; |
98 float m_textPathSpacing; | 97 float m_textPathSpacing; |
99 float m_textPathScaling; | 98 float m_textPathScaling; |
100 }; | 99 }; |
101 | 100 |
102 } // namespace blink | 101 } // namespace blink |
103 | 102 |
104 #endif | 103 #endif |
OLD | NEW |