| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 if (m_childRuleCSSOMWrappers[index]) | 103 if (m_childRuleCSSOMWrappers[index]) |
| 104 m_childRuleCSSOMWrappers[index]->setParentRule(0); | 104 m_childRuleCSSOMWrappers[index]->setParentRule(0); |
| 105 m_childRuleCSSOMWrappers.remove(index); | 105 m_childRuleCSSOMWrappers.remove(index); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void CSSGroupingRule::appendCSSTextForItems(StringBuilder& result) const | 108 void CSSGroupingRule::appendCSSTextForItems(StringBuilder& result) const |
| 109 { | 109 { |
| 110 unsigned size = length(); | 110 unsigned size = length(); |
| 111 for (unsigned i = 0; i < size; ++i) { | 111 for (unsigned i = 0; i < size; ++i) { |
| 112 result.appendLiteral(" "); | 112 result.append(" "); |
| 113 result.append(item(i)->cssText()); | 113 result.append(item(i)->cssText()); |
| 114 result.append('\n'); | 114 result.append('\n'); |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 unsigned CSSGroupingRule::length() const | 118 unsigned CSSGroupingRule::length() const |
| 119 { | 119 { |
| 120 return m_groupRule->childRules().size(); | 120 return m_groupRule->childRules().size(); |
| 121 } | 121 } |
| 122 | 122 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 150 | 150 |
| 151 DEFINE_TRACE(CSSGroupingRule) | 151 DEFINE_TRACE(CSSGroupingRule) |
| 152 { | 152 { |
| 153 CSSRule::trace(visitor); | 153 CSSRule::trace(visitor); |
| 154 visitor->trace(m_childRuleCSSOMWrappers); | 154 visitor->trace(m_childRuleCSSOMWrappers); |
| 155 visitor->trace(m_groupRule); | 155 visitor->trace(m_groupRule); |
| 156 visitor->trace(m_ruleListCSSOMWrapper); | 156 visitor->trace(m_ruleListCSSOMWrapper); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace blink | 159 } // namespace blink |
| OLD | NEW |