#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_LAYOUT_TREE_AS_TEXT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_LAYOUT_TREE_AS_TEXT_H_
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/forward.h"
#include "third_party/blink/renderer/platform/wtf/text/text_stream.h"
namespace gfx {
class Point;
class PointF;
class Rect;
class RectF;
class Size;
class SizeF;
}
namespace blink {
class Color;
class PaintLayer;
class Element;
class LocalFrame;
class LayoutBlockFlow;
class LayoutObject;
class LayoutPoint;
enum LayoutAsTextBehaviorFlags { … };
LayoutAsTextBehavior;
CORE_EXPORT String
ExternalRepresentation(LocalFrame*,
LayoutAsTextBehavior = kLayoutAsTextBehaviorNormal,
const PaintLayer* marked_layer = nullptr);
CORE_EXPORT String
ExternalRepresentation(Element*,
LayoutAsTextBehavior = kLayoutAsTextBehaviorNormal);
void Write(WTF::TextStream&,
const LayoutObject&,
int indent = 0,
LayoutAsTextBehavior = kLayoutAsTextBehaviorNormal);
class LayoutTreeAsText { … };
String QuoteAndEscapeNonPrintables(const String&);
WTF::TextStream& operator<<(WTF::TextStream&, const Color&);
WTF::TextStream& operator<<(WTF::TextStream& ts, const LayoutPoint&);
WTF::TextStream& operator<<(WTF::TextStream&, const gfx::Point&);
WTF::TextStream& operator<<(WTF::TextStream&, const gfx::Size&);
WTF::TextStream& operator<<(WTF::TextStream&, const gfx::Rect&);
WTF::TextStream& operator<<(WTF::TextStream&, const gfx::SizeF&);
WTF::TextStream& operator<<(WTF::TextStream&, const gfx::PointF&);
WTF::TextStream& operator<<(WTF::TextStream&, const gfx::RectF&);
CORE_EXPORT String CounterValueForElement(Element*);
CORE_EXPORT String MarkerTextForListItem(Element*);
}
#endif