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