Refactored out need to pass CSSPropertyID in background list parsing.
Rewritten from https://codereview.chromium.org/2897833004, this version does not use the memory optimisation which has since been removed from the code. This patch - Split property specific parsing logic for background components into the case statements in CSSPropertyParser::ParseSingleValue, using the general ConsumeCommaSeparatedList template instead of ConsumeCommaSeparatedBackgroundComponent so that CSSPropertyID no longer needs to be passed. - Delted ConsumeCommaSeparatedBackgroundComponent (now unused). NB - ConsumeBackgroundComponent is still currently used in ConsumeBackgroundShorthand and so cannot be deleted. - Some bool literals are passed in this patch, violating the style guide. These arguments were not introduced in this patch and so will not be fixed in this patch. They will be converted to enums when the APIs are implemented. Bug: 668012 Change-Id: Ie364b810e10f0df3b3053e337d47fd60118cc985 Reviewed-on: https://chromium-review.googlesource.com/575253Reviewed-by:Renée Wright <rjwright@chromium.org> Reviewed-by:
Darren Shen <shend@chromium.org> Commit-Queue: Bugs Nash <bugsnash@chromium.org> Cr-Commit-Position: refs/heads/master@{#488613}
Showing
Please register or sign in to comment