Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: Source/core/rendering/svg/SVGRenderTreeAsText.cpp

Issue 132233016: [SVG] SVGAnimatedPointList migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: set NeedsRebaseline Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/svg/SVGPathData.cpp ('k') | Source/core/rendering/svg/SVGTextQuery.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 writeNameValuePair(ts, "cx", element->cx()->currentValue()->value(length Context)); 337 writeNameValuePair(ts, "cx", element->cx()->currentValue()->value(length Context));
338 writeNameValuePair(ts, "cy", element->cy()->currentValue()->value(length Context)); 338 writeNameValuePair(ts, "cy", element->cy()->currentValue()->value(length Context));
339 writeNameValuePair(ts, "rx", element->rx()->currentValue()->value(length Context)); 339 writeNameValuePair(ts, "rx", element->rx()->currentValue()->value(length Context));
340 writeNameValuePair(ts, "ry", element->ry()->currentValue()->value(length Context)); 340 writeNameValuePair(ts, "ry", element->ry()->currentValue()->value(length Context));
341 } else if (svgElement->hasTagName(SVGNames::circleTag)) { 341 } else if (svgElement->hasTagName(SVGNames::circleTag)) {
342 SVGCircleElement* element = toSVGCircleElement(svgElement); 342 SVGCircleElement* element = toSVGCircleElement(svgElement);
343 writeNameValuePair(ts, "cx", element->cx()->currentValue()->value(length Context)); 343 writeNameValuePair(ts, "cx", element->cx()->currentValue()->value(length Context));
344 writeNameValuePair(ts, "cy", element->cy()->currentValue()->value(length Context)); 344 writeNameValuePair(ts, "cy", element->cy()->currentValue()->value(length Context));
345 writeNameValuePair(ts, "r", element->r()->currentValue()->value(lengthCo ntext)); 345 writeNameValuePair(ts, "r", element->r()->currentValue()->value(lengthCo ntext));
346 } else if (svgElement->hasTagName(SVGNames::polygonTag) || svgElement->hasTa gName(SVGNames::polylineTag)) { 346 } else if (svgElement->hasTagName(SVGNames::polygonTag) || svgElement->hasTa gName(SVGNames::polylineTag)) {
347 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(svgElement)->poin tsCurrentValue().valueAsString()); 347 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(svgElement)->poin ts()->currentValue()->valueAsString());
348 } else if (svgElement->hasTagName(SVGNames::pathTag)) { 348 } else if (svgElement->hasTagName(SVGNames::pathTag)) {
349 String pathString; 349 String pathString;
350 // FIXME: We should switch to UnalteredParsing here - this will affect t he path dumping output of dozens of tests. 350 // FIXME: We should switch to UnalteredParsing here - this will affect t he path dumping output of dozens of tests.
351 buildStringFromByteStream(toSVGPathElement(svgElement)->pathByteStream() , pathString, NormalizedParsing); 351 buildStringFromByteStream(toSVGPathElement(svgElement)->pathByteStream() , pathString, NormalizedParsing);
352 writeNameAndQuotedValue(ts, "data", pathString); 352 writeNameAndQuotedValue(ts, "data", pathString);
353 } else 353 } else
354 ASSERT_NOT_REACHED(); 354 ASSERT_NOT_REACHED();
355 return ts; 355 return ts;
356 } 356 }
357 357
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 ts << " "; 653 ts << " ";
654 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource()); 654 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource());
655 ts << " "; 655 ts << " ";
656 writeStandardPrefix(ts, *filter, 0); 656 writeStandardPrefix(ts, *filter, 0);
657 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; 657 ts << " " << filter->resourceBoundingBox(&renderer) << "\n";
658 } 658 }
659 } 659 }
660 } 660 }
661 661
662 } // namespace WebCore 662 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGPathData.cpp ('k') | Source/core/rendering/svg/SVGTextQuery.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698