Home | History | Annotate | Download | only in link

Lines Matching full:src_attr

35 static bool CopyAttribute(const xml::Attribute& src_attr, bool generated, xml::Element* dst_el,
37 xml::Attribute* dst_attr = dst_el->FindAttribute(src_attr.namespace_uri, src_attr.name);
41 dst_attr->value = src_attr.value;
42 dst_attr->compiled_attribute = src_attr.compiled_attribute;
43 if (src_attr.compiled_value != nullptr) {
44 dst_attr->compiled_value.reset(src_attr.compiled_value->Clone(out_string_pool));
50 dst_el->attributes.push_back(CopyAttr(src_attr, out_string_pool));
54 void XmlCompatVersioner::ProcessRule(const xml::Element& src_el, const xml::Attribute& src_attr,
62 if (!CopyAttribute(src_attr, generated, dst_el, out_string_pool)) {
72 if (!CopyAttribute(src_attr, generated, dst_el, out_string_pool)) {
87 for (const DegradeResult& result : rule->Degrade(src_el, src_attr, out_string_pool)) {
165 const xml::Attribute& src_attr,
171 DegradeResult{xml::Attribute{xml::kSchemaAndroid, attr.name, src_attr.value,
173 CloneIfNotNull(src_attr.compiled_value, out_string_pool)},