| 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() | 35 SVGCharacterDataMap& characterDataMap() |
| 36 { | 36 { |
| 37 return *toSVGInlineText()->layoutAttributes(); | 37 return toSVGInlineText()->characterDataMap(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool characterStartsNewTextChunk(int position) const | 40 bool characterStartsNewTextChunk(int position) const |
| 41 { | 41 { |
| 42 return toSVGInlineText()->characterStartsNewTextChunk(position); | 42 return toSVGInlineText()->characterStartsNewTextChunk(position); |
| 43 } | 43 } |
| 44 | 44 |
| 45 float scalingFactor() const | 45 float scalingFactor() const |
| 46 { | 46 { |
| 47 return toSVGInlineText()->scalingFactor(); | 47 return toSVGInlineText()->scalingFactor(); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 | 117 |
| 118 LineLayoutSVGInlineText m_textLineLayout; | 118 LineLayoutSVGInlineText m_textLineLayout; |
| 119 unsigned m_metricsListOffset; | 119 unsigned m_metricsListOffset; |
| 120 unsigned m_characterOffset; | 120 unsigned m_characterOffset; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif // LineLayoutSVGInlineText_h | 125 #endif // LineLayoutSVGInlineText_h |
| OLD | NEW |