OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "CSSImportRule.h" | 34 #include "CSSImportRule.h" |
35 #include "CSSMediaRule.h" | 35 #include "CSSMediaRule.h" |
36 #include "CSSRule.h" | 36 #include "CSSRule.h" |
37 #include "CSSStyleRule.h" | 37 #include "CSSStyleRule.h" |
38 #include "CSSStyleSheet.h" | 38 #include "CSSStyleSheet.h" |
39 #include "CSSSupportsRule.h" | 39 #include "CSSSupportsRule.h" |
40 #include "DocumentStyleSheetCollection.h" | 40 #include "DocumentStyleSheetCollection.h" |
41 #include "StyleSheetContents.h" | 41 #include "StyleSheetContents.h" |
42 #include "WebKitCSSRegionRule.h" | 42 #include "WebKitCSSRegionRule.h" |
43 | 43 |
44 #include <wtf/MemoryInstrumentationHashMap.h> | |
45 #include <wtf/MemoryInstrumentationHashSet.h> | |
46 | |
47 namespace WebCore { | 44 namespace WebCore { |
48 | 45 |
49 void InspectorCSSOMWrappers::collectFromStyleSheetIfNeeded(CSSStyleSheet* styleS
heet) | 46 void InspectorCSSOMWrappers::collectFromStyleSheetIfNeeded(CSSStyleSheet* styleS
heet) |
50 { | 47 { |
51 if (!m_styleRuleToCSSOMWrapperMap.isEmpty()) | 48 if (!m_styleRuleToCSSOMWrapperMap.isEmpty()) |
52 collect(styleSheet); | 49 collect(styleSheet); |
53 } | 50 } |
54 | 51 |
55 template <class ListType> | 52 template <class ListType> |
56 void InspectorCSSOMWrappers::collect(ListType* listType) | 53 void InspectorCSSOMWrappers::collect(ListType* listType) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty
leSheets::svgStyleSheet); | 116 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty
leSheets::svgStyleSheet); |
120 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty
leSheets::mathMLStyleSheet); | 117 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty
leSheets::mathMLStyleSheet); |
121 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty
leSheets::mediaControlsStyleSheet); | 118 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty
leSheets::mediaControlsStyleSheet); |
122 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty
leSheets::fullscreenStyleSheet); | 119 collectFromStyleSheetContents(m_styleSheetCSSOMWrapperSet, CSSDefaultSty
leSheets::fullscreenStyleSheet); |
123 | 120 |
124 collectFromDocumentStyleSheetCollection(styleSheetCollection); | 121 collectFromDocumentStyleSheetCollection(styleSheetCollection); |
125 } | 122 } |
126 return m_styleRuleToCSSOMWrapperMap.get(rule).get(); | 123 return m_styleRuleToCSSOMWrapperMap.get(rule).get(); |
127 } | 124 } |
128 | 125 |
129 void InspectorCSSOMWrappers::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const | |
130 { | |
131 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | |
132 info.addMember(m_styleRuleToCSSOMWrapperMap); | |
133 info.addMember(m_styleSheetCSSOMWrapperSet); | |
134 } | |
135 | |
136 } // namespace WebCore | 126 } // namespace WebCore |
OLD | NEW |