Title: [208093] trunk/Source/WebCore
- Revision
- 208093
- Author
- [email protected]
- Date
- 2016-10-28 18:42:31 -0700 (Fri, 28 Oct 2016)
Log Message
[CSS Parser] Allow @font-face src descriptor's format function to contain identifiers
https://bugs.webkit.org/show_bug.cgi?id=164169
Reviewed by Simon Fraser.
* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeFontFaceSrcURI):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (208092 => 208093)
--- trunk/Source/WebCore/ChangeLog 2016-10-29 01:18:45 UTC (rev 208092)
+++ trunk/Source/WebCore/ChangeLog 2016-10-29 01:42:31 UTC (rev 208093)
@@ -1,3 +1,13 @@
+2016-10-28 Dave Hyatt <[email protected]>
+
+ [CSS Parser] Allow @font-face src descriptor's format function to contain identifiers
+ https://bugs.webkit.org/show_bug.cgi?id=164169
+
+ Reviewed by Simon Fraser.
+
+ * css/parser/CSSPropertyParser.cpp:
+ (WebCore::consumeFontFaceSrcURI):
+
2016-10-28 Jer Noble <[email protected]>
WebAudio does not resume when moving from background to foreground tab.
Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (208092 => 208093)
--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-10-29 01:18:45 UTC (rev 208092)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-10-29 01:42:31 UTC (rev 208093)
@@ -3632,9 +3632,12 @@
// FIXME: https://drafts.csswg.org/css-fonts says that format() contains a comma-separated list of strings,
// but CSSFontFaceSrcValue stores only one format. Allowing one format for now.
+ // FIXME: We're allowing the format to be an identifier as well as a string, because the old
+ // parser did. It's not clear if we need to continue to support this behavior, but we have lots of
+ // layout tests that rely on it.
CSSParserTokenRange args = consumeFunction(range);
const CSSParserToken& arg = args.consumeIncludingWhitespace();
- if ((arg.type() != StringToken) || !args.atEnd())
+ if ((arg.type() != StringToken && arg.type() != IdentToken) || !args.atEnd())
return nullptr;
uriValue->setFormat(arg.value().toString());
return uriValue;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes