Index: experimental/svg/model/SkSVGDOM.cpp |
diff --git a/experimental/svg/model/SkSVGDOM.cpp b/experimental/svg/model/SkSVGDOM.cpp |
index 8e2667ad200ea15f8eae6cd8740d5275c4e343d3..43176b57d9c0ad63d41deafa8b11c4ba5b23a6b1 100644 |
--- a/experimental/svg/model/SkSVGDOM.cpp |
+++ b/experimental/svg/model/SkSVGDOM.cpp |
@@ -12,6 +12,7 @@ |
#include "SkSVGAttributeParser.h" |
#include "SkSVGDOM.h" |
#include "SkSVGG.h" |
+#include "SkSVGLine.h" |
#include "SkSVGNode.h" |
#include "SkSVGPath.h" |
#include "SkSVGPoly.h" |
@@ -231,11 +232,16 @@ SortedDictionaryEntry<AttrParseInfo> gAttributeParseInfo[] = { |
{ "viewBox" , { SkSVGAttribute::kViewBox , SetViewBoxAttribute }}, |
{ "width" , { SkSVGAttribute::kWidth , SetLengthAttribute }}, |
{ "x" , { SkSVGAttribute::kX , SetLengthAttribute }}, |
+ { "x1" , { SkSVGAttribute::kX1 , SetLengthAttribute }}, |
+ { "x2" , { SkSVGAttribute::kX2 , SetLengthAttribute }}, |
{ "y" , { SkSVGAttribute::kY , SetLengthAttribute }}, |
+ { "y1" , { SkSVGAttribute::kY1 , SetLengthAttribute }}, |
+ { "y2" , { SkSVGAttribute::kY2 , SetLengthAttribute }}, |
}; |
SortedDictionaryEntry<sk_sp<SkSVGNode>(*)()> gTagFactories[] = { |
{ "g" , []() -> sk_sp<SkSVGNode> { return SkSVGG::Make(); }}, |
+ { "line" , []() -> sk_sp<SkSVGNode> { return SkSVGLine::Make(); }}, |
{ "path" , []() -> sk_sp<SkSVGNode> { return SkSVGPath::Make(); }}, |
{ "polygon" , []() -> sk_sp<SkSVGNode> { return SkSVGPoly::MakePolygon(); }}, |
{ "polyline", []() -> sk_sp<SkSVGNode> { return SkSVGPoly::MakePolyline(); }}, |