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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 ts << "ROUND"; | 232 ts << "ROUND"; |
233 break; | 233 break; |
234 case kBevelJoin: | 234 case kBevelJoin: |
235 ts << "BEVEL"; | 235 ts << "BEVEL"; |
236 break; | 236 break; |
237 } | 237 } |
238 return ts; | 238 return ts; |
239 } | 239 } |
240 | 240 |
241 static TextStream& operator<<(TextStream& ts, const SVGSpreadMethodType& type) { | 241 static TextStream& operator<<(TextStream& ts, const SVGSpreadMethodType& type) { |
242 ts << SVGEnumerationToString<SVGSpreadMethodType>(type).DeprecatedUpper(); | 242 ts << SVGEnumerationToString<SVGSpreadMethodType>(type).UpperASCII(); |
243 return ts; | 243 return ts; |
244 } | 244 } |
245 | 245 |
246 static void WriteSVGPaintingResource( | 246 static void WriteSVGPaintingResource( |
247 TextStream& ts, | 247 TextStream& ts, |
248 const SVGPaintDescription& paint_description) { | 248 const SVGPaintDescription& paint_description) { |
249 DCHECK(paint_description.is_valid); | 249 DCHECK(paint_description.is_valid); |
250 if (!paint_description.resource) { | 250 if (!paint_description.resource) { |
251 ts << "[type=SOLID] [color=" << paint_description.color << "]"; | 251 ts << "[type=SOLID] [color=" << paint_description.color << "]"; |
252 return; | 252 return; |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 WriteIndent(ts, indent); | 757 WriteIndent(ts, indent); |
758 ts << " "; | 758 ts << " "; |
759 WriteNameAndQuotedValue(ts, "filter", id); | 759 WriteNameAndQuotedValue(ts, "filter", id); |
760 ts << " "; | 760 ts << " "; |
761 WriteStandardPrefix(ts, *filter, 0); | 761 WriteStandardPrefix(ts, *filter, 0); |
762 ts << " " << filter->ResourceBoundingBox(&object) << "\n"; | 762 ts << " " << filter->ResourceBoundingBox(&object) << "\n"; |
763 } | 763 } |
764 } | 764 } |
765 | 765 |
766 } // namespace blink | 766 } // namespace blink |
OLD | NEW |