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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 switch (cssRule->type()) { | 69 switch (cssRule->type()) { |
70 case CSSRule::IMPORT_RULE: | 70 case CSSRule::IMPORT_RULE: |
71 collect(static_cast<CSSImportRule*>(cssRule)->styleSheet()); | 71 collect(static_cast<CSSImportRule*>(cssRule)->styleSheet()); |
72 break; | 72 break; |
73 case CSSRule::MEDIA_RULE: | 73 case CSSRule::MEDIA_RULE: |
74 collect(static_cast<CSSMediaRule*>(cssRule)); | 74 collect(static_cast<CSSMediaRule*>(cssRule)); |
75 break; | 75 break; |
76 case CSSRule::SUPPORTS_RULE: | 76 case CSSRule::SUPPORTS_RULE: |
77 collect(static_cast<CSSSupportsRule*>(cssRule)); | 77 collect(static_cast<CSSSupportsRule*>(cssRule)); |
78 break; | 78 break; |
79 #if ENABLE(CSS_REGIONS) | |
80 case CSSRule::WEBKIT_REGION_RULE: | 79 case CSSRule::WEBKIT_REGION_RULE: |
81 collect(static_cast<WebKitCSSRegionRule*>(cssRule)); | 80 collect(static_cast<WebKitCSSRegionRule*>(cssRule)); |
82 break; | 81 break; |
83 #endif | |
84 case CSSRule::HOST_RULE: | 82 case CSSRule::HOST_RULE: |
85 collect(static_cast<CSSHostRule*>(cssRule)); | 83 collect(static_cast<CSSHostRule*>(cssRule)); |
86 break; | 84 break; |
87 case CSSRule::STYLE_RULE: | 85 case CSSRule::STYLE_RULE: |
88 m_styleRuleToCSSOMWrapperMap.add(static_cast<CSSStyleRule*>(cssRule)
->styleRule(), static_cast<CSSStyleRule*>(cssRule)); | 86 m_styleRuleToCSSOMWrapperMap.add(static_cast<CSSStyleRule*>(cssRule)
->styleRule(), static_cast<CSSStyleRule*>(cssRule)); |
89 break; | 87 break; |
90 default: | 88 default: |
91 break; | 89 break; |
92 } | 90 } |
93 } | 91 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 131 } |
134 | 132 |
135 void InspectorCSSOMWrappers::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const | 133 void InspectorCSSOMWrappers::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const |
136 { | 134 { |
137 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 135 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
138 info.addMember(m_styleRuleToCSSOMWrapperMap); | 136 info.addMember(m_styleRuleToCSSOMWrapperMap); |
139 info.addMember(m_styleSheetCSSOMWrapperSet); | 137 info.addMember(m_styleSheetCSSOMWrapperSet); |
140 } | 138 } |
141 | 139 |
142 } // namespace WebCore | 140 } // namespace WebCore |
OLD | NEW |