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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp

Issue 1408143004: Use PathSegmentData+SVGPath{Consumer,Source} in PathSVGInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix silly bug. Created 5 years, 2 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
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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698