Title: [208076] trunk/Source/WebCore
Revision
208076
Author
[email protected]
Date
2016-10-28 15:19:11 -0700 (Fri, 28 Oct 2016)

Log Message

[CSS Parser] Fix font-family parsing inside @font-face
https://bugs.webkit.org/show_bug.cgi?id=164155

Reviewed by Simon Fraser.

* css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::parseFontFaceDescriptor):
Use the full font-family parsing that returns a CSSValueList,
since we can handle multiple families.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (208075 => 208076)


--- trunk/Source/WebCore/ChangeLog	2016-10-28 22:10:35 UTC (rev 208075)
+++ trunk/Source/WebCore/ChangeLog	2016-10-28 22:19:11 UTC (rev 208076)
@@ -1,3 +1,15 @@
+2016-10-28  Dave Hyatt  <[email protected]>
+
+        [CSS Parser] Fix font-family parsing inside @font-face
+        https://bugs.webkit.org/show_bug.cgi?id=164155
+
+        Reviewed by Simon Fraser.
+
+        * css/parser/CSSPropertyParser.cpp:
+        (WebCore::CSSPropertyParser::parseFontFaceDescriptor):
+        Use the full font-family parsing that returns a CSSValueList,
+        since we can handle multiple families.
+
 2016-10-28  Per Arne Vollan  <[email protected]>
 
         [Win][Direct2D] Implement ImageBufferData::putData.

Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (208075 => 208076)


--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2016-10-28 22:10:35 UTC (rev 208075)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2016-10-28 22:19:11 UTC (rev 208076)
@@ -3679,9 +3679,7 @@
     RefPtr<CSSValue> parsedValue;
     switch (propId) {
     case CSSPropertyFontFamily:
-        if (consumeGenericFamily(m_range))
-            return false;
-        parsedValue = consumeFamilyName(m_range);
+        parsedValue = consumeFontFamily(m_range);
         break;
     case CSSPropertySrc: // This is a list of urls or local references.
         parsedValue = consumeFontFaceSrc(m_range, m_context);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to