| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class FontDescription; | 36 class FontDescription; |
| 37 | 37 |
| 38 const int cAllFamiliesScanned = -1; | 38 const int cAllFamiliesScanned = -1; |
| 39 | 39 |
| 40 class PLATFORM_EXPORT FontFallbackList : public RefCounted<FontFallbackList> { | 40 class PLATFORM_EXPORT FontFallbackList : public RefCounted<FontFallbackList> { |
| 41 WTF_MAKE_NONCOPYABLE(FontFallbackList); | 41 WTF_MAKE_NONCOPYABLE(FontFallbackList); |
| 42 | 42 |
| 43 public: | 43 public: |
| 44 | |
| 45 static PassRefPtr<FontFallbackList> create() { | 44 static PassRefPtr<FontFallbackList> create() { |
| 46 return adoptRef(new FontFallbackList()); | 45 return adoptRef(new FontFallbackList()); |
| 47 } | 46 } |
| 48 | 47 |
| 49 ~FontFallbackList() { releaseFontData(); } | 48 ~FontFallbackList() { releaseFontData(); } |
| 50 bool isValid() const; | 49 bool isValid() const; |
| 51 void invalidate(FontSelector*); | 50 void invalidate(FontSelector*); |
| 52 | 51 |
| 53 bool loadingCustomFonts() const; | 52 bool loadingCustomFonts() const; |
| 54 bool shouldSkipDrawing() const; | 53 bool shouldSkipDrawing() const; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 unsigned m_fontSelectorVersion; | 99 unsigned m_fontSelectorVersion; |
| 101 mutable int m_familyIndex; | 100 mutable int m_familyIndex; |
| 102 unsigned short m_generation; | 101 unsigned short m_generation; |
| 103 mutable bool m_hasLoadingFallback : 1; | 102 mutable bool m_hasLoadingFallback : 1; |
| 104 mutable WeakPtr<ShapeCache> m_shapeCache; | 103 mutable WeakPtr<ShapeCache> m_shapeCache; |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 } // namespace blink | 106 } // namespace blink |
| 108 | 107 |
| 109 #endif | 108 #endif |
| OLD | NEW |