/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/ |
H A D | svg_dom.cpp | 198 void SvgDom::ParseAttrs(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, const RefPtr<SvgNode>& svgNode) in ParseAttrs() argument 204 SetAttrValue(name, value, svgNode); in ParseAttrs() 210 auto svgNode = weakSvgNode.Upgrade(); in ParseIdAttr() local 211 if (!svgNode) { in ParseIdAttr() 212 LOGE("ParseIdAttr failed, svgNode is null"); in ParseIdAttr() 215 svgNode->SetNodeId(value); in ParseIdAttr() 216 svgNode->SetAttr(DOM_ID, value); in ParseIdAttr() 217 svgContext_->Push(value, svgNode); in ParseIdAttr() 222 auto svgNode = weakSvgNode.Upgrade(); in ParseFillAttr() local 223 if (!svgNode) { in ParseFillAttr() 239 auto svgNode = weakSvgNode.Upgrade(); ParseClassAttr() local 259 auto svgNode = weakSvgNode.Upgrade(); ParseStyleAttr() local 275 SetAttrValue(const std::string& name, const std::string& value, const RefPtr<SvgNode>& svgNode) global() argument [all...] |
H A D | svg_context.h | 43 void Push(const std::string& value, const RefPtr<SvgNode>& svgNode) in Push() argument 45 idMapper_.emplace(value, svgNode); in Push()
|
H A D | svg_dom.h | 127 void ParseAttrs(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, const RefPtr<SvgNode>& svgNode); 128 void SetAttrValue(const std::string& name, const std::string& value, const RefPtr<SvgNode>& svgNode);
|
H A D | svg_node.h | 49 virtual void AppendChild(const RefPtr<SvgNode>& svgNode) {} in AppendChild() argument
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/ |
H A D | svg_dom.cpp | 163 void SvgDom::ParseAttrs(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, const RefPtr<SvgNode>& svgNode) in ParseAttrs() argument 169 SetAttrValue(name, value, svgNode); in ParseAttrs() 175 auto svgNode = weakSvgNode.Upgrade(); in ParseIdAttr() local 176 CHECK_NULL_VOID(svgNode); in ParseIdAttr() 177 svgNode->SetNodeId(value); in ParseIdAttr() 178 svgNode->SetAttr(DOM_SVG_ID, value); in ParseIdAttr() 179 svgContext_->Push(value, svgNode); in ParseIdAttr() 184 auto svgNode = weakSvgNode.Upgrade(); in ParseFillAttr() local 185 CHECK_NULL_VOID(svgNode); in ParseFillAttr() 190 svgNode in ParseFillAttr() 198 auto svgNode = weakSvgNode.Upgrade(); ParseClassAttr() local 215 auto svgNode = weakSvgNode.Upgrade(); ParseStyleAttr() local 228 SetAttrValue(const std::string& name, const std::string& value, const RefPtr<SvgNode>& svgNode) SetAttrValue() argument [all...] |
H A D | svg_context.h | 63 void Push(const std::string& value, const RefPtr<SvgNode>& svgNode) in Push() argument 65 idMapper_.emplace(value, svgNode); in Push()
|
H A D | svg_dom.h | 68 void ParseAttrs(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, const RefPtr<SvgNode>& svgNode); 69 void SetAttrValue(const std::string& name, const std::string& value, const RefPtr<SvgNode>& svgNode);
|
/foundation/arkui/ace_engine/test/unittest/core/svg/ |
H A D | parse_testtwo_ng.cpp | 750 auto svgNode = AccessibilityManager::MakeRefPtr<SvgNode>(); in HWTEST_F() local 751 svgNode->SetAttr("stroke-dasharray", ""); in HWTEST_F() 753 svgNode->SetAttr("stroke-linecap", "round"); in HWTEST_F() 754 EXPECT_EQ(svgNode->GetBaseAttributes().strokeState.GetLineCap(), LineCapStyle::ROUND); in HWTEST_F() 756 svgNode->SetAttr("strokeLinecap", "square"); in HWTEST_F() 757 EXPECT_EQ(svgNode->GetBaseAttributes().strokeState.GetLineCap(), LineCapStyle::SQUARE); in HWTEST_F() 759 svgNode->SetAttr("stroke-linejoin", "bevel"); in HWTEST_F() 760 EXPECT_EQ(svgNode->GetBaseAttributes().strokeState.GetLineJoin(), LineJoinStyle::BEVEL); in HWTEST_F() 762 svgNode->SetAttr("strokeLinejoin", "round"); in HWTEST_F() 763 EXPECT_EQ(svgNode in HWTEST_F() 844 auto svgNode = AccessibilityManager::MakeRefPtr<SvgNode>(); HWTEST_F() local [all...] |
H A D | parse_test_ng.cpp | 1807 auto svgNode = AccessibilityManager::MakeRefPtr<SvgNode>(); in HWTEST_F() local 1808 EXPECT_NE(svgNode, nullptr); in HWTEST_F() 1811 svgNode->AnimateTransform(svgAnimation, 0); in HWTEST_F() 1813 svgNode->AnimateTransform(svgAnimation2, 0); in HWTEST_F() 1831 auto svgNode = AccessibilityManager::MakeRefPtr<SvgNode>(); in HWTEST_F() local 1835 svgNode->AnimateTransform(svgAnimation, cnt); in HWTEST_F() 1836 EXPECT_NE(svgNode, nullptr); in HWTEST_F() 1844 svgNode->AnimateTransform(svgAnimation, cnt); in HWTEST_F() 1933 auto svgNode = AccessibilityManager::MakeRefPtr<SvgNode>(); in HWTEST_F() local 1934 svgNode in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_svg_text_path.cpp | 38 auto svgNode = AceType::DynamicCast<DOMSvgBase>(parentNode); in OnMounted() local 39 if (svgNode) { in OnMounted() 40 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
|
H A D | dom_svg_filter.cpp | 41 auto svgNode = AceType::DynamicCast<DOMSvgBase>(parentNode); in OnMounted() local 42 if (svgNode) { in OnMounted() 43 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
|
H A D | dom_svg_mask.cpp | 41 auto svgNode = AceType::DynamicCast<DOMSvgBase>(parentNode); in OnMounted() local 42 if (svgNode) { in OnMounted() 43 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
|
H A D | dom_svg.cpp | 56 auto svgNode = AceType::DynamicCast<DOMSvg>(parentNode); in OnMounted() local 57 if (svgNode) { in OnMounted() 58 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
|
H A D | dom_svg_text.cpp | 39 auto svgNode = AceType::DynamicCast<DOMSvgBase>(parentNode); in OnMounted() local 40 if (svgNode) { in OnMounted() 41 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_stop.cpp | 33 auto svgNode = AceType::MakeRefPtr<SvgStop>(); in Create() local 34 svgNode->stopAttr_.gradientColor.SetDimension(0.0); in Create() 36 svgNode->stopAttr_.gradientColor.SetColor(Color::BLACK); in Create() 38 return svgNode; in Create()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/ |
H A D | video_pattern.cpp | 1383 auto svgNode = FrameNode::CreateFrameNode(V2::IMAGE_ETS_TAG, -1, AceType::MakeRefPtr<ImagePattern>()); in OnModifyDone() local 1384 CHECK_NULL_RETURN(svgNode, nullptr); in OnModifyDone() 1386 auto imageRenderProperty = svgNode->GetPaintPropertyPtr<ImageRenderProperty>(); in OnModifyDone() 1388 auto renderContext = svgNode->GetRenderContext(); in OnModifyDone() 1391 auto svgLayoutProperty = svgNode->GetLayoutProperty<ImageLayoutProperty>(); in OnModifyDone() 1410 svgNode->UpdateLayoutConstraint(layoutConstraint); in OnModifyDone() 1411 return svgNode; in OnModifyDone()
|