7#ifndef CORE_FXCRT_CSS_CFX_CSSRULECOLLECTION_H_
8#define CORE_FXCRT_CSS_CFX_CSSRULECOLLECTION_H_
14#include "core/fxcrt/unowned_ptr.h"
15#include "core/fxcrt/widestring.h"
39 const WideString& tagname)
const;
44 std::map<uint32_t, std::vector<std::unique_ptr<Data>>> m_TagRules;
static const Property * GetPropertyByEnum(CFX_CSSProperty property)
static const Color * GetColorByName(WideStringView wsName)
static const LengthUnit * GetLengthUnitByName(WideStringView wsName)
static const Property * GetPropertyByName(WideStringView name)
static const PropertyValue * GetPropertyValueByName(WideStringView wsName)
CFX_CSSNumberValue(Unit unit, float value)
float Apply(float percentBase) const
~CFX_CSSNumberValue() override
UnownedPtr< CFX_CSSDeclaration > const pDeclaration
Data(CFX_CSSSelector *pSel, CFX_CSSDeclaration *pDecl)
UnownedPtr< CFX_CSSSelector > const pSelector
const std::vector< std::unique_ptr< Data > > * GetTagRuleData(const WideString &tagname) const
void SetRulesFromSheet(const CFX_CSSStyleSheet *sheet)
void SetUAStyleSheet(std::unique_ptr< CFX_CSSStyleSheet > pSheet)
void ComputeStyle(const std::vector< const CFX_CSSDeclaration * > &declArray, const WideString &styleString, const WideString &alignString, CFX_CSSComputedStyle *pDestStyle)
void SetDefaultFontSize(float fFontSize)
RetainPtr< CFX_CSSComputedStyle > CreateComputedStyle(const CFX_CSSComputedStyle *pParentStyle)
std::vector< const CFX_CSSDeclaration * > MatchDeclarations(const WideString &tagname)
CFX_CSSNumberValue::Unit type
CFX_CSSPropertyValue eName
CFX_CSSValueTypeMask dwTypes