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

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

Issue 1989093003: Remove the prefinalizer of Resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp1985033003
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 size_t clientSize() const { return m_loadingClients.size() + m_completedClie nts.size(); } 135 size_t clientSize() const { return m_loadingClients.size() + m_completedClie nts.size(); }
136 bool hasOneClient() { return clientSize() == 1; } 136 bool hasOneClient() { return clientSize() == 1; }
137 void clientLoadCompleted(CSSStyleSheet*); 137 void clientLoadCompleted(CSSStyleSheet*);
138 void clientLoadStarted(CSSStyleSheet*); 138 void clientLoadStarted(CSSStyleSheet*);
139 139
140 bool isMutable() const { return m_isMutable; } 140 bool isMutable() const { return m_isMutable; }
141 void setMutable() { m_isMutable = true; } 141 void setMutable() { m_isMutable = true; }
142 142
143 void removeSheetFromCache(Document*); 143 void removeSheetFromCache(Document*);
144 144
145 bool isReferencedFromResource() const { return m_isReferencedFromResource; } 145 bool isReferencedFromResource() const { return m_referencedFromResource; }
146 void setReferencedFromResource(bool); 146 void setReferencedFromResource(CSSStyleSheetResource*);
147 void clearReferencedFromResource();
147 148
148 void setHasMediaQueries(); 149 void setHasMediaQueries();
149 bool hasMediaQueries() const { return m_hasMediaQueries; } 150 bool hasMediaQueries() const { return m_hasMediaQueries; }
150 151
151 bool didLoadErrorOccur() const { return m_didLoadErrorOccur; } 152 bool didLoadErrorOccur() const { return m_didLoadErrorOccur; }
152 153
153 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); } 154 RuleSet& ruleSet() { ASSERT(m_ruleSet); return *m_ruleSet.get(); }
154 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags); 155 RuleSet& ensureRuleSet(const MediaQueryEvaluator&, AddRuleFlags);
155 void clearRuleSet(); 156 void clearRuleSet();
156 157
(...skipping 13 matching lines...) Expand all
170 Member<StyleRuleImport> m_ownerRule; 171 Member<StyleRuleImport> m_ownerRule;
171 172
172 String m_originalURL; 173 String m_originalURL;
173 174
174 HeapVector<Member<StyleRuleImport>> m_importRules; 175 HeapVector<Member<StyleRuleImport>> m_importRules;
175 HeapVector<Member<StyleRuleNamespace>> m_namespaceRules; 176 HeapVector<Member<StyleRuleNamespace>> m_namespaceRules;
176 HeapVector<Member<StyleRuleBase>> m_childRules; 177 HeapVector<Member<StyleRuleBase>> m_childRules;
177 using PrefixNamespaceURIMap = HashMap<AtomicString, AtomicString>; 178 using PrefixNamespaceURIMap = HashMap<AtomicString, AtomicString>;
178 PrefixNamespaceURIMap m_namespaces; 179 PrefixNamespaceURIMap m_namespaces;
179 AtomicString m_defaultNamespace; 180 AtomicString m_defaultNamespace;
181 WeakMember<CSSStyleSheetResource> m_referencedFromResource;
180 182
181 bool m_hasSyntacticallyValidCSSHeader : 1; 183 bool m_hasSyntacticallyValidCSSHeader : 1;
182 bool m_didLoadErrorOccur : 1; 184 bool m_didLoadErrorOccur : 1;
183 bool m_isMutable : 1; 185 bool m_isMutable : 1;
184 bool m_isReferencedFromResource : 1;
185 bool m_hasFontFaceRule : 1; 186 bool m_hasFontFaceRule : 1;
186 bool m_hasMediaQueries : 1; 187 bool m_hasMediaQueries : 1;
187 bool m_hasSingleOwnerDocument : 1; 188 bool m_hasSingleOwnerDocument : 1;
188 189
189 CSSParserContext m_parserContext; 190 CSSParserContext m_parserContext;
190 191
191 HeapHashSet<WeakMember<CSSStyleSheet>> m_loadingClients; 192 HeapHashSet<WeakMember<CSSStyleSheet>> m_loadingClients;
192 HeapHashSet<WeakMember<CSSStyleSheet>> m_completedClients; 193 HeapHashSet<WeakMember<CSSStyleSheet>> m_completedClients;
193 194
194 Member<RuleSet> m_ruleSet; 195 Member<RuleSet> m_ruleSet;
195 String m_sourceMapURL; 196 String m_sourceMapURL;
196 }; 197 };
197 198
198 } // namespace blink 199 } // namespace blink
199 200
200 #endif 201 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698