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

Side by Side Diff: Source/core/css/MediaQueryExp.cpp

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/MediaQueryExp.h ('k') | Source/core/css/PropertySetCSSStyleDeclaration.h » ('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 * CSS Media Query 2 * CSS Media Query
3 * 3 *
4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>. 4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>.
5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6 * Copyright (C) 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2013 Apple Inc. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 16 matching lines...) Expand all
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "MediaQueryExp.h" 31 #include "MediaQueryExp.h"
32 32
33 #include "CSSAspectRatioValue.h" 33 #include "CSSAspectRatioValue.h"
34 #include "CSSParser.h" 34 #include "CSSParser.h"
35 #include "CSSPrimitiveValue.h" 35 #include "CSSPrimitiveValue.h"
36 #include "CSSValueList.h" 36 #include "CSSValueList.h"
37 #include "WebCoreMemoryInstrumentation.h"
38 #include <wtf/text/StringBuilder.h> 37 #include <wtf/text/StringBuilder.h>
39 38
40 namespace WebCore { 39 namespace WebCore {
41 40
42 static inline bool featureWithCSSValueID(const AtomicString& mediaFeature, const CSSParserValue* value) 41 static inline bool featureWithCSSValueID(const AtomicString& mediaFeature, const CSSParserValue* value)
43 { 42 {
44 if (!value->id) 43 if (!value->id)
45 return false; 44 return false;
46 45
47 return mediaFeature == MediaFeatureNames::orientationMediaFeature 46 return mediaFeature == MediaFeatureNames::orientationMediaFeature
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 if (m_value) { 234 if (m_value) {
236 result.append(": "); 235 result.append(": ");
237 result.append(m_value->cssText()); 236 result.append(m_value->cssText());
238 } 237 }
239 result.append(")"); 238 result.append(")");
240 239
241 const_cast<MediaQueryExp*>(this)->m_serializationCache = result.toString(); 240 const_cast<MediaQueryExp*>(this)->m_serializationCache = result.toString();
242 return m_serializationCache; 241 return m_serializationCache;
243 } 242 }
244 243
245 void MediaQueryExp::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
246 {
247 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
248 info.addMember(m_mediaFeature, "mediaFeature");
249 info.addMember(m_serializationCache, "serializationCache");
250 info.addMember(m_value, "value");
251 }
252
253 } // namespace 244 } // namespace
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryExp.h ('k') | Source/core/css/PropertySetCSSStyleDeclaration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698