| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "wtf/OwnPtr.h" | 35 #include "wtf/OwnPtr.h" |
| 36 #include "wtf/PassRefPtr.h" | 36 #include "wtf/PassRefPtr.h" |
| 37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
| 38 #include "wtf/unicode/Unicode.h" | 38 #include "wtf/unicode/Unicode.h" |
| 39 | 39 |
| 40 #ifndef NDEBUG | 40 #ifndef NDEBUG |
| 41 void PLATFORM_EXPORT showGlyphPageTrees(); | 41 void PLATFORM_EXPORT showGlyphPageTrees(); |
| 42 void PLATFORM_EXPORT showGlyphPageTree(unsigned pageNumber); | 42 void PLATFORM_EXPORT showGlyphPageTree(unsigned pageNumber); |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace blink { |
| 46 | 46 |
| 47 class FontData; | 47 class FontData; |
| 48 class SimpleFontData; | 48 class SimpleFontData; |
| 49 | 49 |
| 50 // The glyph page tree is a data structure that maps (FontData, glyph page numbe
r) | 50 // The glyph page tree is a data structure that maps (FontData, glyph page numbe
r) |
| 51 // to a GlyphPage. Level 0 (the "root") is special. There is one root | 51 // to a GlyphPage. Level 0 (the "root") is special. There is one root |
| 52 // GlyphPageTreeNode for each glyph page number. The roots do not have a | 52 // GlyphPageTreeNode for each glyph page number. The roots do not have a |
| 53 // GlyphPage associated with them, and their initializePage() function is never | 53 // GlyphPage associated with them, and their initializePage() function is never |
| 54 // called to fill the glyphs. | 54 // called to fill the glyphs. |
| 55 // | 55 // |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 #if ENABLE(ASSERT) | 131 #if ENABLE(ASSERT) |
| 132 unsigned m_pageNumber; | 132 unsigned m_pageNumber; |
| 133 #endif | 133 #endif |
| 134 #ifndef NDEBUG | 134 #ifndef NDEBUG |
| 135 friend void ::showGlyphPageTrees(); | 135 friend void ::showGlyphPageTrees(); |
| 136 friend void ::showGlyphPageTree(unsigned pageNumber); | 136 friend void ::showGlyphPageTree(unsigned pageNumber); |
| 137 #endif | 137 #endif |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } // namespace WebCore | 140 } // namespace blink |
| 141 | 141 |
| 142 #endif // GlyphPageTreeNode_h | 142 #endif // GlyphPageTreeNode_h |
| OLD | NEW |