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

Unified Diff: Source/core/rendering/svg/SVGRenderTreeAsText.cpp

Issue 539833004: [SVG2] Add support for marker orient="auto-start-reverse". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add dump-render-tree output + fix nit and test Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/svg/SVGMarkerData.h ('k') | Source/core/svg/SVGAngle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
index 0966adfb7e491c2c4ac2cee9f912c4251f694bc4..bcc3e8cc47ee04b50e2a65aad5d921ae7e1df072 100644
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
@@ -186,6 +186,12 @@ static TextStream& operator<<(TextStream& ts, const SVGMarkerUnitsType& markerUn
return ts;
}
+static TextStream& operator<<(TextStream& ts, const SVGMarkerOrientType& orientType)
+{
+ ts << SVGEnumerationToString<SVGMarkerOrientType>(orientType);
+ return ts;
+}
+
TextStream& operator<<(TextStream& ts, const Color& c)
{
return ts << c.nameForRenderTreeAsText();
@@ -526,7 +532,7 @@ void writeSVGResourceContainer(TextStream& ts, const RenderObject& object, int i
ts << " [ref at " << marker->referencePoint() << "]";
ts << " [angle=";
if (marker->angle() == -1)
- ts << "auto" << "]\n";
+ ts << marker->orientType() << "]\n";
else
ts << marker->angle() << "]\n";
} else if (resource->resourceType() == PatternResourceType) {
« no previous file with comments | « Source/core/rendering/svg/SVGMarkerData.h ('k') | Source/core/svg/SVGAngle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698