summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSStyleDeclaration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/css/CSSStyleDeclaration.cpp')
-rw-r--r--WebCore/css/CSSStyleDeclaration.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/WebCore/css/CSSStyleDeclaration.cpp b/WebCore/css/CSSStyleDeclaration.cpp
index 996d573..422dd0d 100644
--- a/WebCore/css/CSSStyleDeclaration.cpp
+++ b/WebCore/css/CSSStyleDeclaration.cpp
@@ -148,16 +148,12 @@ PassRefPtr<CSSMutableStyleDeclaration> CSSStyleDeclaration::copyPropertiesInSet(
{
Vector<CSSProperty> list;
list.reserveInitialCapacity(length);
- unsigned variableDependentValueCount = 0;
for (unsigned i = 0; i < length; i++) {
RefPtr<CSSValue> value = getPropertyCSSValue(set[i]);
- if (value) {
- if (value->isVariableDependentValue())
- variableDependentValueCount++;
+ if (value)
list.append(CSSProperty(set[i], value.release(), false));
- }
}
- return CSSMutableStyleDeclaration::create(list, variableDependentValueCount);
+ return CSSMutableStyleDeclaration::create(list);
}
} // namespace WebCore