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

Side by Side Diff: Source/core/css/CSSComputedStyleDeclaration.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/CSSComputedStyleDeclaration.h ('k') | Source/core/css/CSSCrossfadeValue.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 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "PseudoElement.h" 54 #include "PseudoElement.h"
55 #include "Rect.h" 55 #include "Rect.h"
56 #include "RenderBox.h" 56 #include "RenderBox.h"
57 #include "RenderStyle.h" 57 #include "RenderStyle.h"
58 #include "RenderView.h" 58 #include "RenderView.h"
59 #include "ShadowValue.h" 59 #include "ShadowValue.h"
60 #include "StyleInheritedData.h" 60 #include "StyleInheritedData.h"
61 #include "StylePropertySet.h" 61 #include "StylePropertySet.h"
62 #include "StylePropertyShorthand.h" 62 #include "StylePropertyShorthand.h"
63 #include "StyleResolver.h" 63 #include "StyleResolver.h"
64 #include "WebCoreMemoryInstrumentation.h"
65 #include "WebKitCSSTransformValue.h" 64 #include "WebKitCSSTransformValue.h"
66 #include "WebKitFontFamilyNames.h" 65 #include "WebKitFontFamilyNames.h"
67 #include <wtf/text/StringBuilder.h> 66 #include <wtf/text/StringBuilder.h>
68 67
69 #if ENABLE(CSS_EXCLUSIONS) 68 #if ENABLE(CSS_EXCLUSIONS)
70 #include "ExclusionShapeValue.h" 69 #include "ExclusionShapeValue.h"
71 #endif 70 #endif
72 71
73 #include "CustomFilterArrayParameter.h" 72 #include "CustomFilterArrayParameter.h"
74 #include "CustomFilterNumberParameter.h" 73 #include "CustomFilterNumberParameter.h"
(...skipping 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after
2909 Vector<CSSProperty, 256> list; 2908 Vector<CSSProperty, 256> list;
2910 list.reserveInitialCapacity(length); 2909 list.reserveInitialCapacity(length);
2911 for (unsigned i = 0; i < length; ++i) { 2910 for (unsigned i = 0; i < length; ++i) {
2912 RefPtr<CSSValue> value = getPropertyCSSValue(set[i]); 2911 RefPtr<CSSValue> value = getPropertyCSSValue(set[i]);
2913 if (value) 2912 if (value)
2914 list.append(CSSProperty(set[i], value.release(), false)); 2913 list.append(CSSProperty(set[i], value.release(), false));
2915 } 2914 }
2916 return StylePropertySet::create(list.data(), list.size()); 2915 return StylePropertySet::create(list.data(), list.size());
2917 } 2916 }
2918 2917
2919 void CSSComputedStyleDeclaration::reportMemoryUsage(MemoryObjectInfo* memoryObje ctInfo) const
2920 {
2921 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
2922 info.addMember(m_node, "node");
2923 }
2924
2925 CSSRule* CSSComputedStyleDeclaration::parentRule() const 2918 CSSRule* CSSComputedStyleDeclaration::parentRule() const
2926 { 2919 {
2927 return 0; 2920 return 0;
2928 } 2921 }
2929 2922
2930 PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(const Stri ng& propertyName) 2923 PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(const Stri ng& propertyName)
2931 { 2924 {
2932 CSSPropertyID propertyID = cssPropertyID(propertyName); 2925 CSSPropertyID propertyID = cssPropertyID(propertyName);
2933 if (!propertyID) 2926 if (!propertyID)
2934 return 0; 2927 return 0;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
2994 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 2987 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
2995 CSSPropertyB ackgroundClip }; 2988 CSSPropertyB ackgroundClip };
2996 2989
2997 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); 2990 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
2998 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat or)))); 2991 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat or))));
2999 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator )))); 2992 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator ))));
3000 return list.release(); 2993 return list.release();
3001 } 2994 }
3002 2995
3003 } // namespace WebCore 2996 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.h ('k') | Source/core/css/CSSCrossfadeValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698