| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |