Lines Matching refs:src_attr
36 static bool CopyAttribute(const xml::Attribute& src_attr, bool generated, xml::Element* dst_el, in CopyAttribute() argument
39 xml::Attribute* dst_attr = dst_el->FindAttribute(src_attr.namespace_uri, src_attr.name); in CopyAttribute()
43 dst_attr->value = src_attr.value; in CopyAttribute()
44 dst_attr->compiled_attribute = src_attr.compiled_attribute; in CopyAttribute()
45 if (src_attr.compiled_value != nullptr) { in CopyAttribute()
46 dst_attr->compiled_value = src_attr.compiled_value->Transform(cloner); in CopyAttribute()
52 dst_el->attributes.push_back(CopyAttr(src_attr, out_string_pool)); in CopyAttribute()
56 void XmlCompatVersioner::ProcessRule(const xml::Element& src_el, const xml::Attribute& src_attr, in ProcessRule() argument
64 if (!CopyAttribute(src_attr, generated, dst_el, out_string_pool)) { in ProcessRule()
74 if (!CopyAttribute(src_attr, generated, dst_el, out_string_pool)) { in ProcessRule()
89 for (const DegradeResult& result : rule->Degrade(src_el, src_attr, out_string_pool)) { in ProcessRule()
168 const xml::Attribute& src_attr, in Degrade() argument
174 DegradeResult{xml::Attribute{xml::kSchemaAndroid, attr.name, src_attr.value, in Degrade()
176 CloneIfNotNull(src_attr.compiled_value, out_string_pool)}, in Degrade()