| 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 19 matching lines...) Expand all Loading... |
| 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 LocalFrame; | 35 class LocalFrame; |
| 36 class LayoutRect; | 36 class LayoutRect; |
| 37 class RenderLayer; | 37 class RenderLayer; |
| 38 class RenderObject; | 38 class RenderObject; |
| 39 class TextStream; | 39 class TextStream; |
| 40 class Node; |
| 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. |
| 47 RenderAsTextShowIDAndClass = 1 << 4, // Show id and class attributes | 48 RenderAsTextShowIDAndClass = 1 << 4, // Show id and class attributes |
| 48 RenderAsTextPrintingMode = 1 << 5, // Dump the tree in printing mode. | 49 RenderAsTextPrintingMode = 1 << 5, // Dump the tree in printing mode. |
| 49 RenderAsTextDontUpdateLayout = 1 << 6, // Don't update layout, to make it sa
fe to call showLayerTree() from the debugger inside layout or painting code. | 50 RenderAsTextDontUpdateLayout = 1 << 6, // Don't update layout, to make it sa
fe to call showLayerTree() from the debugger inside layout or painting code. |
| (...skipping 15 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 nodePosition(Node*); |
| 77 |
| 75 } // namespace WebCore | 78 } // namespace WebCore |
| 76 | 79 |
| 77 #endif // RenderTreeAsText_h | 80 #endif // RenderTreeAsText_h |
| OLD | NEW |