<font face> doesn't support plus character in font family names.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 May 2015 04:13:54 +0000 (04:13 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 May 2015 04:13:54 +0000 (04:13 +0000)
commit58cff2ebd573696f7f77b19b34ccf7362f35853d
treed50db145650eab9c48fc551d8def1b90764c3f83
parent4c496cad077ce65d5f9b999e91fcb3c8eea003bb
<font face> doesn't support plus character in font family names.
<https://webkit.org/b/145400>
<rdar://problem/21097484>

Reviewed by Darin Adler.

Source/WebCore:

Turn CSSParser::parseFontFaceValue() into a fast-path parser for
<font face> attributes.
Going through the full CSS parser was hurting us here, as it would
misunderstand unquoted family names and choke on e.g '+'.

Test: fast/dom/HTMLFontElement/face-attribute.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parseFontFaceValue):

LayoutTests:

Add a little test for <font face> attributes to cover this problem
and some other interesting cases with spaces and commas.

* fast/dom/HTMLFontElement/face-attribute-expected.txt: Added.
* fast/dom/HTMLFontElement/face-attribute.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLFontElement/face-attribute-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLFontElement/face-attribute.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp