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

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

Issue 7932007: Merge 94508 - <rdar://problem/10071256> Retain retired custom fonts until the next style recalc (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 3 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*);
66 67
67 SimpleFontData* getFontData(const FontDescription&, bool syntheticBold, bool syntheticItalic); 68 SimpleFontData* getFontData(const FontDescription&, bool syntheticBold, bool syntheticItalic);
68 69
69 struct UnicodeRange { 70 struct UnicodeRange {
70 UnicodeRange(UChar32 from, UChar32 to) 71 UnicodeRange(UChar32 from, UChar32 to)
71 : m_from(from) 72 : m_from(from)
72 , m_to(to) 73 , m_to(to)
73 { 74 {
74 } 75 }
75 76
(...skipping 21 matching lines...) Expand all
97 Vector<UnicodeRange> m_ranges; 98 Vector<UnicodeRange> m_ranges;
98 HashSet<CSSSegmentedFontFace*> m_segmentedFontFaces; 99 HashSet<CSSSegmentedFontFace*> m_segmentedFontFaces;
99 Vector<CSSFontFaceSource*> m_sources; 100 Vector<CSSFontFaceSource*> m_sources;
100 CSSFontFaceSource* m_activeSource; 101 CSSFontFaceSource* m_activeSource;
101 bool m_isLocalFallback; 102 bool m_isLocalFallback;
102 }; 103 };
103 104
104 } 105 }
105 106
106 #endif 107 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/font-face-used-after-retired-expected.txt ('k') | Source/WebCore/css/CSSFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698