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

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

Issue 68933007: Add CSSFontSelector::removeFontFaceRule() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Avoid double hash lookups Created 7 years, 1 month 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
« no previous file with comments | « no previous file | Source/core/css/CSSFontSelector.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 virtual unsigned version() const OVERRIDE { return m_cssSegmentedFontFaceCac he.version(); } 72 virtual unsigned version() const OVERRIDE { return m_cssSegmentedFontFaceCac he.version(); }
73 73
74 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi cString&); 74 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi cString&);
75 CSSSegmentedFontFace* getFontFace(const FontDescription&, const AtomicString & family); 75 CSSSegmentedFontFace* getFontFace(const FontDescription&, const AtomicString & family);
76 virtual void willUseFontData(const FontDescription&, const AtomicString& fam ily) OVERRIDE; 76 virtual void willUseFontData(const FontDescription&, const AtomicString& fam ily) OVERRIDE;
77 77
78 void clearDocument(); 78 void clearDocument();
79 79
80 void addFontFaceRule(const StyleRuleFontFace*); 80 void addFontFaceRule(const StyleRuleFontFace*);
81 void removeFontFaceRule(const StyleRuleFontFace*);
81 82
82 void fontLoaded(); 83 void fontLoaded();
83 virtual void fontCacheInvalidated(); 84 virtual void fontCacheInvalidated();
84 85
85 virtual void registerForInvalidationCallbacks(FontSelectorClient*); 86 virtual void registerForInvalidationCallbacks(FontSelectorClient*);
86 virtual void unregisterForInvalidationCallbacks(FontSelectorClient*); 87 virtual void unregisterForInvalidationCallbacks(FontSelectorClient*);
87 88
88 Document* document() const { return m_document; } 89 Document* document() const { return m_document; }
89 90
90 void beginLoadingFontSoon(FontResource*); 91 void beginLoadingFontSoon(FontResource*);
91 void loadPendingFonts(); 92 void loadPendingFonts();
92 93
93 private: 94 private:
94 explicit CSSFontSelector(Document*); 95 explicit CSSFontSelector(Document*);
95 96
96 void dispatchInvalidationCallbacks(); 97 void dispatchInvalidationCallbacks();
97 98
98 Document* m_document; 99 Document* m_document;
99 // FIXME: Move to Document or StyleEngine. 100 // FIXME: Move to Document or StyleEngine.
100 CSSSegmentedFontFaceCache m_cssSegmentedFontFaceCache; 101 CSSSegmentedFontFaceCache m_cssSegmentedFontFaceCache;
101 HashSet<FontSelectorClient*> m_clients; 102 HashSet<FontSelectorClient*> m_clients;
102 103
103 FontLoader m_fontLoader; 104 FontLoader m_fontLoader;
104 }; 105 };
105 106
106 } // namespace WebCore 107 } // namespace WebCore
107 108
108 #endif // CSSFontSelector_h 109 #endif // CSSFontSelector_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSFontSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698