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

Unified Diff: Source/core/animation/InterpolableValue.h

Issue 216173006: Oilpan: Initialize the size of InterporableValue::m_values in the constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/InterpolableValue.h
diff --git a/Source/core/animation/InterpolableValue.h b/Source/core/animation/InterpolableValue.h
index c035a3bdb37133badbc30fbbca656d5a29d9abd7..32df14f3e6e056880d0f50fe11107eaf1585b59f 100644
--- a/Source/core/animation/InterpolableValue.h
+++ b/Source/core/animation/InterpolableValue.h
@@ -116,16 +116,14 @@ private:
virtual PassOwnPtrWillBeRawPtr<InterpolableValue> interpolate(const InterpolableValue &other, const double progress) const OVERRIDE FINAL;
explicit InterpolableList(size_t size)
: m_size(size)
+ , m_values(m_size)
{
- m_values.reserveCapacity(m_size);
- m_values.resize(m_size);
}
InterpolableList(const InterpolableList& other)
: m_size(other.m_size)
+ , m_values(m_size)
{
- m_values.reserveCapacity(m_size);
- m_values.resize(m_size);
for (size_t i = 0; i < m_size; i++)
set(i, other.m_values[i]->clone());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698