Index: Source/WebCore/css/StylePropertySet.cpp |
=================================================================== |
--- Source/WebCore/css/StylePropertySet.cpp (revision 114992) |
+++ Source/WebCore/css/StylePropertySet.cpp (working copy) |
@@ -382,12 +382,13 @@ |
for (unsigned i = 0; i < longhand.length(); ++i) { |
if (!isPropertyImplicit(longhand.properties()[i])) { |
RefPtr<CSSValue> value = getPropertyCSSValue(longhand.properties()[i]); |
- // FIXME: provide default value if !value or value is initial value |
- if (value && !value->isInitialValue()) { |
- if (!res.isNull()) |
- res += " "; |
- res += value->cssText(); |
- } |
+ if (value && value->isInitialValue()) |
+ continue; |
+ if (!value) |
+ return String(); |
+ if (!res.isNull()) |
+ res += " "; |
+ res += value->cssText(); |
} |
} |
return res; |