chromium/third_party/blink/renderer/core/style/content_data.h

/*
 * Copyright (C) 2000 Lars Knoll ([email protected])
 *           (C) 2000 Antti Koivisto ([email protected])
 *           (C) 2000 Dirk Mueller ([email protected])
 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights
 * reserved.
 * Copyright (C) 2006 Graham Dennis ([email protected])
 *
 * 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_STYLE_CONTENT_DATA_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_CONTENT_DATA_H_

#include "third_party/blink/renderer/core/css/css_value.h"
#include "third_party/blink/renderer/core/style/computed_style_constants.h"
#include "third_party/blink/renderer/core/style/style_image.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/heap/member.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

#include <iosfwd>

namespace blink {

class LayoutObject;
class TreeScope;

class ContentData : public GarbageCollected<ContentData> {};

inline std::ostream& operator<<(std::ostream& stream,
                                const ContentData& content_data) {}

class ImageContentData final : public ContentData {};

template <>
struct DowncastTraits<ImageContentData> {};

class TextContentData final : public ContentData {};

template <>
struct DowncastTraits<TextContentData> {};

class AltTextContentData final : public ContentData {};

template <>
struct DowncastTraits<AltTextContentData> {};

class CounterContentData final : public ContentData {};

template <>
struct DowncastTraits<CounterContentData> {};

class QuoteContentData final : public ContentData {};

template <>
struct DowncastTraits<QuoteContentData> {};

class NoneContentData final : public ContentData {};

template <>
struct DowncastTraits<NoneContentData> {};

inline bool operator==(const ContentData& a, const ContentData& b) {}

// In order for an image to be rendered from the content property on an actual
// element, there can be at most one piece of image content data, followed by
// some optional alternative text.
inline bool ShouldUseContentDataForElement(const ContentData* content_data) {}

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_CONTENT_DATA_H_