| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 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 * 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 class CORE_EXPORT CSSFontFace final | 46 class CORE_EXPORT CSSFontFace final |
| 47 : public GarbageCollectedFinalized<CSSFontFace> { | 47 : public GarbageCollectedFinalized<CSSFontFace> { |
| 48 WTF_MAKE_NONCOPYABLE(CSSFontFace); | 48 WTF_MAKE_NONCOPYABLE(CSSFontFace); |
| 49 | 49 |
| 50 public: | 50 public: |
| 51 CSSFontFace(FontFace* fontFace, Vector<UnicodeRange>& ranges) | 51 CSSFontFace(FontFace* fontFace, Vector<UnicodeRange>& ranges) |
| 52 : m_ranges(adoptRef(new UnicodeRangeSet(ranges))), | 52 : m_ranges(adoptRef(new UnicodeRangeSet(ranges))), |
| 53 m_segmentedFontFace(nullptr), | 53 m_segmentedFontFace(nullptr), |
| 54 m_fontFace(fontFace) { | 54 m_fontFace(fontFace) { |
| 55 ASSERT(m_fontFace); | 55 DCHECK(m_fontFace); |
| 56 } | 56 } |
| 57 | 57 |
| 58 FontFace* fontFace() const { return m_fontFace; } | 58 FontFace* fontFace() const { return m_fontFace; } |
| 59 | 59 |
| 60 PassRefPtr<UnicodeRangeSet> ranges() { return m_ranges; } | 60 PassRefPtr<UnicodeRangeSet> ranges() { return m_ranges; } |
| 61 | 61 |
| 62 void setSegmentedFontFace(CSSSegmentedFontFace*); | 62 void setSegmentedFontFace(CSSSegmentedFontFace*); |
| 63 void clearSegmentedFontFace() { m_segmentedFontFace = nullptr; } | 63 void clearSegmentedFontFace() { m_segmentedFontFace = nullptr; } |
| 64 | 64 |
| 65 bool isValid() const { return !m_sources.isEmpty(); } | 65 bool isValid() const { return !m_sources.isEmpty(); } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 90 | 90 |
| 91 RefPtr<UnicodeRangeSet> m_ranges; | 91 RefPtr<UnicodeRangeSet> m_ranges; |
| 92 Member<CSSSegmentedFontFace> m_segmentedFontFace; | 92 Member<CSSSegmentedFontFace> m_segmentedFontFace; |
| 93 HeapDeque<Member<CSSFontFaceSource>> m_sources; | 93 HeapDeque<Member<CSSFontFaceSource>> m_sources; |
| 94 Member<FontFace> m_fontFace; | 94 Member<FontFace> m_fontFace; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif | 99 #endif |
| OLD | NEW |