OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2013 Apple Inc. All rights reserved. |
3 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "platform/PlatformExport.h" | 33 #include "platform/PlatformExport.h" |
34 #include "platform/fonts/CustomFontData.h" | 34 #include "platform/fonts/CustomFontData.h" |
35 #include "platform/fonts/Glyph.h" | 35 #include "platform/fonts/Glyph.h" |
36 #include <string.h> | 36 #include <string.h> |
37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 #include "wtf/unicode/Unicode.h" | 40 #include "wtf/unicode/Unicode.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 | 43 |
44 class SimpleFontData; | 44 class SimpleFontData; |
45 class GlyphPageTreeNode; | 45 class GlyphPageTreeNode; |
46 | 46 |
47 // Holds the glyph index and the corresponding SimpleFontData information for a
given | 47 // Holds the glyph index and the corresponding SimpleFontData information for a
given |
48 // character. | 48 // character. |
49 struct GlyphData { | 49 struct GlyphData { |
50 GlyphData(Glyph g = 0, const SimpleFontData* f = 0) | 50 GlyphData(Glyph g = 0, const SimpleFontData* f = 0) |
51 : glyph(g) | 51 : glyph(g) |
52 , fontData(f) | 52 , fontData(f) |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 Glyph m_glyphs[size]; | 215 Glyph m_glyphs[size]; |
216 | 216 |
217 // NOTE: This array has (GlyphPage::size) elements if m_fontDataForAllGlyphs
is null. | 217 // NOTE: This array has (GlyphPage::size) elements if m_fontDataForAllGlyphs
is null. |
218 const SimpleFontData* m_perGlyphFontData[0]; | 218 const SimpleFontData* m_perGlyphFontData[0]; |
219 }; | 219 }; |
220 | 220 |
221 #if COMPILER(MSVC) | 221 #if COMPILER(MSVC) |
222 #pragma warning(pop) | 222 #pragma warning(pop) |
223 #endif | 223 #endif |
224 | 224 |
225 } // namespace WebCore | 225 } // namespace blink |
226 | 226 |
227 #endif // GlyphPage_h | 227 #endif // GlyphPage_h |
OLD | NEW |