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

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

Issue 55893002: <animate> not working on SVG Polygons. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « Source/core/rendering/svg/SVGPathData.cpp ('k') | Source/core/svg/SVGPolyElement.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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 writeNameValuePair(ts, "cx", element->cxCurrentValue().value(lengthConte xt)); 345 writeNameValuePair(ts, "cx", element->cxCurrentValue().value(lengthConte xt));
346 writeNameValuePair(ts, "cy", element->cyCurrentValue().value(lengthConte xt)); 346 writeNameValuePair(ts, "cy", element->cyCurrentValue().value(lengthConte xt));
347 writeNameValuePair(ts, "rx", element->rxCurrentValue().value(lengthConte xt)); 347 writeNameValuePair(ts, "rx", element->rxCurrentValue().value(lengthConte xt));
348 writeNameValuePair(ts, "ry", element->ryCurrentValue().value(lengthConte xt)); 348 writeNameValuePair(ts, "ry", element->ryCurrentValue().value(lengthConte xt));
349 } else if (svgElement->hasTagName(SVGNames::circleTag)) { 349 } else if (svgElement->hasTagName(SVGNames::circleTag)) {
350 SVGCircleElement* element = toSVGCircleElement(svgElement); 350 SVGCircleElement* element = toSVGCircleElement(svgElement);
351 writeNameValuePair(ts, "cx", element->cxCurrentValue().value(lengthConte xt)); 351 writeNameValuePair(ts, "cx", element->cxCurrentValue().value(lengthConte xt));
352 writeNameValuePair(ts, "cy", element->cyCurrentValue().value(lengthConte xt)); 352 writeNameValuePair(ts, "cy", element->cyCurrentValue().value(lengthConte xt));
353 writeNameValuePair(ts, "r", element->rCurrentValue().value(lengthContext )); 353 writeNameValuePair(ts, "r", element->rCurrentValue().value(lengthContext ));
354 } else if (svgElement->hasTagName(SVGNames::polygonTag) || svgElement->hasTa gName(SVGNames::polylineTag)) { 354 } else if (svgElement->hasTagName(SVGNames::polygonTag) || svgElement->hasTa gName(SVGNames::polylineTag)) {
355 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(svgElement)->poin tList().valueAsString()); 355 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(svgElement)->poin tsCurrentValue().valueAsString());
356 } else if (svgElement->hasTagName(SVGNames::pathTag)) { 356 } else if (svgElement->hasTagName(SVGNames::pathTag)) {
357 String pathString; 357 String pathString;
358 // FIXME: We should switch to UnalteredParsing here - this will affect t he path dumping output of dozens of tests. 358 // FIXME: We should switch to UnalteredParsing here - this will affect t he path dumping output of dozens of tests.
359 buildStringFromByteStream(toSVGPathElement(svgElement)->pathByteStream() , pathString, NormalizedParsing); 359 buildStringFromByteStream(toSVGPathElement(svgElement)->pathByteStream() , pathString, NormalizedParsing);
360 writeNameAndQuotedValue(ts, "data", pathString); 360 writeNameAndQuotedValue(ts, "data", pathString);
361 } else 361 } else
362 ASSERT_NOT_REACHED(); 362 ASSERT_NOT_REACHED();
363 return ts; 363 return ts;
364 } 364 }
365 365
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 ts << " "; 660 ts << " ";
661 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource()); 661 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource());
662 ts << " "; 662 ts << " ";
663 writeStandardPrefix(ts, *filter, 0); 663 writeStandardPrefix(ts, *filter, 0);
664 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; 664 ts << " " << filter->resourceBoundingBox(&renderer) << "\n";
665 } 665 }
666 } 666 }
667 } 667 }
668 668
669 } // namespace WebCore 669 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGPathData.cpp ('k') | Source/core/svg/SVGPolyElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698