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

Side by Side Diff: sky/engine/core/rendering/RenderTreeAsText.h

Issue 667003003: Remove most of visited link support. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 }; 51 };
52 typedef unsigned RenderAsTextBehavior; 52 typedef unsigned RenderAsTextBehavior;
53 53
54 // You don't need pageWidthInPixels if you don't specify RenderAsTextInPrintingM ode. 54 // You don't need pageWidthInPixels if you don't specify RenderAsTextInPrintingM ode.
55 String externalRepresentation(LocalFrame*, RenderAsTextBehavior = RenderAsTextBe haviorNormal); 55 String externalRepresentation(LocalFrame*, RenderAsTextBehavior = RenderAsTextBe haviorNormal);
56 String externalRepresentation(Element*, RenderAsTextBehavior = RenderAsTextBehav iorNormal); 56 String externalRepresentation(Element*, RenderAsTextBehavior = RenderAsTextBehav iorNormal);
57 void write(TextStream&, const RenderObject&, int indent = 0, RenderAsTextBehavio r = RenderAsTextBehaviorNormal); 57 void write(TextStream&, const RenderObject&, int indent = 0, RenderAsTextBehavio r = RenderAsTextBehaviorNormal);
58 58
59 class RenderTreeAsText { 59 class RenderTreeAsText {
60 // FIXME: This is a cheesy hack to allow easy access to RenderStyle colors. It won't be needed if we convert 60 // FIXME: This is a cheesy hack to allow easy access to RenderStyle colors. It won't be needed if we convert
61 // it to use visitedDependentColor instead. (This just involves rebaselining man y results though, so for now it's 61 // it to use colorIncludingFallback instead. (This just involves rebaselining ma ny results though, so for now it's
62 // not being done). 62 // not being done).
63 public: 63 public:
64 static void writeRenderObject(TextStream& ts, const RenderObject& o, RenderAsTex tBehavior behavior); 64 static void writeRenderObject(TextStream& ts, const RenderObject& o, RenderAsTex tBehavior behavior);
65 static void writeLayers(TextStream&, const RenderLayer* rootLayer, RenderLayer*, const LayoutRect& paintDirtyRect, int indent = 0, RenderAsTextBehavior = Render AsTextBehaviorNormal); 65 static void writeLayers(TextStream&, const RenderLayer* rootLayer, RenderLayer*, const LayoutRect& paintDirtyRect, int indent = 0, RenderAsTextBehavior = Render AsTextBehaviorNormal);
66 }; 66 };
67 67
68 // Helper function shared with SVGRenderTreeAsText 68 // Helper function shared with SVGRenderTreeAsText
69 String quoteAndEscapeNonPrintables(const String&); 69 String quoteAndEscapeNonPrintables(const String&);
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // RenderTreeAsText_h 73 #endif // RenderTreeAsText_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderObject.cpp ('k') | sky/engine/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698