| // 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. |
| |
| #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_STYLE_VALUE_FACTORY_H_ |
| #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_STYLE_VALUE_FACTORY_H_ |
| |
| #include "third_party/blink/renderer/core/css/cssom/css_style_value.h" |
| #include "third_party/blink/renderer/core/css_property_names.h" |
| #include "third_party/blink/renderer/platform/wtf/allocator.h" |
| |
| namespace blink { |
| |
| class CSSParserContext; |
| class CSSValue; |
| class PropertyRegistration; |
| |
| class CORE_EXPORT StyleValueFactory { |
| STATIC_ONLY(StyleValueFactory); |
| |
| public: |
| static CSSStyleValueVector FromString(CSSPropertyID, |
| const PropertyRegistration*, |
| const String&, |
| const CSSParserContext*); |
| static CSSStyleValue* CssValueToStyleValue(CSSPropertyID, const CSSValue&); |
| static CSSStyleValueVector CssValueToStyleValueVector(CSSPropertyID, |
| const CSSValue&); |
| // If you don't have complex CSS properties, use this one. |
| static CSSStyleValueVector CssValueToStyleValueVector(const CSSValue&); |
| }; |
| |
| } // namespace blink |
| |
| #endif |