From 6b70adc33054f8aee8c54d0f460458a9df11b8a5 Mon Sep 17 00:00:00 2001 From: Russell Brenner Date: Thu, 18 Nov 2010 17:33:13 -0800 Subject: Merge WebKit at r72274: Initial merge by git. Change-Id: Ie51f0b4a16da82942bd516dce59cfb79ebbe25fb --- WebCore/css/CSSStyleDeclaration.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'WebCore/css/CSSStyleDeclaration.cpp') 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 CSSStyleDeclaration::copyPropertiesInSet( { Vector list; list.reserveInitialCapacity(length); - unsigned variableDependentValueCount = 0; for (unsigned i = 0; i < length; i++) { RefPtr 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 -- cgit v1.1