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

Side by Side Diff: Source/core/rendering/svg/SVGRenderTreeAsText.cpp

Issue 595603002: Cleanup RenderTreeAsText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.h ('k') | no next file » | 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) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved.
3 * (C) 2005 Rob Buis <buis@kde.org> 3 * (C) 2005 Rob Buis <buis@kde.org>
4 * (C) 2006 Alexander Kellett <lypanov@kde.org> 4 * (C) 2006 Alexander Kellett <lypanov@kde.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 ts << SVGEnumerationToString<SVGMarkerUnitsType>(markerUnit); 185 ts << SVGEnumerationToString<SVGMarkerUnitsType>(markerUnit);
186 return ts; 186 return ts;
187 } 187 }
188 188
189 static TextStream& operator<<(TextStream& ts, const SVGMarkerOrientType& orientT ype) 189 static TextStream& operator<<(TextStream& ts, const SVGMarkerOrientType& orientT ype)
190 { 190 {
191 ts << SVGEnumerationToString<SVGMarkerOrientType>(orientType); 191 ts << SVGEnumerationToString<SVGMarkerOrientType>(orientType);
192 return ts; 192 return ts;
193 } 193 }
194 194
195 TextStream& operator<<(TextStream& ts, const Color& c) 195 // FIXME: Maybe this should be in DashArray.cpp
196 {
197 return ts << c.nameForRenderTreeAsText();
198 }
199
200 // FIXME: Maybe this should be in KCanvasRenderingStyle.cpp
201 static TextStream& operator<<(TextStream& ts, const DashArray& a) 196 static TextStream& operator<<(TextStream& ts, const DashArray& a)
202 { 197 {
203 ts << "{"; 198 ts << "{";
204 DashArray::const_iterator end = a.end(); 199 DashArray::const_iterator end = a.end();
205 for (DashArray::const_iterator it = a.begin(); it != end; ++it) { 200 for (DashArray::const_iterator it = a.begin(); it != end; ++it) {
206 if (it != a.begin()) 201 if (it != a.begin())
207 ts << ", "; 202 ts << ", ";
208 ts << *it; 203 ts << *it;
209 } 204 }
210 ts << "}"; 205 ts << "}";
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 ts << " "; 674 ts << " ";
680 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); 675 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource());
681 ts << " "; 676 ts << " ";
682 writeStandardPrefix(ts, *filter, 0); 677 writeStandardPrefix(ts, *filter, 0);
683 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; 678 ts << " " << filter->resourceBoundingBox(&renderer) << "\n";
684 } 679 }
685 } 680 }
686 } 681 }
687 682
688 } // namespace blink 683 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698