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

Side by Side Diff: Source/core/css/CSSFontSelector.h

Issue 324293003: Change FontFaceSet#check() behavior when no matched font-face (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2011 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static PassRefPtrWillBeRawPtr<CSSFontSelector> create(Document* document) 50 static PassRefPtrWillBeRawPtr<CSSFontSelector> create(Document* document)
51 { 51 {
52 return adoptRefWillBeNoop(new CSSFontSelector(document)); 52 return adoptRefWillBeNoop(new CSSFontSelector(document));
53 } 53 }
54 virtual ~CSSFontSelector(); 54 virtual ~CSSFontSelector();
55 55
56 virtual unsigned version() const OVERRIDE { return m_fontFaceCache.version() ; } 56 virtual unsigned version() const OVERRIDE { return m_fontFaceCache.version() ; }
57 57
58 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi cString&) OVERRIDE; 58 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi cString&) OVERRIDE;
59 virtual void willUseFontData(const FontDescription&, const AtomicString& fam ily, UChar32) OVERRIDE; 59 virtual void willUseFontData(const FontDescription&, const AtomicString& fam ily, UChar32) OVERRIDE;
60 bool isPlatformFontAvailable(const FontDescription&, const AtomicString& fam ily);
60 61
61 #if !ENABLE(OILPAN) 62 #if !ENABLE(OILPAN)
62 void clearDocument(); 63 void clearDocument();
63 #endif 64 #endif
64 65
65 void fontFaceInvalidated(); 66 void fontFaceInvalidated();
66 67
67 // FontCacheClient implementation 68 // FontCacheClient implementation
68 virtual void fontCacheInvalidated() OVERRIDE; 69 virtual void fontCacheInvalidated() OVERRIDE;
69 70
(...skipping 21 matching lines...) Expand all
91 FontFaceCache m_fontFaceCache; 92 FontFaceCache m_fontFaceCache;
92 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient> > m_clients; 93 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient> > m_clients;
93 94
94 RefPtrWillBeMember<FontLoader> m_fontLoader; 95 RefPtrWillBeMember<FontLoader> m_fontLoader;
95 GenericFontFamilySettings m_genericFontFamilySettings; 96 GenericFontFamilySettings m_genericFontFamilySettings;
96 }; 97 };
97 98
98 } // namespace WebCore 99 } // namespace WebCore
99 100
100 #endif // CSSFontSelector_h 101 #endif // CSSFontSelector_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698