7#ifndef CORE_FXCRT_CSS_CFX_CSSSELECTOR_H_
8#define CORE_FXCRT_CSS_CFX_CSSSELECTOR_H_
12#include "core/fxcrt/widestring.h"
18 CFX_CSSSelector(WideStringView str, std::unique_ptr<CFX_CSSSelector> next);
26 void set_is_descendant() { is_descendant_ =
true; }
28 bool is_descendant_ =
false;
29 const uint32_t name_hash_;
30 const std::unique_ptr<CFX_CSSSelector> next_;
Data(CFX_CSSSelector *pSel, CFX_CSSDeclaration *pDecl)
const std::vector< std::unique_ptr< Data > > * GetTagRuleData(const WideString &tagname) const
void SetRulesFromSheet(const CFX_CSSStyleSheet *sheet)
bool is_descendant() const
static std::unique_ptr< CFX_CSSSelector > FromString(WideStringView str)
uint32_t name_hash() const
CFX_CSSSelector(WideStringView str, std::unique_ptr< CFX_CSSSelector > next)
const CFX_CSSSelector * next_selector() const
CFX_CSSDeclaration * GetDeclaration()