OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #ifndef RenderTreeAsText_h | 26 #ifndef RenderTreeAsText_h |
27 #define RenderTreeAsText_h | 27 #define RenderTreeAsText_h |
28 #include "platform/text/TextStream.h" | 28 #include "platform/text/TextStream.h" |
29 | 29 |
30 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class Element; | 34 class Element; |
| 35 class LayoutRect; |
35 class LocalFrame; | 36 class LocalFrame; |
36 class LayoutRect; | 37 class Node; |
37 class RenderLayer; | 38 class RenderLayer; |
38 class RenderObject; | 39 class RenderObject; |
39 class TextStream; | 40 class TextStream; |
40 | 41 |
41 enum RenderAsTextBehaviorFlags { | 42 enum RenderAsTextBehaviorFlags { |
42 RenderAsTextBehaviorNormal = 0, | 43 RenderAsTextBehaviorNormal = 0, |
43 RenderAsTextShowAllLayers = 1 << 0, // Dump all layers, not just those that
would paint. | 44 RenderAsTextShowAllLayers = 1 << 0, // Dump all layers, not just those that
would paint. |
44 RenderAsTextShowLayerNesting = 1 << 1, // Annotate the layer lists. | 45 RenderAsTextShowLayerNesting = 1 << 1, // Annotate the layer lists. |
45 RenderAsTextShowCompositedLayers = 1 << 2, // Show which layers are composit
ed. | 46 RenderAsTextShowCompositedLayers = 1 << 2, // Show which layers are composit
ed. |
46 RenderAsTextShowAddresses = 1 << 3, // Show layer and renderer addresses. | 47 RenderAsTextShowAddresses = 1 << 3, // Show layer and renderer addresses. |
(...skipping 18 matching lines...) Expand all Loading... |
65 static void writeLayers(TextStream&, const RenderLayer* rootLayer, RenderLayer*,
const LayoutRect& paintDirtyRect, int indent = 0, RenderAsTextBehavior = Render
AsTextBehaviorNormal); | 66 static void writeLayers(TextStream&, const RenderLayer* rootLayer, RenderLayer*,
const LayoutRect& paintDirtyRect, int indent = 0, RenderAsTextBehavior = Render
AsTextBehaviorNormal); |
66 }; | 67 }; |
67 | 68 |
68 // Helper function shared with SVGRenderTreeAsText | 69 // Helper function shared with SVGRenderTreeAsText |
69 String quoteAndEscapeNonPrintables(const String&); | 70 String quoteAndEscapeNonPrintables(const String&); |
70 | 71 |
71 String counterValueForElement(Element*); | 72 String counterValueForElement(Element*); |
72 | 73 |
73 String markerTextForListItem(Element*); | 74 String markerTextForListItem(Element*); |
74 | 75 |
| 76 String nodePositionAsStringForTesting(Node*); |
| 77 |
75 } // namespace WebCore | 78 } // namespace WebCore |
76 | 79 |
77 #endif // RenderTreeAsText_h | 80 #endif // RenderTreeAsText_h |
OLD | NEW |