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 14 matching lines...) Expand all Loading... |
25 #include "core/rendering/svg/SVGTextLayoutAttributes.h" | 25 #include "core/rendering/svg/SVGTextLayoutAttributes.h" |
26 #include "core/rendering/svg/SVGTextMetrics.h" | 26 #include "core/rendering/svg/SVGTextMetrics.h" |
27 #include "platform/graphics/Path.h" | 27 #include "platform/graphics/Path.h" |
28 #include "wtf/Vector.h" | 28 #include "wtf/Vector.h" |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 class RenderObject; | 32 class RenderObject; |
33 class RenderStyle; | 33 class RenderStyle; |
34 class RenderSVGInlineText; | 34 class RenderSVGInlineText; |
35 class SVGElement; | |
36 class SVGInlineTextBox; | 35 class SVGInlineTextBox; |
37 class SVGRenderStyle; | |
38 | 36 |
39 // SVGTextLayoutEngine performs the second layout phase for SVG text. | 37 // SVGTextLayoutEngine performs the second layout phase for SVG text. |
40 // | 38 // |
41 // The InlineBox tree was created, containing the text chunk information, necess
ary to apply | 39 // The InlineBox tree was created, containing the text chunk information, necess
ary to apply |
42 // certain SVG specific text layout properties (text-length adjustments and text
-anchor). | 40 // certain SVG specific text layout properties (text-length adjustments and text
-anchor). |
43 // The second layout phase uses the SVGTextLayoutAttributes stored in the indivi
dual | 41 // The second layout phase uses the SVGTextLayoutAttributes stored in the indivi
dual |
44 // RenderSVGInlineText renderers to compute the final positions for each charact
er | 42 // RenderSVGInlineText renderers to compute the final positions for each charact
er |
45 // which are stored in the SVGInlineTextBox objects. | 43 // which are stored in the SVGInlineTextBox objects. |
46 | 44 |
47 class SVGTextLayoutEngine { | 45 class SVGTextLayoutEngine { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 float m_textPathLength; | 98 float m_textPathLength; |
101 float m_textPathStartOffset; | 99 float m_textPathStartOffset; |
102 float m_textPathCurrentOffset; | 100 float m_textPathCurrentOffset; |
103 float m_textPathSpacing; | 101 float m_textPathSpacing; |
104 float m_textPathScaling; | 102 float m_textPathScaling; |
105 }; | 103 }; |
106 | 104 |
107 } // namespace WebCore | 105 } // namespace WebCore |
108 | 106 |
109 #endif | 107 #endif |
OLD | NEW |