Chromium Code Reviews| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 | 43 |
| 44 CSSGroupingRule::CSSGroupingRule(StyleRuleGroup* groupRule, CSSStyleSheet* paren t) | 44 CSSGroupingRule::CSSGroupingRule(StyleRuleGroup* groupRule, CSSStyleSheet* paren t) |
| 45 : CSSRule(parent) | 45 : CSSRule(parent) |
| 46 , m_groupRule(groupRule) | 46 , m_groupRule(groupRule) |
| 47 , m_childRuleCSSOMWrappers(groupRule->childRules().size()) | 47 , m_childRuleCSSOMWrappers(groupRule->childRules().size()) |
| 48 { | 48 { |
| 49 } | 49 } |
| 50 | 50 |
| 51 CSSGroupingRule::~CSSGroupingRule() | 51 CSSGroupingRule::~CSSGroupingRule() |
| 52 { | 52 { |
| 53 #if !ENABLE(OILPAN) | |
|
Mads Ager (chromium)
2014/03/04 07:24:04
We need the same change in CSSKeyframesRule.cpp.
| |
| 53 ASSERT(m_childRuleCSSOMWrappers.size() == m_groupRule->childRules().size()); | 54 ASSERT(m_childRuleCSSOMWrappers.size() == m_groupRule->childRules().size()); |
| 54 #if !ENABLE(OILPAN) | |
| 55 for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { | 55 for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { |
| 56 if (m_childRuleCSSOMWrappers[i]) | 56 if (m_childRuleCSSOMWrappers[i]) |
| 57 m_childRuleCSSOMWrappers[i]->setParentRule(0); | 57 m_childRuleCSSOMWrappers[i]->setParentRule(0); |
| 58 } | 58 } |
| 59 #endif | 59 #endif |
| 60 } | 60 } |
| 61 | 61 |
| 62 unsigned CSSGroupingRule::insertRule(const String& ruleString, unsigned index, E xceptionState& exceptionState) | 62 unsigned CSSGroupingRule::insertRule(const String& ruleString, unsigned index, E xceptionState& exceptionState) |
| 63 { | 63 { |
| 64 ASSERT(m_childRuleCSSOMWrappers.size() == m_groupRule->childRules().size()); | 64 ASSERT(m_childRuleCSSOMWrappers.size() == m_groupRule->childRules().size()); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 void CSSGroupingRule::trace(Visitor* visitor) | 156 void CSSGroupingRule::trace(Visitor* visitor) |
| 157 { | 157 { |
| 158 CSSRule::trace(visitor); | 158 CSSRule::trace(visitor); |
| 159 #if ENABLE(OILPAN) | 159 #if ENABLE(OILPAN) |
| 160 visitor->trace(m_childRuleCSSOMWrappers); | 160 visitor->trace(m_childRuleCSSOMWrappers); |
| 161 #endif | 161 #endif |
| 162 visitor->trace(m_groupRule); | 162 visitor->trace(m_groupRule); |
| 163 } | 163 } |
| 164 | 164 |
| 165 } // namespace WebCore | 165 } // namespace WebCore |
| OLD | NEW |