OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 : StyleRuleBase(groupRule), m_childRules(groupRule.m_childRules.size()) { | 322 : StyleRuleBase(groupRule), m_childRules(groupRule.m_childRules.size()) { |
323 for (unsigned i = 0; i < m_childRules.size(); ++i) | 323 for (unsigned i = 0; i < m_childRules.size(); ++i) |
324 m_childRules[i] = groupRule.m_childRules[i]->copy(); | 324 m_childRules[i] = groupRule.m_childRules[i]->copy(); |
325 } | 325 } |
326 | 326 |
327 void StyleRuleGroup::wrapperInsertRule(unsigned index, StyleRuleBase* rule) { | 327 void StyleRuleGroup::wrapperInsertRule(unsigned index, StyleRuleBase* rule) { |
328 m_childRules.insert(index, rule); | 328 m_childRules.insert(index, rule); |
329 } | 329 } |
330 | 330 |
331 void StyleRuleGroup::wrapperRemoveRule(unsigned index) { | 331 void StyleRuleGroup::wrapperRemoveRule(unsigned index) { |
332 m_childRules.remove(index); | 332 m_childRules.erase(index); |
333 } | 333 } |
334 | 334 |
335 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleGroup) { | 335 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleGroup) { |
336 visitor->trace(m_childRules); | 336 visitor->trace(m_childRules); |
337 StyleRuleBase::traceAfterDispatch(visitor); | 337 StyleRuleBase::traceAfterDispatch(visitor); |
338 } | 338 } |
339 | 339 |
340 StyleRuleCondition::StyleRuleCondition( | 340 StyleRuleCondition::StyleRuleCondition( |
341 RuleType type, | 341 RuleType type, |
342 HeapVector<Member<StyleRuleBase>>& adoptRules) | 342 HeapVector<Member<StyleRuleBase>>& adoptRules) |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 m_properties = m_properties->mutableCopy(); | 392 m_properties = m_properties->mutableCopy(); |
393 return *toMutableStylePropertySet(m_properties); | 393 return *toMutableStylePropertySet(m_properties); |
394 } | 394 } |
395 | 395 |
396 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleViewport) { | 396 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleViewport) { |
397 visitor->trace(m_properties); | 397 visitor->trace(m_properties); |
398 StyleRuleBase::traceAfterDispatch(visitor); | 398 StyleRuleBase::traceAfterDispatch(visitor); |
399 } | 399 } |
400 | 400 |
401 } // namespace blink | 401 } // namespace blink |
OLD | NEW |