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

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

Issue 82583005: Use removeFontFace to avoid resetting fontSelector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 6 years, 10 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // FontCacheClient implementation 83 // FontCacheClient implementation
84 virtual void fontCacheInvalidated() OVERRIDE; 84 virtual void fontCacheInvalidated() OVERRIDE;
85 85
86 void registerForInvalidationCallbacks(CSSFontSelectorClient*); 86 void registerForInvalidationCallbacks(CSSFontSelectorClient*);
87 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*); 87 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*);
88 88
89 Document* document() const { return m_document; } 89 Document* document() const { return m_document; }
90 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; } 90 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; }
91 91
92 const GenericFontFamilySettings& genericFontFamilySettings() const { return m_genericFontFamilySettings; } 92 const GenericFontFamilySettings& genericFontFamilySettings() const { return m_genericFontFamilySettings; }
93 void updateGenericFontFamilySettings(Document&);
93 94
94 void beginLoadingFontSoon(FontResource*); 95 void beginLoadingFontSoon(FontResource*);
95 void loadPendingFonts(); 96 void loadPendingFonts();
96 97
97 private: 98 private:
98 explicit CSSFontSelector(Document*); 99 explicit CSSFontSelector(Document*);
99 100
100 void dispatchInvalidationCallbacks(); 101 void dispatchInvalidationCallbacks();
101 102
102 Document* m_document; 103 Document* m_document;
103 // FIXME: Move to Document or StyleEngine. 104 // FIXME: Move to Document or StyleEngine.
104 FontFaceCache m_fontFaceCache; 105 FontFaceCache m_fontFaceCache;
105 HashSet<CSSFontSelectorClient*> m_clients; 106 HashSet<CSSFontSelectorClient*> m_clients;
106 107
107 FontLoader m_fontLoader; 108 FontLoader m_fontLoader;
108 GenericFontFamilySettings m_genericFontFamilySettings; 109 GenericFontFamilySettings m_genericFontFamilySettings;
109 }; 110 };
110 111
111 } // namespace WebCore 112 } // namespace WebCore
112 113
113 #endif // CSSFontSelector_h 114 #endif // CSSFontSelector_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/font-face-insertBefore-expected.html ('k') | Source/core/css/CSSFontSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698