| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Koji Ishii <kojiishi@gmail.com> | 2 * Copyright (C) 2012 Koji Ishii <kojiishi@gmail.com> |
| 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 17 matching lines...) Expand all Loading... |
| 28 #include "platform/PlatformExport.h" | 28 #include "platform/PlatformExport.h" |
| 29 #include "platform/fonts/Glyph.h" | 29 #include "platform/fonts/Glyph.h" |
| 30 #include "wtf/HashMap.h" | 30 #include "wtf/HashMap.h" |
| 31 #include "wtf/PassRefPtr.h" | 31 #include "wtf/PassRefPtr.h" |
| 32 #include "wtf/RefCounted.h" | 32 #include "wtf/RefCounted.h" |
| 33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class FontPlatformData; | 37 class FontPlatformData; |
| 38 class GlyphPage; | |
| 39 class SimpleFontData; | 38 class SimpleFontData; |
| 40 | 39 |
| 41 class PLATFORM_EXPORT OpenTypeVerticalData : public RefCounted<OpenTypeVerticalD
ata> { | 40 class PLATFORM_EXPORT OpenTypeVerticalData : public RefCounted<OpenTypeVerticalD
ata> { |
| 42 public: | 41 public: |
| 43 static PassRefPtr<OpenTypeVerticalData> create(const FontPlatformData& platf
ormData) | 42 static PassRefPtr<OpenTypeVerticalData> create(const FontPlatformData& platf
ormData) |
| 44 { | 43 { |
| 45 return adoptRef(new OpenTypeVerticalData(platformData)); | 44 return adoptRef(new OpenTypeVerticalData(platformData)); |
| 46 } | 45 } |
| 47 | 46 |
| 48 bool isOpenType() const { return !m_advanceWidths.isEmpty(); } | 47 bool isOpenType() const { return !m_advanceWidths.isEmpty(); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 67 Vector<int16_t> m_topSideBearings; | 66 Vector<int16_t> m_topSideBearings; |
| 68 int16_t m_defaultVertOriginY; | 67 int16_t m_defaultVertOriginY; |
| 69 HashMap<Glyph, int16_t> m_vertOriginY; | 68 HashMap<Glyph, int16_t> m_vertOriginY; |
| 70 | 69 |
| 71 bool m_inFontCache; // for mark & sweep in FontCache::purgeInactiveFontData(
) | 70 bool m_inFontCache; // for mark & sweep in FontCache::purgeInactiveFontData(
) |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace blink | 73 } // namespace blink |
| 75 | 74 |
| 76 #endif // OpenTypeVerticalData_h | 75 #endif // OpenTypeVerticalData_h |
| OLD | NEW |