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

Unified Diff: Source/core/rendering/RenderTreeAsText.h

Issue 54803002: Centralize TextStream functions to remove RenderTreeAsText dependency of the filters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderTreeAsText.h
diff --git a/Source/core/rendering/RenderTreeAsText.h b/Source/core/rendering/RenderTreeAsText.h
index ddf534d66e1a215600ff73323fe1b9829a592039..cf8b38653f15ead85415bfa2a7bd4f9d4c631f6e 100644
--- a/Source/core/rendering/RenderTreeAsText.h
+++ b/Source/core/rendering/RenderTreeAsText.h
@@ -32,12 +32,7 @@
namespace WebCore {
class Element;
-class FloatPoint;
-class FloatSize;
class Frame;
-class IntPoint;
-class IntRect;
-class LayoutPoint;
class RenderObject;
class TextStream;
@@ -58,7 +53,6 @@ typedef unsigned RenderAsTextBehavior;
String externalRepresentation(Frame*, RenderAsTextBehavior = RenderAsTextBehaviorNormal);
String externalRepresentation(Element*, RenderAsTextBehavior = RenderAsTextBehaviorNormal);
void write(TextStream&, const RenderObject&, int indent = 0, RenderAsTextBehavior = RenderAsTextBehaviorNormal);
-void writeIndent(TextStream&, int indent);
class RenderTreeAsText {
// FIXME: This is a cheesy hack to allow easy access to RenderStyle colors. It won't be needed if we convert
@@ -68,28 +62,6 @@ public:
static void writeRenderObject(TextStream& ts, const RenderObject& o, RenderAsTextBehavior behavior);
};
-TextStream& operator<<(TextStream&, const IntPoint&);
-TextStream& operator<<(TextStream&, const IntRect&);
-TextStream& operator<<(TextStream&, const LayoutPoint&);
-TextStream& operator<<(TextStream&, const FloatPoint&);
-TextStream& operator<<(TextStream&, const FloatSize&);
-
-template<typename Item>
-TextStream& operator<<(TextStream& ts, const Vector<Item>& vector)
-{
- ts << "[";
-
- unsigned size = vector.size();
- for (unsigned i = 0; i < size; ++i) {
- ts << vector[i];
- if (i < size - 1)
- ts << ", ";
- }
-
- ts << "]";
- return ts;
-}
-
// Helper function shared with SVGRenderTreeAsText
String quoteAndEscapeNonPrintables(const String&);
« no previous file with comments | « Source/core/platform/graphics/filters/custom/FECustomFilter.cpp ('k') | Source/core/rendering/RenderTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698