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

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

Issue 2566403003: Migrate WTF::Vector::append() to ::push_back() [part 3 of N] (Closed)
Patch Set: Created 4 years 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 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public 10 * modify it under the terms of the GNU Lesser General Public
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 return copyPropertiesInSet(computableProperties()); 471 return copyPropertiesInSet(computableProperties());
472 } 472 }
473 473
474 MutableStylePropertySet* CSSComputedStyleDeclaration::copyPropertiesInSet( 474 MutableStylePropertySet* CSSComputedStyleDeclaration::copyPropertiesInSet(
475 const Vector<CSSPropertyID>& properties) const { 475 const Vector<CSSPropertyID>& properties) const {
476 HeapVector<CSSProperty, 256> list; 476 HeapVector<CSSProperty, 256> list;
477 list.reserveInitialCapacity(properties.size()); 477 list.reserveInitialCapacity(properties.size());
478 for (unsigned i = 0; i < properties.size(); ++i) { 478 for (unsigned i = 0; i < properties.size(); ++i) {
479 const CSSValue* value = getPropertyCSSValue(properties[i]); 479 const CSSValue* value = getPropertyCSSValue(properties[i]);
480 if (value) 480 if (value)
481 list.append(CSSProperty(properties[i], *value, false)); 481 list.push_back(CSSProperty(properties[i], *value, false));
482 } 482 }
483 return MutableStylePropertySet::create(list.data(), list.size()); 483 return MutableStylePropertySet::create(list.data(), list.size());
484 } 484 }
485 485
486 CSSRule* CSSComputedStyleDeclaration::parentRule() const { 486 CSSRule* CSSComputedStyleDeclaration::parentRule() const {
487 return nullptr; 487 return nullptr;
488 } 488 }
489 489
490 String CSSComputedStyleDeclaration::getPropertyValue( 490 String CSSComputedStyleDeclaration::getPropertyValue(
491 const String& propertyName) { 491 const String& propertyName) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 "These styles are computed, and therefore the '" + 562 "These styles are computed, and therefore the '" +
563 getPropertyNameString(id) + "' property is read-only."); 563 getPropertyNameString(id) + "' property is read-only.");
564 } 564 }
565 565
566 DEFINE_TRACE(CSSComputedStyleDeclaration) { 566 DEFINE_TRACE(CSSComputedStyleDeclaration) {
567 visitor->trace(m_node); 567 visitor->trace(m_node);
568 CSSStyleDeclaration::trace(visitor); 568 CSSStyleDeclaration::trace(visitor);
569 } 569 }
570 570
571 } // namespace blink 571 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSBasicShapeValues.cpp ('k') | third_party/WebKit/Source/core/css/CSSGradientValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698