#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_DOM_ATTRIBUTE_COLLECTION_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_DOM_ATTRIBUTE_COLLECTION_H_
#include "third_party/blink/renderer/core/dom/attribute.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string_table.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
template <typename Container, typename ContainerMemberType = Container>
class AttributeCollectionGeneric { … };
class AttributeArray { … };
class AttributeCollection
: public AttributeCollectionGeneric<const AttributeArray> { … };
AttributeVector;
class MutableAttributeCollection
: public AttributeCollectionGeneric<AttributeVector, AttributeVector&> { … };
inline void MutableAttributeCollection::Append(const QualifiedName& name,
const AtomicString& value) { … }
inline void MutableAttributeCollection::Remove(unsigned index) { … }
template <typename Container, typename ContainerMemberType>
inline typename AttributeCollectionGeneric<Container,
ContainerMemberType>::iterator
AttributeCollectionGeneric<Container, ContainerMemberType>::Find(
const AtomicString& name) const { … }
template <typename Container, typename ContainerMemberType>
inline wtf_size_t
AttributeCollectionGeneric<Container, ContainerMemberType>::FindIndexHinted(
const StringView& name,
WTF::AtomicStringTable::WeakResult hint) const { … }
template <typename Container, typename ContainerMemberType>
inline wtf_size_t
AttributeCollectionGeneric<Container, ContainerMemberType>::FindIndex(
const QualifiedName& name) const { … }
template <typename Container, typename ContainerMemberType>
inline wtf_size_t
AttributeCollectionGeneric<Container, ContainerMemberType>::FindIndex(
const AtomicString& name) const { … }
template <typename Container, typename ContainerMemberType>
inline typename AttributeCollectionGeneric<Container,
ContainerMemberType>::iterator
AttributeCollectionGeneric<Container, ContainerMemberType>::FindHinted(
const StringView& name,
WTF::AtomicStringTable::WeakResult hint) const { … }
template <typename Container, typename ContainerMemberType>
inline typename AttributeCollectionGeneric<Container,
ContainerMemberType>::iterator
AttributeCollectionGeneric<Container, ContainerMemberType>::Find(
const QualifiedName& name) const { … }
template <typename Container, typename ContainerMemberType>
typename AttributeCollectionGeneric<Container, ContainerMemberType>::iterator
AttributeCollectionGeneric<Container, ContainerMemberType>::FindWithPrefix(
const StringView& name) const { … }
}
#endif