OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef LineLayoutSVGInlineText_h | 5 #ifndef LineLayoutSVGInlineText_h |
6 #define LineLayoutSVGInlineText_h | 6 #define LineLayoutSVGInlineText_h |
7 | 7 |
8 #include "core/layout/api/LineLayoutText.h" | 8 #include "core/layout/api/LineLayoutText.h" |
9 #include "core/layout/svg/LayoutSVGInlineText.h" | 9 #include "core/layout/svg/LayoutSVGInlineText.h" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 explicit LineLayoutSVGInlineText(std::nullptr_t) : LineLayoutText(nullptr) {
} | 26 explicit LineLayoutSVGInlineText(std::nullptr_t) : LineLayoutText(nullptr) {
} |
27 | 27 |
28 LineLayoutSVGInlineText() { } | 28 LineLayoutSVGInlineText() { } |
29 | 29 |
30 const Vector<SVGTextMetrics>& metricsList() const | 30 const Vector<SVGTextMetrics>& metricsList() const |
31 { | 31 { |
32 return toSVGInlineText()->metricsList(); | 32 return toSVGInlineText()->metricsList(); |
33 } | 33 } |
34 | 34 |
| 35 SVGTextLayoutAttributes& layoutAttributes() |
| 36 { |
| 37 return *toSVGInlineText()->layoutAttributes(); |
| 38 } |
| 39 |
35 bool characterStartsNewTextChunk(int position) const | 40 bool characterStartsNewTextChunk(int position) const |
36 { | 41 { |
37 return toSVGInlineText()->characterStartsNewTextChunk(position); | 42 return toSVGInlineText()->characterStartsNewTextChunk(position); |
38 } | 43 } |
39 | 44 |
40 float scalingFactor() const | 45 float scalingFactor() const |
41 { | 46 { |
42 return toSVGInlineText()->scalingFactor(); | 47 return toSVGInlineText()->scalingFactor(); |
43 } | 48 } |
44 | 49 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 116 } |
112 | 117 |
113 LineLayoutSVGInlineText m_textLineLayout; | 118 LineLayoutSVGInlineText m_textLineLayout; |
114 unsigned m_metricsListOffset; | 119 unsigned m_metricsListOffset; |
115 unsigned m_characterOffset; | 120 unsigned m_characterOffset; |
116 }; | 121 }; |
117 | 122 |
118 } // namespace blink | 123 } // namespace blink |
119 | 124 |
120 #endif // LineLayoutSVGInlineText_h | 125 #endif // LineLayoutSVGInlineText_h |
OLD | NEW |