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 12 matching lines...) Expand all Loading... |
23 #include "platform/text/TextDirection.h" | 23 #include "platform/text/TextDirection.h" |
24 #include "wtf/Allocator.h" | 24 #include "wtf/Allocator.h" |
25 | 25 |
26 namespace blink { | 26 namespace blink { |
27 | 27 |
28 enum class FontOrientation; | 28 enum class FontOrientation; |
29 class LineLayoutSVGInlineText; | 29 class LineLayoutSVGInlineText; |
30 class TextRun; | 30 class TextRun; |
31 | 31 |
32 class SVGTextMetrics { | 32 class SVGTextMetrics { |
33 ALLOW_ONLY_INLINE_ALLOCATION(); | 33 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
34 public: | 34 public: |
35 enum MetricsType { | 35 enum MetricsType { |
36 SkippedSpaceMetrics | 36 SkippedSpaceMetrics |
37 }; | 37 }; |
38 | 38 |
39 SVGTextMetrics(); | 39 SVGTextMetrics(); |
40 SVGTextMetrics(MetricsType); | 40 SVGTextMetrics(MetricsType); |
41 SVGTextMetrics(LineLayoutSVGInlineText, unsigned length, float width); | 41 SVGTextMetrics(LineLayoutSVGInlineText, unsigned length, float width); |
42 | 42 |
43 static SVGTextMetrics measureCharacterRange(LineLayoutSVGInlineText, unsigne
d position, unsigned length, TextDirection); | 43 static SVGTextMetrics measureCharacterRange(LineLayoutSVGInlineText, unsigne
d position, unsigned length, TextDirection); |
(...skipping 14 matching lines...) Expand all Loading... |
58 SVGTextMetrics(LineLayoutSVGInlineText, const TextRun&); | 58 SVGTextMetrics(LineLayoutSVGInlineText, const TextRun&); |
59 | 59 |
60 float m_width; | 60 float m_width; |
61 float m_height; | 61 float m_height; |
62 unsigned m_length; | 62 unsigned m_length; |
63 }; | 63 }; |
64 | 64 |
65 } // namespace blink | 65 } // namespace blink |
66 | 66 |
67 #endif | 67 #endif |
OLD | NEW |