Index: Source/core/css/CSSValueList.cpp |
diff --git a/Source/core/css/CSSValueList.cpp b/Source/core/css/CSSValueList.cpp |
index 26ab9c05432447a023a5890bea2b28af5d2ad7ae..1a18bc93c44fdb10029d90f6337a070cbb81cfc7 100644 |
--- a/Source/core/css/CSSValueList.cpp |
+++ b/Source/core/css/CSSValueList.cpp |
@@ -127,7 +127,9 @@ String CSSValueList::customCssText(CssTextFormattingFlags formattingFlag) const |
bool CSSValueList::equals(const CSSValueList& other) const |
{ |
- return m_valueListSeparator == other.m_valueListSeparator && compareCSSValueVector<CSSValue>(m_values, other.m_values); |
+ // FIXME: the explicit Vector conversion copies into a temporary and is |
+ // wasteful. |
+ return m_valueListSeparator == other.m_valueListSeparator && compareCSSValueVector<CSSValue>(Vector<RefPtr<CSSValue> >(m_values), Vector<RefPtr<CSSValue> >(other.m_values)); |
} |
bool CSSValueList::equals(const CSSValue& other) const |