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> | |
43 | 42 |
44 namespace WebCore { | 43 namespace WebCore { |
45 | 44 |
46 CSSGroupingRule::CSSGroupingRule(StyleRuleGroup* groupRule, CSSStyleSheet* paren
t) | 45 CSSGroupingRule::CSSGroupingRule(StyleRuleGroup* groupRule, CSSStyleSheet* paren
t) |
47 : CSSRule(parent) | 46 : CSSRule(parent) |
48 , m_groupRule(groupRule) | 47 , m_groupRule(groupRule) |
49 , m_childRuleCSSOMWrappers(groupRule->childRules().size()) | 48 , m_childRuleCSSOMWrappers(groupRule->childRules().size()) |
50 { | 49 { |
51 } | 50 } |
52 | 51 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 void CSSGroupingRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons
t | 162 void CSSGroupingRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons
t |
164 { | 163 { |
165 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 164 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
166 CSSRule::reportMemoryUsage(memoryObjectInfo); | 165 CSSRule::reportMemoryUsage(memoryObjectInfo); |
167 info.addMember(m_groupRule, "groupRule"); | 166 info.addMember(m_groupRule, "groupRule"); |
168 info.addMember(m_childRuleCSSOMWrappers, "childRuleCSSOMWrappers"); | 167 info.addMember(m_childRuleCSSOMWrappers, "childRuleCSSOMWrappers"); |
169 info.addMember(m_ruleListCSSOMWrapper, "ruleListCSSOMWrapper"); | 168 info.addMember(m_ruleListCSSOMWrapper, "ruleListCSSOMWrapper"); |
170 } | 169 } |
171 | 170 |
172 } // namespace WebCore | 171 } // namespace WebCore |
OLD | NEW |