Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: Source/WebCore/css/CSSFontFace.h

Issue 8273018: Merge 97402 - Source/WebCore: Register custom fonts at their creation time, rather than at retire... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void removedFromSegmentedFontFace(CSSSegmentedFontFace*); 56 void removedFromSegmentedFontFace(CSSSegmentedFontFace*);
57 57
58 bool isLoaded() const; 58 bool isLoaded() const;
59 bool isValid() const; 59 bool isValid() const;
60 60
61 bool isLocalFallback() const { return m_isLocalFallback; } 61 bool isLocalFallback() const { return m_isLocalFallback; }
62 62
63 void addSource(CSSFontFaceSource*); 63 void addSource(CSSFontFaceSource*);
64 64
65 void fontLoaded(CSSFontFaceSource*); 65 void fontLoaded(CSSFontFaceSource*);
66 void retireCustomFont(SimpleFontData*);
67 66
68 SimpleFontData* getFontData(const FontDescription&, bool syntheticBold, bool syntheticItalic); 67 SimpleFontData* getFontData(const FontDescription&, bool syntheticBold, bool syntheticItalic);
69 68
70 struct UnicodeRange { 69 struct UnicodeRange {
71 UnicodeRange(UChar32 from, UChar32 to) 70 UnicodeRange(UChar32 from, UChar32 to)
72 : m_from(from) 71 : m_from(from)
73 , m_to(to) 72 , m_to(to)
74 { 73 {
75 } 74 }
76 75
(...skipping 21 matching lines...) Expand all
98 Vector<UnicodeRange> m_ranges; 97 Vector<UnicodeRange> m_ranges;
99 HashSet<CSSSegmentedFontFace*> m_segmentedFontFaces; 98 HashSet<CSSSegmentedFontFace*> m_segmentedFontFaces;
100 Vector<CSSFontFaceSource*> m_sources; 99 Vector<CSSFontFaceSource*> m_sources;
101 CSSFontFaceSource* m_activeSource; 100 CSSFontFaceSource* m_activeSource;
102 bool m_isLocalFallback; 101 bool m_isLocalFallback;
103 }; 102 };
104 103
105 } 104 }
106 105
107 #endif 106 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/text/custom-font-data-crash2-expected.txt ('k') | Source/WebCore/css/CSSFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698