| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 } else if (isSVGCircleElement(*svgElement)) { | 363 } else if (isSVGCircleElement(*svgElement)) { |
| 364 SVGCircleElement& element = toSVGCircleElement(*svgElement); | 364 SVGCircleElement& element = toSVGCircleElement(*svgElement); |
| 365 writeNameValuePair(ts, "cx", element.cx()->currentValue()->value(lengthC
ontext)); | 365 writeNameValuePair(ts, "cx", element.cx()->currentValue()->value(lengthC
ontext)); |
| 366 writeNameValuePair(ts, "cy", element.cy()->currentValue()->value(lengthC
ontext)); | 366 writeNameValuePair(ts, "cy", element.cy()->currentValue()->value(lengthC
ontext)); |
| 367 writeNameValuePair(ts, "r", element.r()->currentValue()->value(lengthCon
text)); | 367 writeNameValuePair(ts, "r", element.r()->currentValue()->value(lengthCon
text)); |
| 368 } else if (isSVGPolyElement(*svgElement)) { | 368 } else if (isSVGPolyElement(*svgElement)) { |
| 369 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(*svgElement).poin
ts()->currentValue()->valueAsString()); | 369 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(*svgElement).poin
ts()->currentValue()->valueAsString()); |
| 370 } else if (isSVGPathElement(*svgElement)) { | 370 } else if (isSVGPathElement(*svgElement)) { |
| 371 String pathString; | 371 String pathString; |
| 372 // FIXME: We should switch to UnalteredParsing here - this will affect t
he path dumping output of dozens of tests. | 372 // FIXME: We should switch to UnalteredParsing here - this will affect t
he path dumping output of dozens of tests. |
| 373 buildStringFromByteStream(toSVGPathElement(*svgElement).pathByteStream()
, pathString, NormalizedParsing); | 373 buildStringFromByteStream(*toSVGPathElement(*svgElement).pathByteStream(
), pathString, NormalizedParsing); |
| 374 writeNameAndQuotedValue(ts, "data", pathString); | 374 writeNameAndQuotedValue(ts, "data", pathString); |
| 375 } else | 375 } else |
| 376 ASSERT_NOT_REACHED(); | 376 ASSERT_NOT_REACHED(); |
| 377 return ts; | 377 return ts; |
| 378 } | 378 } |
| 379 | 379 |
| 380 static TextStream& operator<<(TextStream& ts, const RenderSVGRoot& root) | 380 static TextStream& operator<<(TextStream& ts, const RenderSVGRoot& root) |
| 381 { | 381 { |
| 382 return writePositionAndStyle(ts, root); | 382 return writePositionAndStyle(ts, root); |
| 383 } | 383 } |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 ts << " "; | 674 ts << " "; |
| 675 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); | 675 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); |
| 676 ts << " "; | 676 ts << " "; |
| 677 writeStandardPrefix(ts, *filter, 0); | 677 writeStandardPrefix(ts, *filter, 0); |
| 678 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; | 678 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; |
| 679 } | 679 } |
| 680 } | 680 } |
| 681 } | 681 } |
| 682 | 682 |
| 683 } // namespace blink | 683 } // namespace blink |
| OLD | NEW |