7#ifndef CORE_FXCRT_CSS_CFX_CSSPROPERTYHOLDER_H_
8#define CORE_FXCRT_CSS_CFX_CSSPROPERTYHOLDER_H_
10#include "core/fxcrt/css/cfx_css.h"
11#include "core/fxcrt/css/cfx_cssvalue.h"
12#include "core/fxcrt/retain_ptr.h"
@ CFX_CSSVALUETYPE_Shorthand
@ CFX_CSSVALUETYPE_Primitive
@ CFX_CSSVALUETYPE_MaybeEnum
@ CFX_CSSVALUETYPE_MaybeString
@ CFX_CSSVALUETYPE_MaybeColor
@ CFX_CSSVALUETYPE_MaybeNumber
static const Color * GetColorByName(WideStringView wsName)
static const LengthUnit * GetLengthUnitByName(WideStringView wsName)
static const PropertyValue * GetPropertyValueByName(WideStringView wsName)
const_prop_iterator end() const
void AddProperty(const CFX_CSSData::Property *property, WideStringView value)
const_prop_iterator begin() const
static std::optional< WideStringView > ParseCSSString(WideStringView value)
void AddProperty(const WideString &prop, const WideString &value)
size_t PropertyCountForTesting() const
const_custom_iterator custom_begin() const
std::optional< FX_ARGB > ParseColorForTest(WideStringView value)
const_custom_iterator custom_end() const
static std::optional< FX_ARGB > ParseCSSColor(WideStringView value)
RetainPtr< CFX_CSSValue > GetProperty(CFX_CSSProperty eProperty, bool *bImportant) const
CFX_CSSPropertyValue Value() const
~CFX_CSSEnumValue() override
CFX_CSSEnumValue(CFX_CSSPropertyValue value)
RetainPtr< CFX_CSSValue > pValue
CFX_CSSProperty eProperty
std::optional< Result > NextValue()
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
int FXSYS_HexCharToInt(char c)
#define NOTREACHED_NORETURN()
fxcrt::WideStringView WideStringView
CFX_CSSPropertyValue eName
fxcrt::WideString WideString