Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.h

Issue 2405633002: Reformat comments in core/layout (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 LayoutAsTextBehaviorNormal = 0, 47 LayoutAsTextBehaviorNormal = 0,
48 LayoutAsTextShowAllLayers = 48 LayoutAsTextShowAllLayers =
49 1 << 0, // Dump all layers, not just those that would paint. 49 1 << 0, // Dump all layers, not just those that would paint.
50 LayoutAsTextShowLayerNesting = 1 << 1, // Annotate the layer lists. 50 LayoutAsTextShowLayerNesting = 1 << 1, // Annotate the layer lists.
51 LayoutAsTextShowCompositedLayers = 1 51 LayoutAsTextShowCompositedLayers = 1
52 << 2, // Show which layers are composited. 52 << 2, // Show which layers are composited.
53 LayoutAsTextShowAddresses = 1 << 3, // Show layer and layoutObject addresses. 53 LayoutAsTextShowAddresses = 1 << 3, // Show layer and layoutObject addresses.
54 LayoutAsTextShowIDAndClass = 1 << 4, // Show id and class attributes 54 LayoutAsTextShowIDAndClass = 1 << 4, // Show id and class attributes
55 LayoutAsTextPrintingMode = 1 << 5, // Dump the tree in printing mode. 55 LayoutAsTextPrintingMode = 1 << 5, // Dump the tree in printing mode.
56 LayoutAsTextDontUpdateLayout = 56 LayoutAsTextDontUpdateLayout =
57 1 57 1 << 6, // Don't update layout, to make it safe to call showLayerTree()
58 << 6, // Don't update layout, to make it safe to call showLayerTree() fro m the debugger inside layout or painting code. 58 // from the debugger inside layout or painting code.
59 LayoutAsTextShowLayoutState = 59 LayoutAsTextShowLayoutState =
60 1 << 7, // Print the various 'needs layout' bits on layoutObjects. 60 1 << 7, // Print the various 'needs layout' bits on layoutObjects.
61 LayoutAsTextShowLineTrees = 61 LayoutAsTextShowLineTrees =
62 1 << 8 // Dump the line trees for each LayoutBlockFlow. 62 1 << 8 // Dump the line trees for each LayoutBlockFlow.
63 }; 63 };
64 typedef unsigned LayoutAsTextBehavior; 64 typedef unsigned LayoutAsTextBehavior;
65 65
66 // You don't need pageWidthInPixels if you don't specify LayoutAsTextInPrintingM ode. 66 // You don't need pageWidthInPixels if you don't specify
67 // LayoutAsTextInPrintingMode.
67 CORE_EXPORT String 68 CORE_EXPORT String
68 externalRepresentation(LocalFrame*, 69 externalRepresentation(LocalFrame*,
69 LayoutAsTextBehavior = LayoutAsTextBehaviorNormal, 70 LayoutAsTextBehavior = LayoutAsTextBehaviorNormal,
70 const PaintLayer* markedLayer = nullptr); 71 const PaintLayer* markedLayer = nullptr);
71 CORE_EXPORT String 72 CORE_EXPORT String
72 externalRepresentation(Element*, 73 externalRepresentation(Element*,
73 LayoutAsTextBehavior = LayoutAsTextBehaviorNormal); 74 LayoutAsTextBehavior = LayoutAsTextBehaviorNormal);
74 void write(TextStream&, 75 void write(TextStream&,
75 const LayoutObject&, 76 const LayoutObject&,
76 int indent = 0, 77 int indent = 0,
77 LayoutAsTextBehavior = LayoutAsTextBehaviorNormal); 78 LayoutAsTextBehavior = LayoutAsTextBehaviorNormal);
78 79
79 class LayoutTreeAsText { 80 class LayoutTreeAsText {
80 STATIC_ONLY(LayoutTreeAsText); 81 STATIC_ONLY(LayoutTreeAsText);
81 // FIXME: This is a cheesy hack to allow easy access to ComputedStyle colors. It won't be needed if we convert 82 // FIXME: This is a cheesy hack to allow easy access to ComputedStyle colors.
82 // it to use visitedDependentColor instead. (This just involves rebaselining m any results though, so for now it's 83 // It won't be needed if we convert it to use visitedDependentColor instead.
84 // (This just involves rebaselining many results though, so for now it's
83 // not being done). 85 // not being done).
84 public: 86 public:
85 static void writeLayoutObject(TextStream&, 87 static void writeLayoutObject(TextStream&,
86 const LayoutObject&, 88 const LayoutObject&,
87 LayoutAsTextBehavior); 89 LayoutAsTextBehavior);
88 static void writeLayers(TextStream&, 90 static void writeLayers(TextStream&,
89 const PaintLayer* rootLayer, 91 const PaintLayer* rootLayer,
90 PaintLayer*, 92 PaintLayer*,
91 const LayoutRect& paintDirtyRect, 93 const LayoutRect& paintDirtyRect,
92 int indent = 0, 94 int indent = 0,
(...skipping 11 matching lines...) Expand all
104 106
105 CORE_EXPORT String markerTextForListItem(Element*); 107 CORE_EXPORT String markerTextForListItem(Element*);
106 108
107 CORE_EXPORT String nodePositionAsStringForTesting(Node*); 109 CORE_EXPORT String nodePositionAsStringForTesting(Node*);
108 110
109 TextStream& operator<<(TextStream&, const Color&); 111 TextStream& operator<<(TextStream&, const Color&);
110 112
111 } // namespace blink 113 } // namespace blink
112 114
113 #endif // LayoutTreeAsText_h 115 #endif // LayoutTreeAsText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698