Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: third_party/WebKit/Source/core/css/StyleRule.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StylePropertySet.cpp ('k') | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698