OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
4 * Copyright (C) 2008 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2008 Rob Buis <buis@kde.org> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec
t* paintInvalidationContainer, const PaintInvalidationState*) const final; | 63 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec
t* paintInvalidationContainer, const PaintInvalidationState*) const final; |
64 | 64 |
65 float m_scalingFactor; | 65 float m_scalingFactor; |
66 Font m_scaledFont; | 66 Font m_scaledFont; |
67 SVGTextLayoutAttributes m_layoutAttributes; | 67 SVGTextLayoutAttributes m_layoutAttributes; |
68 }; | 68 }; |
69 | 69 |
70 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInlineText, isSVGInlineText()); | 70 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInlineText, isSVGInlineText()); |
71 | 71 |
72 class SVGInlineTextMetricsIterator { | 72 class SVGInlineTextMetricsIterator { |
| 73 DISALLOW_ALLOCATION(); |
73 public: | 74 public: |
74 SVGInlineTextMetricsIterator() { reset(nullptr); } | 75 SVGInlineTextMetricsIterator() { reset(nullptr); } |
75 | 76 |
76 void advanceToTextStart(const LayoutSVGInlineText* textLayoutObject, unsigne
d startCharacterOffset) | 77 void advanceToTextStart(const LayoutSVGInlineText* textLayoutObject, unsigne
d startCharacterOffset) |
77 { | 78 { |
78 ASSERT(textLayoutObject); | 79 ASSERT(textLayoutObject); |
79 if (m_textLayoutObject != textLayoutObject) { | 80 if (m_textLayoutObject != textLayoutObject) { |
80 reset(textLayoutObject); | 81 reset(textLayoutObject); |
81 ASSERT(!metricsList().isEmpty()); | 82 ASSERT(!metricsList().isEmpty()); |
82 } | 83 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 } | 118 } |
118 | 119 |
119 const LayoutSVGInlineText* m_textLayoutObject; | 120 const LayoutSVGInlineText* m_textLayoutObject; |
120 unsigned m_metricsListOffset; | 121 unsigned m_metricsListOffset; |
121 unsigned m_characterOffset; | 122 unsigned m_characterOffset; |
122 }; | 123 }; |
123 | 124 |
124 } | 125 } |
125 | 126 |
126 #endif // LayoutSVGInlineText_h | 127 #endif // LayoutSVGInlineText_h |
OLD | NEW |