Home
last modified time | relevance | path

Searched refs:styleKey (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/
H A Dapp_style_sheet.cpp171 jerry_value_t styleKey = jerry_get_property_by_index(styleKeys, index); in InitSelectors() local
172 jerry_value_t styleValue = jerry_get_property(selectorsObj, styleKey); in InitSelectors()
173 AppStyle *newStyle = AppStyle::GenerateFromJS(styleKey, styleValue, isKeyFrames); in InitSelectors()
184 ReleaseJerryValue(styleKey, styleValue, VA_ARG_END_FLAG); in InitSelectors()
H A Dapp_style_item.cpp23 uint8_t AppStyleItem::EstimatePseudoClassType(const char * const styleKey, uint16_t *keyLength) in EstimatePseudoClassType() argument
25 char *p = strchr(const_cast<char *>(styleKey), ':'); in EstimatePseudoClassType()
41 *keyLength = (uint16_t)(p - styleKey); in EstimatePseudoClassType()
H A Dapp_style.h77 …static AppStyle* GenerateFromJS(jerry_value_t styleKey, jerry_value_t styleValue, bool isKeyFrames…
H A Dapp_style.cpp290 AppStyle *AppStyle::GenerateFromJS(jerry_value_t styleKey, jerry_value_t styleValue, bool isKeyFram… in GenerateFromJS() argument
292 char *styleNameBuffer = MallocStringOf(styleKey); in GenerateFromJS()
H A Dapp_style_item.h187 static uint8_t EstimatePseudoClassType(const char * const styleKey, uint16_t *keyLength);
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dinput_edittext_component.cpp128 uint16_t styleKey = GetStylePropNameId(style); in ApplyPrivateStyle() local
129 if (!KeyParser::IsKeyValid(styleKey)) { in ApplyPrivateStyle()
132 switch (styleKey) { in ApplyPrivateStyle()
H A Dqrcode_component.cpp82 uint16_t styleKey = GetStylePropNameId(style); in ApplyPrivateStyle() local
83 switch (styleKey) { in ApplyPrivateStyle()
H A Dinput_checkbox_component.cpp85 uint16_t styleKey = GetStylePropNameId(style); in ApplyPrivateStyle() local
86 if (styleKey == K_BACKGROUND_IMAGE) { in ApplyPrivateStyle()
H A Dimage_component.cpp86 uint16_t styleKey = style->GetPropNameId(); in ApplyPrivateStyle() local
88 switch (styleKey) { in ApplyPrivateStyle()
H A Dinput_radio_component.cpp97 uint16_t styleKey = GetStylePropNameId(style); in ApplyPrivateStyle() local
98 if (styleKey == K_BACKGROUND_IMAGE) { in ApplyPrivateStyle()
H A Dinput_button_component.cpp74 uint16_t styleKey = GetStylePropNameId(style); in ApplyPrivateStyle() local
75 switch (styleKey) { in ApplyPrivateStyle()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dswitch_tdd_test.cpp44 …jerry_value_t styleKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("staticStyle")… in SetUp() local
46 jerry_value_t ret2 = jerry_set_property(optionsObj_, styleKey, styleObj_); in SetUp()
52 ReleaseJerryValue(attrsKey, ret1, styleKey, ret2, eventKey, ret3, VA_ARG_END_FLAG); in SetUp()
H A Dswiper_tdd_test.cpp42 …jerry_value_t styleKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("staticStyle")… in SetUp() local
44 jerry_value_t ret2 = jerry_set_property(optionsObj_, styleKey, styleObj_); in SetUp()
48 ReleaseJerryValue(attrsKey, styleKey, eventKey, ret1, ret2, ret3, VA_ARG_END_FLAG); in SetUp()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_node.cpp659 const auto& styleKey = pseudoClassStyle.first; in CachePseudoClassStyle() local
661 if (styleKey.find(DOM_ACTIVE_PSEUDO_CLASS) != std::string::npos) { in CachePseudoClassStyle()
665 if (styleKey.find(DOM_DISABLED_PSEUDO_CLASS) != std::string::npos) { in CachePseudoClassStyle()
669 if (styleKey.find(DOM_FOCUS_PSEUDO_CLASS) != std::string::npos) { in CachePseudoClassStyle()
673 if (styleKey.find(DOM_CHECKED_PSEUDO_CLASS) != std::string::npos) { in CachePseudoClassStyle()
677 if (styleKey.find(DOM_WAITING_PSEUDO_CLASS) != std::string::npos) { in CachePseudoClassStyle()
681 if (styleKey.find(DOM_HOVER_PSEUDO_CLASS) != std::string::npos) { in CachePseudoClassStyle()
687 auto pseudoSymbolLocation = styleKey.find(DOM_PSEUDO_CLASS_SYMBOL); in CachePseudoClassStyle()
689 …((pseudoSymbolLocation != std::string::npos) ? styleKey.substr(0, pseudoSymbolLocation) : styleKey in CachePseudoClassStyle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_string.cpp667 auto styleKey = valueObj->GetProperty("styledKey"); in ParseJsSpanBaseVector() local
668 if (styleKey->IsNull() || !styleKey->IsNumber()) { in ParseJsSpanBaseVector()
675 auto type = static_cast<SpanType>(styleKey->ToNumber<int32_t>()); in ParseJsSpanBaseVector()