|
Lines 87-93
public:
a/Source/WebCore/platform/graphics/GlyphBuffer.h_sec1
|
| 87 |
m_advances.clear(); |
87 |
m_advances.clear(); |
| 88 |
if (m_offsetsInString) |
88 |
if (m_offsetsInString) |
| 89 |
m_offsetsInString->clear(); |
89 |
m_offsetsInString->clear(); |
| 90 |
#if PLATFORM(WIN) |
90 |
#if PLATFORM(WIN) || USE(CAIRO) |
| 91 |
m_offsets.clear(); |
91 |
m_offsets.clear(); |
| 92 |
#endif |
92 |
#endif |
| 93 |
} |
93 |
} |
|
Lines 121-127
public:
a/Source/WebCore/platform/graphics/GlyphBuffer.h_sec2
|
| 121 |
|
121 |
|
| 122 |
FloatSize offsetAt(unsigned index) const |
122 |
FloatSize offsetAt(unsigned index) const |
| 123 |
{ |
123 |
{ |
| 124 |
#if PLATFORM(WIN) |
124 |
#if PLATFORM(WIN) || USE(CAIRO) |
| 125 |
return m_offsets[index]; |
125 |
return m_offsets[index]; |
| 126 |
#else |
126 |
#else |
| 127 |
UNUSED_PARAM(index); |
127 |
UNUSED_PARAM(index); |
|
Lines 149-155
public:
a/Source/WebCore/platform/graphics/GlyphBuffer.h_sec3
|
| 149 |
m_advances.append(FloatSize(width, 0)); |
149 |
m_advances.append(FloatSize(width, 0)); |
| 150 |
#endif |
150 |
#endif |
| 151 |
|
151 |
|
| 152 |
#if PLATFORM(WIN) |
152 |
#if PLATFORM(WIN) || USE(CAIRO) |
| 153 |
if (offset) |
153 |
if (offset) |
| 154 |
m_offsets.append(*offset); |
154 |
m_offsets.append(*offset); |
| 155 |
else |
155 |
else |
|
Lines 163-169
public:
a/Source/WebCore/platform/graphics/GlyphBuffer.h_sec4
|
| 163 |
} |
163 |
} |
| 164 |
|
164 |
|
| 165 |
#if !USE(WINGDI) |
165 |
#if !USE(WINGDI) |
| 166 |
void add(Glyph glyph, const Font* font, GlyphBufferAdvance advance, unsigned offsetInString = noOffset) |
166 |
void add(Glyph glyph, const Font* font, GlyphBufferAdvance advance, unsigned offsetInString = noOffset, const FloatSize* offset = 0) |
| 167 |
{ |
167 |
{ |
| 168 |
m_font.append(font); |
168 |
m_font.append(font); |
| 169 |
#if USE(CAIRO) |
169 |
#if USE(CAIRO) |
|
Lines 176-181
public:
a/Source/WebCore/platform/graphics/GlyphBuffer.h_sec5
|
| 176 |
|
176 |
|
| 177 |
m_advances.append(advance); |
177 |
m_advances.append(advance); |
| 178 |
|
178 |
|
|
|
179 |
#if PLATFORM(WIN) || USE(CAIRO) |
| 180 |
if (offset) |
| 181 |
m_offsets.append(*offset); |
| 182 |
else |
| 183 |
m_offsets.append(FloatSize()); |
| 184 |
#else |
| 185 |
UNUSED_PARAM(offset); |
| 186 |
#endif |
| 187 |
|
| 179 |
if (offsetInString != noOffset && m_offsetsInString) |
188 |
if (offsetInString != noOffset && m_offsetsInString) |
| 180 |
m_offsetsInString->append(offsetInString); |
189 |
m_offsetsInString->append(offsetInString); |
| 181 |
} |
190 |
} |
|
Lines 212-218
public:
a/Source/WebCore/platform/graphics/GlyphBuffer.h_sec6
|
| 212 |
m_advances.shrink(truncationPoint); |
221 |
m_advances.shrink(truncationPoint); |
| 213 |
if (m_offsetsInString) |
222 |
if (m_offsetsInString) |
| 214 |
m_offsetsInString->shrink(truncationPoint); |
223 |
m_offsetsInString->shrink(truncationPoint); |
| 215 |
#if PLATFORM(WIN) |
224 |
#if PLATFORM(WIN) || USE(CAIRO) |
| 216 |
m_offsets.shrink(truncationPoint); |
225 |
m_offsets.shrink(truncationPoint); |
| 217 |
#endif |
226 |
#endif |
| 218 |
} |
227 |
} |
|
Lines 232-238
private:
a/Source/WebCore/platform/graphics/GlyphBuffer.h_sec7
|
| 232 |
m_advances[index1] = m_advances[index2]; |
241 |
m_advances[index1] = m_advances[index2]; |
| 233 |
m_advances[index2] = s; |
242 |
m_advances[index2] = s; |
| 234 |
|
243 |
|
| 235 |
#if PLATFORM(WIN) |
244 |
#if PLATFORM(WIN) || USE(CAIRO) |
| 236 |
FloatSize offset = m_offsets[index1]; |
245 |
FloatSize offset = m_offsets[index1]; |
| 237 |
m_offsets[index1] = m_offsets[index2]; |
246 |
m_offsets[index1] = m_offsets[index2]; |
| 238 |
m_offsets[index2] = offset; |
247 |
m_offsets[index2] = offset; |
|
Lines 244-250
private:
a/Source/WebCore/platform/graphics/GlyphBuffer.h_sec8
|
| 244 |
Vector<GlyphBufferAdvance, 2048> m_advances; |
253 |
Vector<GlyphBufferAdvance, 2048> m_advances; |
| 245 |
GlyphBufferAdvance m_initialAdvance; |
254 |
GlyphBufferAdvance m_initialAdvance; |
| 246 |
std::unique_ptr<Vector<unsigned, 2048>> m_offsetsInString; |
255 |
std::unique_ptr<Vector<unsigned, 2048>> m_offsetsInString; |
| 247 |
#if PLATFORM(WIN) |
256 |
#if PLATFORM(WIN) || USE(CAIRO) |
| 248 |
Vector<FloatSize, 2048> m_offsets; |
257 |
Vector<FloatSize, 2048> m_offsets; |
| 249 |
#endif |
258 |
#endif |
| 250 |
float m_leadingExpansion; |
259 |
float m_leadingExpansion; |