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

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

Issue 66483002: fontSelector should be reset when removing stylesheets which has @font-face rule. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing 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 | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/StyleSheetContents.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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 bool loadCompleted() const { return m_loadCompleted; } 83 bool loadCompleted() const { return m_loadCompleted; }
84 bool hasFailedOrCanceledSubresources() const; 84 bool hasFailedOrCanceledSubresources() const;
85 85
86 KURL completeURL(const String& url) const; 86 KURL completeURL(const String& url) const;
87 void addSubresourceStyleURLs(ListHashSet<KURL>&); 87 void addSubresourceStyleURLs(ListHashSet<KURL>&);
88 88
89 void setHasSyntacticallyValidCSSHeader(bool b) { m_hasSyntacticallyValidCSSH eader = b; } 89 void setHasSyntacticallyValidCSSHeader(bool b) { m_hasSyntacticallyValidCSSH eader = b; }
90 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid CSSHeader; } 90 bool hasSyntacticallyValidCSSHeader() const { return m_hasSyntacticallyValid CSSHeader; }
91 91
92 void setHasFontFaceRule(bool b) { m_hasFontFaceRule = b; }
93 bool hasFontFaceRule() const { return m_hasFontFaceRule; }
94
92 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri) ; 95 void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri) ;
93 void parserAppendRule(PassRefPtr<StyleRuleBase>); 96 void parserAppendRule(PassRefPtr<StyleRuleBase>);
94 void parserSetEncodingFromCharsetRule(const String& encoding); 97 void parserSetEncodingFromCharsetRule(const String& encoding);
95 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; } 98 void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; }
96 99
97 void clearRules(); 100 void clearRules();
98 101
99 bool hasCharsetRule() const { return !m_encodingFromCharsetRule.isNull(); } 102 bool hasCharsetRule() const { return !m_encodingFromCharsetRule.isNull(); }
100 String encodingFromCharsetRule() const { return m_encodingFromCharsetRule; } 103 String encodingFromCharsetRule() const { return m_encodingFromCharsetRule; }
101 // Rules other than @charset and @import. 104 // Rules other than @charset and @import.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 Vector<RefPtr<StyleRuleBase> > m_childRules; 157 Vector<RefPtr<StyleRuleBase> > m_childRules;
155 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap; 158 typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap;
156 PrefixNamespaceURIMap m_namespaces; 159 PrefixNamespaceURIMap m_namespaces;
157 160
158 bool m_loadCompleted : 1; 161 bool m_loadCompleted : 1;
159 bool m_hasSyntacticallyValidCSSHeader : 1; 162 bool m_hasSyntacticallyValidCSSHeader : 1;
160 bool m_didLoadErrorOccur : 1; 163 bool m_didLoadErrorOccur : 1;
161 bool m_usesRemUnits : 1; 164 bool m_usesRemUnits : 1;
162 bool m_isMutable : 1; 165 bool m_isMutable : 1;
163 bool m_isInMemoryCache : 1; 166 bool m_isInMemoryCache : 1;
167 bool m_hasFontFaceRule : 1;
164 168
165 CSSParserContext m_parserContext; 169 CSSParserContext m_parserContext;
166 170
167 Vector<CSSStyleSheet*> m_clients; 171 Vector<CSSStyleSheet*> m_clients;
168 }; 172 };
169 173
170 } // namespace 174 } // namespace
171 175
172 #endif 176 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698