| Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBackgroundComponent.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBackgroundComponent.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBackgroundComponent.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a8d49df518d455a885b4ab4e7b70c8af4c73057c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBackgroundComponent.cpp
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "core/css/properties/CSSPropertyAPIBackgroundComponent.h"
|
| +
|
| +#include "core/css/parser/CSSPropertyParserHelpers.h"
|
| +#include "core/css/properties/CSSPropertyBackgroundComponentUtils.h"
|
| +
|
| +namespace blink {
|
| +
|
| +const CSSValue* CSSPropertyAPIBackgroundComponent::parseSingleValue(
|
| + CSSPropertyID unresolvedProperty,
|
| + CSSParserTokenRange& range,
|
| + const CSSParserContext* context) {
|
| + CSSValue* result = nullptr;
|
| + do {
|
| + CSSValue* value =
|
| + CSSPropertyBackgroundComponentUtils::consumeBackgroundComponent(
|
| + unresolvedProperty, range, context);
|
| + if (!value)
|
| + return nullptr;
|
| + CSSPropertyBackgroundComponentUtils::addBackgroundValue(result, value);
|
| + } while (CSSPropertyParserHelpers::consumeCommaIncludingWhitespace(range));
|
| + return result;
|
| +}
|
| +
|
| +} // namespace blink
|
|
|