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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutThemeTest.cpp ('k') | Source/core/layout/LayoutView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 LayoutAsTextShowLayoutState = 1 << 7 // Print the various 'needs layout' bit s on renderers. 52 LayoutAsTextShowLayoutState = 1 << 7 // Print the various 'needs layout' bit s on renderers.
53 }; 53 };
54 typedef unsigned LayoutAsTextBehavior; 54 typedef unsigned LayoutAsTextBehavior;
55 55
56 // You don't need pageWidthInPixels if you don't specify LayoutAsTextInPrintingM ode. 56 // You don't need pageWidthInPixels if you don't specify LayoutAsTextInPrintingM ode.
57 String externalRepresentation(LocalFrame*, LayoutAsTextBehavior = LayoutAsTextBe haviorNormal); 57 String externalRepresentation(LocalFrame*, LayoutAsTextBehavior = LayoutAsTextBe haviorNormal);
58 String externalRepresentation(Element*, LayoutAsTextBehavior = LayoutAsTextBehav iorNormal); 58 String externalRepresentation(Element*, LayoutAsTextBehavior = LayoutAsTextBehav iorNormal);
59 void write(TextStream&, const LayoutObject&, int indent = 0, LayoutAsTextBehavio r = LayoutAsTextBehaviorNormal); 59 void write(TextStream&, const LayoutObject&, int indent = 0, LayoutAsTextBehavio r = LayoutAsTextBehaviorNormal);
60 60
61 class LayoutTreeAsText { 61 class LayoutTreeAsText {
62 // FIXME: This is a cheesy hack to allow easy access to LayoutStyle colors. It won't be needed if we convert 62 // FIXME: This is a cheesy hack to allow easy access to ComputedStyle colors. I t won't be needed if we convert
63 // it to use visitedDependentColor instead. (This just involves rebaselining man y results though, so for now it's 63 // it to use visitedDependentColor instead. (This just involves rebaselining man y results though, so for now it's
64 // not being done). 64 // not being done).
65 public: 65 public:
66 static void writeLayoutObject(TextStream&, const LayoutObject&, LayoutAsTextBeha vior); 66 static void writeLayoutObject(TextStream&, const LayoutObject&, LayoutAsTextBeha vior);
67 static void writeLayers(TextStream&, const DeprecatedPaintLayer* rootLayer, Depr ecatedPaintLayer*, const LayoutRect& paintDirtyRect, int indent = 0, LayoutAsTex tBehavior = LayoutAsTextBehaviorNormal); 67 static void writeLayers(TextStream&, const DeprecatedPaintLayer* rootLayer, Depr ecatedPaintLayer*, const LayoutRect& paintDirtyRect, int indent = 0, LayoutAsTex tBehavior = LayoutAsTextBehaviorNormal);
68 }; 68 };
69 69
70 // Helper function shared with SVGLayoutTreeAsText 70 // Helper function shared with SVGLayoutTreeAsText
71 String quoteAndEscapeNonPrintables(const String&); 71 String quoteAndEscapeNonPrintables(const String&);
72 72
73 String counterValueForElement(Element*); 73 String counterValueForElement(Element*);
74 74
75 String markerTextForListItem(Element*); 75 String markerTextForListItem(Element*);
76 76
77 String nodePositionAsStringForTesting(Node*); 77 String nodePositionAsStringForTesting(Node*);
78 78
79 TextStream& operator<<(TextStream&, const Color&); 79 TextStream& operator<<(TextStream&, const Color&);
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif // LayoutTreeAsText_h 83 #endif // LayoutTreeAsText_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutThemeTest.cpp ('k') | Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698