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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 " is greated than the length of the rule list."); | 107 " is greated than the length of the rule list."); |
108 return; | 108 return; |
109 } | 109 } |
110 | 110 |
111 CSSStyleSheet::RuleMutationScope mutationScope(this); | 111 CSSStyleSheet::RuleMutationScope mutationScope(this); |
112 | 112 |
113 m_groupRule->wrapperRemoveRule(index); | 113 m_groupRule->wrapperRemoveRule(index); |
114 | 114 |
115 if (m_childRuleCSSOMWrappers[index]) | 115 if (m_childRuleCSSOMWrappers[index]) |
116 m_childRuleCSSOMWrappers[index]->setParentRule(0); | 116 m_childRuleCSSOMWrappers[index]->setParentRule(0); |
117 m_childRuleCSSOMWrappers.remove(index); | 117 m_childRuleCSSOMWrappers.erase(index); |
118 } | 118 } |
119 | 119 |
120 void CSSGroupingRule::appendCSSTextForItems(StringBuilder& result) const { | 120 void CSSGroupingRule::appendCSSTextForItems(StringBuilder& result) const { |
121 unsigned size = length(); | 121 unsigned size = length(); |
122 for (unsigned i = 0; i < size; ++i) { | 122 for (unsigned i = 0; i < size; ++i) { |
123 result.append(" "); | 123 result.append(" "); |
124 result.append(item(i)->cssText()); | 124 result.append(item(i)->cssText()); |
125 result.append('\n'); | 125 result.append('\n'); |
126 } | 126 } |
127 } | 127 } |
(...skipping 30 matching lines...) Expand all Loading... |
158 } | 158 } |
159 | 159 |
160 DEFINE_TRACE(CSSGroupingRule) { | 160 DEFINE_TRACE(CSSGroupingRule) { |
161 CSSRule::trace(visitor); | 161 CSSRule::trace(visitor); |
162 visitor->trace(m_childRuleCSSOMWrappers); | 162 visitor->trace(m_childRuleCSSOMWrappers); |
163 visitor->trace(m_groupRule); | 163 visitor->trace(m_groupRule); |
164 visitor->trace(m_ruleListCSSOMWrapper); | 164 visitor->trace(m_ruleListCSSOMWrapper); |
165 } | 165 } |
166 | 166 |
167 } // namespace blink | 167 } // namespace blink |
OLD | NEW |