DescriptionImplemented the CSSPropertyAPI for the font-family property.
Part of Project Ribbon, separating the parsing logic for CSS
properties from the parser into an API.
This patch
- added CSSPropertyAPIFontFamily.cpp, which implements CSSPropertyAPI.h
- added parseSingleValue method to the CSSPropertyAPIFontFamily API
- removed CSSPropertyFontFamily from the switch
statement in parseSingleValue, and calls the API instead.
- added api implementation details to CSSProperties.json5, indicating
that CSSPropertyAPIFontFamily.h is generated.
A function pointer to the parseSingleValue function from the API for
the font-family property is stored in a CSSPropertyDescriptor, and is
called from CSSPropertyParser.
Originally authored in patch 2641123002 by sashab@chromium.org
BUG=668012
Review-Url: https://codereview.chromium.org/2731953004
Cr-Commit-Position: refs/heads/master@{#455988}
Committed: https://chromium.googlesource.com/chromium/src/+/b1575e90e984d8aea66570d07b7126034e9a7b8c
Patch Set 1 #
Total comments: 1
Patch Set 2 : Rebase #
Depends on Patchset: Messages
Total messages: 29 (19 generated)
|