| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 unsigned size = listType->length(); | 60 unsigned size = listType->length(); |
| 61 for (unsigned i = 0; i < size; ++i) { | 61 for (unsigned i = 0; i < size; ++i) { |
| 62 CSSRule* cssRule = listType->item(i); | 62 CSSRule* cssRule = listType->item(i); |
| 63 switch (cssRule->type()) { | 63 switch (cssRule->type()) { |
| 64 case CSSRule::IMPORT_RULE: | 64 case CSSRule::IMPORT_RULE: |
| 65 collect(static_cast<CSSImportRule*>(cssRule)->styleSheet()); | 65 collect(static_cast<CSSImportRule*>(cssRule)->styleSheet()); |
| 66 break; | 66 break; |
| 67 case CSSRule::MEDIA_RULE: | 67 case CSSRule::MEDIA_RULE: |
| 68 collect(static_cast<CSSMediaRule*>(cssRule)); | 68 collect(static_cast<CSSMediaRule*>(cssRule)); |
| 69 break; | 69 break; |
| 70 #if ENABLE(CSS3_CONDITIONAL_RULES) | |
| 71 case CSSRule::SUPPORTS_RULE: | 70 case CSSRule::SUPPORTS_RULE: |
| 72 collect(static_cast<CSSSupportsRule*>(cssRule)); | 71 collect(static_cast<CSSSupportsRule*>(cssRule)); |
| 73 break; | 72 break; |
| 74 #endif | |
| 75 #if ENABLE(CSS_REGIONS) | 73 #if ENABLE(CSS_REGIONS) |
| 76 case CSSRule::WEBKIT_REGION_RULE: | 74 case CSSRule::WEBKIT_REGION_RULE: |
| 77 collect(static_cast<WebKitCSSRegionRule*>(cssRule)); | 75 collect(static_cast<WebKitCSSRegionRule*>(cssRule)); |
| 78 break; | 76 break; |
| 79 #endif | 77 #endif |
| 80 case CSSRule::HOST_RULE: | 78 case CSSRule::HOST_RULE: |
| 81 collect(static_cast<CSSHostRule*>(cssRule)); | 79 collect(static_cast<CSSHostRule*>(cssRule)); |
| 82 break; | 80 break; |
| 83 case CSSRule::STYLE_RULE: | 81 case CSSRule::STYLE_RULE: |
| 84 m_styleRuleToCSSOMWrapperMap.add(static_cast<CSSStyleRule*>(cssRule)
->styleRule(), static_cast<CSSStyleRule*>(cssRule)); | 82 m_styleRuleToCSSOMWrapperMap.add(static_cast<CSSStyleRule*>(cssRule)
->styleRule(), static_cast<CSSStyleRule*>(cssRule)); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 127 } |
| 130 | 128 |
| 131 void InspectorCSSOMWrappers::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const | 129 void InspectorCSSOMWrappers::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const |
| 132 { | 130 { |
| 133 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 131 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
| 134 info.addMember(m_styleRuleToCSSOMWrapperMap); | 132 info.addMember(m_styleRuleToCSSOMWrapperMap); |
| 135 info.addMember(m_styleSheetCSSOMWrapperSet); | 133 info.addMember(m_styleSheetCSSOMWrapperSet); |
| 136 } | 134 } |
| 137 | 135 |
| 138 } // namespace WebCore | 136 } // namespace WebCore |
| OLD | NEW |