13 lines
1010 B
Diff
13 lines
1010 B
Diff
diff -up kdelibs-4.7.3/khtml/css/cssparser.cpp.orig kdelibs-4.7.3/khtml/css/cssparser.cpp
|
|
--- kdelibs-4.7.3/khtml/css/cssparser.cpp.orig 2011-11-07 19:14:53.000000000 +0100
|
|
+++ kdelibs-4.7.3/khtml/css/cssparser.cpp 2011-11-07 19:15:21.000000000 +0100
|
|
@@ -2283,7 +2283,7 @@ bool CSSParser::parseFontFaceSrc()
|
|
Value* a = args->current();
|
|
uriValue = 0;
|
|
parsedValue = new CSSFontFaceSrcValueImpl( domString( a->string ), true /*local src*/ );
|
|
- } else if (!strcasecmp(domString(val->function->name), "format(") && allowFormat && uriValue) {
|
|
+ } else if (!strcasecmp(domString(val->function->name), "format(") && allowFormat && uriValue && (args->current()->unit == CSSPrimitiveValue::CSS_STRING || args->current()->unit == CSSPrimitiveValue::CSS_IDENT)) {
|
|
expectComma = true;
|
|
allowFormat = false;
|
|
uriValue->setFormat( domString( args->current()->string ) );
|