Move font-family check to CSSPropertyParser
commitdb3a25f753e91b6b5e860de4138261df3277ad44
authorrob.buis@samsung.com <rob.buis@samsung.com>
Fri, 1 May 2015 16:28:16 +0000 (1 16:28 +0000)
committerrob.buis@samsung.com <rob.buis@samsung.com>
Fri, 1 May 2015 16:28:16 +0000 (1 16:28 +0000)
treefcd18f9d81d7167fa6d6a600b1c48a506bd1f11b
parentd30c57990b75c1205ced1486eeba23e4e27562d7
Move font-family check to CSSPropertyParser

Move font-family check to CSSPropertyParser since when parsing @font-face
any font-family with more than one family-name is invalid. So in that case
drop that font-family declaration but allow any valid declarations in the
font-face rule. Add a test for this new behavior.

Behavior matches Firefox.

BUG=404023

Review URL: https://codereview.chromium.org/1116593003

git-svn-id: svn://svn.chromium.org/blink/trunk@194811 bbb929c8-8fbe-4397-9dbb-9b2b20218538
third_party/WebKit/LayoutTests/fast/css/fontface-single-font-family-expected.txt [new file with mode: 0644]
third_party/WebKit/LayoutTests/fast/css/fontface-single-font-family.html [new file with mode: 0644]
third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp