chromium/third_party/blink/renderer/core/dom/attribute.h

/*
 * Copyright (C) 1999 Lars Knoll ([email protected])
 *           (C) 1999 Antti Koivisto ([email protected])
 *           (C) 2001 Peter Kelly ([email protected])
 *           (C) 2001 Dirk Mueller ([email protected])
 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights
 * reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 *
 */

#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_DOM_ATTRIBUTE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_DOM_ATTRIBUTE_H_

#include "build/build_config.h"
#include "third_party/blink/renderer/core/dom/qualified_name.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"

namespace blink {

// This value is set fairly arbitrarily, to get above what we expect to be
// the maximum number of attributes on a normal element. It is used for
// preallocation in Vectors holding Attributes, e.g. to avoid allocations
// in HTMLAtomicToken (which is short-lived, and thus does not need to worry
// much about extra memory usage).
//
// Many places that use this constant don't actually care directly about
// preallocation, but the value tends to propagate out through APIs.
static constexpr int kAttributePrealloc =;

// This is the internal representation of an attribute, consisting of a name and
// value. It is distinct from the web-exposed Attr, which also knows of the
// element to which it attached, if any.
class Attribute {};
static_assert;

inline bool Attribute::Matches(const QualifiedName& qualified_name) const {}

inline bool Attribute::MatchesCaseInsensitive(
    const QualifiedName& qualified_name) const {}

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_DOM_ATTRIBUTE_H_