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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 String pathString; | 369 String pathString; |
370 // FIXME: We should switch to UnalteredParsing here - this will affect t
he path dumping output of dozens of tests. | 370 // FIXME: We should switch to UnalteredParsing here - this will affect t
he path dumping output of dozens of tests. |
371 buildStringFromByteStream(*toSVGPathElement(*svgElement).pathByteStream(
), pathString, NormalizedParsing); | 371 buildStringFromByteStream(toSVGPathElement(*svgElement).pathByteStream()
, pathString, NormalizedParsing); |
372 writeNameAndQuotedValue(ts, "data", pathString); | 372 writeNameAndQuotedValue(ts, "data", pathString); |
373 } else { | 373 } else { |
374 ASSERT_NOT_REACHED(); | 374 ASSERT_NOT_REACHED(); |
375 } | 375 } |
376 return ts; | 376 return ts; |
377 } | 377 } |
378 | 378 |
379 static TextStream& operator<<(TextStream& ts, const LayoutSVGRoot& root) | 379 static TextStream& operator<<(TextStream& ts, const LayoutSVGRoot& root) |
380 { | 380 { |
381 return writePositionAndStyle(ts, root); | 381 return writePositionAndStyle(ts, root); |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 ts << " "; | 671 ts << " "; |
672 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); | 672 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); |
673 ts << " "; | 673 ts << " "; |
674 writeStandardPrefix(ts, *filter, 0); | 674 writeStandardPrefix(ts, *filter, 0); |
675 ts << " " << filter->resourceBoundingBox(&layoutObject) << "\n"; | 675 ts << " " << filter->resourceBoundingBox(&layoutObject) << "\n"; |
676 } | 676 } |
677 } | 677 } |
678 } | 678 } |
679 | 679 |
680 } // namespace blink | 680 } // namespace blink |
OLD | NEW |