Index: Source/core/css/CSSPrimitiveValue.cpp |
diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp |
index 5126b62650dcd6e86b08fd183d2868e4fc3cf55e..a3770d783ccbb004996cc913dd122820e1b2b990 100644 |
--- a/Source/core/css/CSSPrimitiveValue.cpp |
+++ b/Source/core/css/CSSPrimitiveValue.cpp |
@@ -595,6 +595,8 @@ template<> double CSSPrimitiveValue::computeLength(const CSSToLengthConversionDa |
double CSSPrimitiveValue::computeLengthDouble(const CSSToLengthConversionData& conversionData) |
{ |
+ // The logic in this function is duplicated in MediaValues::computeLength for performance reasons. |
eseidel
2014/04/15 18:47:03
"for performance reasons" doesn't give the reader
|
+ // Changes in logic here should be duplicated there as well. |
if (m_primitiveUnitType == CSS_CALC) |
return m_value.calc->computeLengthPx(conversionData); |