OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 float hangingBaseline() const { return m_hangingBaseline; } | 68 float hangingBaseline() const { return m_hangingBaseline; } |
69 void setHangingBaseline(float hangingBaseline) { m_hangingBaseline = hanging
Baseline; } | 69 void setHangingBaseline(float hangingBaseline) { m_hangingBaseline = hanging
Baseline; } |
70 | 70 |
71 float alphabeticBaseline() const { return m_alphabeticBaseline; } | 71 float alphabeticBaseline() const { return m_alphabeticBaseline; } |
72 void setAlphabeticBaseline(float alphabeticBaseline) { m_alphabeticBaseline
= alphabeticBaseline; } | 72 void setAlphabeticBaseline(float alphabeticBaseline) { m_alphabeticBaseline
= alphabeticBaseline; } |
73 | 73 |
74 float ideographicBaseline() const { return m_ideographicBaseline; } | 74 float ideographicBaseline() const { return m_ideographicBaseline; } |
75 void setIdeographicBaseline(float ideographicBaseline) { m_ideographicBaseli
ne = ideographicBaseline; } | 75 void setIdeographicBaseline(float ideographicBaseline) { m_ideographicBaseli
ne = ideographicBaseline; } |
76 | 76 |
77 void trace(Visitor*) { } | 77 DEFINE_INLINE_TRACE() { } |
78 | 78 |
79 private: | 79 private: |
80 TextMetrics() | 80 TextMetrics() |
81 : m_width(0) | 81 : m_width(0) |
82 , m_actualBoundingBoxLeft(0) | 82 , m_actualBoundingBoxLeft(0) |
83 , m_actualBoundingBoxRight(0) | 83 , m_actualBoundingBoxRight(0) |
84 , m_fontBoundingBoxAscent(0) | 84 , m_fontBoundingBoxAscent(0) |
85 , m_fontBoundingBoxDescent(0) | 85 , m_fontBoundingBoxDescent(0) |
86 , m_actualBoundingBoxAscent(0) | 86 , m_actualBoundingBoxAscent(0) |
87 , m_actualBoundingBoxDescent(0) | 87 , m_actualBoundingBoxDescent(0) |
(...skipping 16 matching lines...) Expand all Loading... |
104 float m_emHeightAscent; | 104 float m_emHeightAscent; |
105 float m_emHeightDescent; | 105 float m_emHeightDescent; |
106 float m_hangingBaseline; | 106 float m_hangingBaseline; |
107 float m_alphabeticBaseline; | 107 float m_alphabeticBaseline; |
108 float m_ideographicBaseline; | 108 float m_ideographicBaseline; |
109 }; | 109 }; |
110 | 110 |
111 } // namespace blink | 111 } // namespace blink |
112 | 112 |
113 #endif // TextMetrics_h | 113 #endif // TextMetrics_h |
OLD | NEW |