| 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 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class LineLayoutSVGInlineText : public LineLayoutText { | 13 class LineLayoutSVGInlineText : public LineLayoutText { |
| 14 public: | 14 public: |
| 15 explicit LineLayoutSVGInlineText(LayoutSVGInlineText* layoutSVGInlineText) | 15 explicit LineLayoutSVGInlineText(LayoutSVGInlineText* layoutSVGInlineText) |
| 16 : LineLayoutText(layoutSVGInlineText) {} | 16 : LineLayoutText(layoutSVGInlineText) {} |
| 17 | 17 |
| 18 explicit LineLayoutSVGInlineText(const LineLayoutItem& item) | 18 explicit LineLayoutSVGInlineText(const LineLayoutItem& item) |
| 19 : LineLayoutText(item) { | 19 : LineLayoutText(item) { |
| 20 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isSVGInlineText()); | 20 SECURITY_DCHECK(!item || item.isSVGInlineText()); |
| 21 } | 21 } |
| 22 | 22 |
| 23 explicit LineLayoutSVGInlineText(std::nullptr_t) : LineLayoutText(nullptr) {} | 23 explicit LineLayoutSVGInlineText(std::nullptr_t) : LineLayoutText(nullptr) {} |
| 24 | 24 |
| 25 LineLayoutSVGInlineText() {} | 25 LineLayoutSVGInlineText() {} |
| 26 | 26 |
| 27 const Vector<SVGTextMetrics>& metricsList() const { | 27 const Vector<SVGTextMetrics>& metricsList() const { |
| 28 return toSVGInlineText()->metricsList(); | 28 return toSVGInlineText()->metricsList(); |
| 29 } | 29 } |
| 30 | 30 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 } | 107 } |
| 108 | 108 |
| 109 LineLayoutSVGInlineText m_textLineLayout; | 109 LineLayoutSVGInlineText m_textLineLayout; |
| 110 unsigned m_metricsListOffset; | 110 unsigned m_metricsListOffset; |
| 111 unsigned m_characterOffset; | 111 unsigned m_characterOffset; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace blink | 114 } // namespace blink |
| 115 | 115 |
| 116 #endif // LineLayoutSVGInlineText_h | 116 #endif // LineLayoutSVGInlineText_h |
| OLD | NEW |