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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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
« no previous file with comments | « Source/core/css/StyleScopeResolver.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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void unregisterClient(CSSStyleSheet*); 129 void unregisterClient(CSSStyleSheet*);
130 bool hasOneClient() { return m_clients.size() == 1; } 130 bool hasOneClient() { return m_clients.size() == 1; }
131 131
132 bool isMutable() const { return m_isMutable; } 132 bool isMutable() const { return m_isMutable; }
133 void setMutable() { m_isMutable = true; } 133 void setMutable() { m_isMutable = true; }
134 134
135 bool isInMemoryCache() const { return m_isInMemoryCache; } 135 bool isInMemoryCache() const { return m_isInMemoryCache; }
136 void addedToMemoryCache(); 136 void addedToMemoryCache();
137 void removedFromMemoryCache(); 137 void removedFromMemoryCache();
138 138
139 void reportMemoryUsage(MemoryObjectInfo*) const;
140
141 void shrinkToFit(); 139 void shrinkToFit();
142 140
143 private: 141 private:
144 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co nst CSSParserContext&); 142 StyleSheetContents(StyleRuleImport* ownerRule, const String& originalURL, co nst CSSParserContext&);
145 StyleSheetContents(const StyleSheetContents&); 143 StyleSheetContents(const StyleSheetContents&);
146 144
147 void clearCharsetRule(); 145 void clearCharsetRule();
148 146
149 StyleRuleImport* m_ownerRule; 147 StyleRuleImport* m_ownerRule;
150 148
(...skipping 14 matching lines...) Expand all
165 bool m_isInMemoryCache : 1; 163 bool m_isInMemoryCache : 1;
166 164
167 CSSParserContext m_parserContext; 165 CSSParserContext m_parserContext;
168 166
169 Vector<CSSStyleSheet*> m_clients; 167 Vector<CSSStyleSheet*> m_clients;
170 }; 168 };
171 169
172 } // namespace 170 } // namespace
173 171
174 #endif 172 #endif
OLDNEW
« no previous file with comments | « Source/core/css/StyleScopeResolver.cpp ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698