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

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

Issue 1658923004: PurgeMemory. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008, 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool hasFailedOrCanceledSubresources() const; 126 bool hasFailedOrCanceledSubresources() const;
127 127
128 static unsigned averageSizeInBytes(); 128 static unsigned averageSizeInBytes();
129 129
130 #ifndef NDEBUG 130 #ifndef NDEBUG
131 void showStyle(); 131 void showStyle();
132 #endif 132 #endif
133 133
134 bool propertyMatches(CSSPropertyID, const CSSValue*) const; 134 bool propertyMatches(CSSPropertyID, const CSSValue*) const;
135 135
136 void purgeMemory();
137
136 DECLARE_TRACE(); 138 DECLARE_TRACE();
137 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { } 139 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { }
138 140
139 protected: 141 protected:
140 142
141 enum { MaxArraySize = (1 << 28) - 1 }; 143 enum { MaxArraySize = (1 << 28) - 1 };
142 144
143 StylePropertySet(CSSParserMode cssParserMode) 145 StylePropertySet(CSSParserMode cssParserMode)
144 : m_cssParserMode(cssParserMode) 146 : m_cssParserMode(cssParserMode)
145 , m_isMutable(true) 147 , m_isMutable(true)
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 inline int StylePropertySet::findPropertyIndex(T property) const 315 inline int StylePropertySet::findPropertyIndex(T property) const
314 { 316 {
315 if (m_isMutable) 317 if (m_isMutable)
316 return toMutableStylePropertySet(this)->findPropertyIndex(property); 318 return toMutableStylePropertySet(this)->findPropertyIndex(property);
317 return toImmutableStylePropertySet(this)->findPropertyIndex(property); 319 return toImmutableStylePropertySet(this)->findPropertyIndex(property);
318 } 320 }
319 321
320 } // namespace blink 322 } // namespace blink
321 323
322 #endif // StylePropertySet_h 324 #endif // StylePropertySet_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.cpp ('k') | third_party/WebKit/Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698