diff options
Diffstat (limited to 'WebCore/rendering/RenderTreeAsText.h')
| -rw-r--r-- | WebCore/rendering/RenderTreeAsText.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/WebCore/rendering/RenderTreeAsText.h b/WebCore/rendering/RenderTreeAsText.h index daca253..13525e7 100644 --- a/WebCore/rendering/RenderTreeAsText.h +++ b/WebCore/rendering/RenderTreeAsText.h @@ -28,15 +28,27 @@ namespace WebCore { - class RenderObject; - class String; - class TextStream; +class Element; +class Frame; +class RenderObject; +class String; +class TextStream; - String externalRepresentation(RenderObject*); - void write(TextStream&, const RenderObject&, int indent = 0); +enum RenderAsTextBehaviorFlags { + RenderAsTextBehaviorNormal = 0, + RenderAsTextShowAllLayers = 1 << 0, // Dump all layers, not just those that would paint. + RenderAsTextShowLayerNesting = 1 << 1, // Annotate the layer lists. + RenderAsTextShowCompositedLayers = 1 << 2 // Show which layers are composited. +}; +typedef unsigned RenderAsTextBehavior; - // Helper function shared with SVGRenderTreeAsText - String quoteAndEscapeNonPrintables(const String&); +String externalRepresentation(Frame*, RenderAsTextBehavior = RenderAsTextBehaviorNormal); +void write(TextStream&, const RenderObject&, int indent = 0); + +// Helper function shared with SVGRenderTreeAsText +String quoteAndEscapeNonPrintables(const String&); + +String counterValueForElement(Element*); } // namespace WebCore |
