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

Unified Diff: third_party/WebKit/WebCore/css/CSSMutableStyleDeclaration.cpp

Issue 20076: WebKit merge 40500:40539 [WebKit side] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/WebCore/css/CSSMutableStyleDeclaration.cpp
===================================================================
--- third_party/WebKit/WebCore/css/CSSMutableStyleDeclaration.cpp (revision 9118)
+++ third_party/WebKit/WebCore/css/CSSMutableStyleDeclaration.cpp (working copy)
@@ -81,7 +81,7 @@
, m_iteratorCount(0)
#endif
{
- m_properties.reserveCapacity(numProperties);
+ m_properties.reserveInitialCapacity(numProperties);
for (int i = 0; i < numProperties; ++i) {
ASSERT(properties[i]);
m_properties.append(*properties[i]);
@@ -702,7 +702,7 @@
toRemove.add(set[i]);
Vector<CSSProperty> newProperties;
- newProperties.reserveCapacity(m_properties.size());
+ newProperties.reserveInitialCapacity(m_properties.size());
unsigned size = m_properties.size();
for (unsigned n = 0; n < size; ++n) {
« no previous file with comments | « third_party/WebKit/WebCore/bridge/qt/qt_runtime.cpp ('k') | third_party/WebKit/WebCore/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698