| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
| 3 * Copyright (C) 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above | 9 * 1. Redistributions of source code must retain the above |
| 10 * copyright notice, this list of conditions and the following | 10 * copyright notice, this list of conditions and the following |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 | 32 |
| 33 #include "core/css/CSSGroupingRule.h" | 33 #include "core/css/CSSGroupingRule.h" |
| 34 | 34 |
| 35 #include "core/css/CSSParser.h" | 35 #include "core/css/CSSParser.h" |
| 36 #include "core/css/CSSRuleList.h" | 36 #include "core/css/CSSRuleList.h" |
| 37 #include "core/css/CSSStyleSheet.h" | 37 #include "core/css/CSSStyleSheet.h" |
| 38 #include "core/css/StyleRule.h" | 38 #include "core/css/StyleRule.h" |
| 39 #include "core/dom/ExceptionCode.h" | 39 #include "core/dom/ExceptionCode.h" |
| 40 #include "core/dom/WebCoreMemoryInstrumentation.h" | 40 #include "core/dom/WebCoreMemoryInstrumentation.h" |
| 41 #include "wtf/MemoryInstrumentationVector.h" |
| 41 #include "wtf/text/StringBuilder.h" | 42 #include "wtf/text/StringBuilder.h" |
| 42 | 43 |
| 43 namespace WebCore { | 44 namespace WebCore { |
| 44 | 45 |
| 45 CSSGroupingRule::CSSGroupingRule(StyleRuleGroup* groupRule, CSSStyleSheet* paren
t) | 46 CSSGroupingRule::CSSGroupingRule(StyleRuleGroup* groupRule, CSSStyleSheet* paren
t) |
| 46 : CSSRule(parent) | 47 : CSSRule(parent) |
| 47 , m_groupRule(groupRule) | 48 , m_groupRule(groupRule) |
| 48 , m_childRuleCSSOMWrappers(groupRule->childRules().size()) | 49 , m_childRuleCSSOMWrappers(groupRule->childRules().size()) |
| 49 { | 50 { |
| 50 } | 51 } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void CSSGroupingRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons
t | 163 void CSSGroupingRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons
t |
| 163 { | 164 { |
| 164 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 165 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
| 165 CSSRule::reportMemoryUsage(memoryObjectInfo); | 166 CSSRule::reportMemoryUsage(memoryObjectInfo); |
| 166 info.addMember(m_groupRule, "groupRule"); | 167 info.addMember(m_groupRule, "groupRule"); |
| 167 info.addMember(m_childRuleCSSOMWrappers, "childRuleCSSOMWrappers"); | 168 info.addMember(m_childRuleCSSOMWrappers, "childRuleCSSOMWrappers"); |
| 168 info.addMember(m_ruleListCSSOMWrapper, "ruleListCSSOMWrapper"); | 169 info.addMember(m_ruleListCSSOMWrapper, "ruleListCSSOMWrapper"); |
| 169 } | 170 } |
| 170 | 171 |
| 171 } // namespace WebCore | 172 } // namespace WebCore |
| OLD | NEW |