Index: experimental/svg/model/SkSVGDOM.cpp |
diff --git a/experimental/svg/model/SkSVGDOM.cpp b/experimental/svg/model/SkSVGDOM.cpp |
index 26944737f1ac7979a0b67896ea153c6b7fe1b03f..f467c5e6d0443d87263b5121957daf4c4c8fe4f1 100644 |
--- a/experimental/svg/model/SkSVGDOM.cpp |
+++ b/experimental/svg/model/SkSVGDOM.cpp |
@@ -251,37 +251,38 @@ struct AttrParseInfo { |
}; |
SortedDictionaryEntry<AttrParseInfo> gAttributeParseInfo[] = { |
- { "cx" , { SkSVGAttribute::kCx , SetLengthAttribute }}, |
- { "cy" , { SkSVGAttribute::kCy , SetLengthAttribute }}, |
- { "d" , { SkSVGAttribute::kD , SetPathDataAttribute }}, |
- { "fill" , { SkSVGAttribute::kFill , SetPaintAttribute }}, |
- { "fill-opacity" , { SkSVGAttribute::kFillOpacity , SetNumberAttribute }}, |
- { "height" , { SkSVGAttribute::kHeight , SetLengthAttribute }}, |
- { "offset" , { SkSVGAttribute::kOffset , SetLengthAttribute }}, |
- { "opacity" , { SkSVGAttribute::kOpacity , SetNumberAttribute }}, |
- { "points" , { SkSVGAttribute::kPoints , SetPointsAttribute }}, |
- { "r" , { SkSVGAttribute::kR , SetLengthAttribute }}, |
- { "rx" , { SkSVGAttribute::kRx , SetLengthAttribute }}, |
- { "ry" , { SkSVGAttribute::kRy , SetLengthAttribute }}, |
- { "spreadMethod" , { SkSVGAttribute::kSpreadMethod , SetSpreadMethodAttribute }}, |
- { "stop-color" , { SkSVGAttribute::kStopColor , SetColorAttribute }}, |
- { "stop-opacity" , { SkSVGAttribute::kStopOpacity , SetNumberAttribute }}, |
- { "stroke" , { SkSVGAttribute::kStroke , SetPaintAttribute }}, |
- { "stroke-linecap" , { SkSVGAttribute::kStrokeLineCap , SetLineCapAttribute }}, |
- { "stroke-linejoin", { SkSVGAttribute::kStrokeLineJoin, SetLineJoinAttribute }}, |
- { "stroke-opacity" , { SkSVGAttribute::kStrokeOpacity , SetNumberAttribute }}, |
- { "stroke-width" , { SkSVGAttribute::kStrokeWidth , SetLengthAttribute }}, |
- { "style" , { SkSVGAttribute::kUnknown , SetStyleAttributes }}, |
- { "transform" , { SkSVGAttribute::kTransform , SetTransformAttribute }}, |
- { "viewBox" , { SkSVGAttribute::kViewBox , SetViewBoxAttribute }}, |
- { "width" , { SkSVGAttribute::kWidth , SetLengthAttribute }}, |
- { "x" , { SkSVGAttribute::kX , SetLengthAttribute }}, |
- { "x1" , { SkSVGAttribute::kX1 , SetLengthAttribute }}, |
- { "x2" , { SkSVGAttribute::kX2 , SetLengthAttribute }}, |
- { "xlink:href" , { SkSVGAttribute::kHref , SetIRIAttribute }}, |
- { "y" , { SkSVGAttribute::kY , SetLengthAttribute }}, |
- { "y1" , { SkSVGAttribute::kY1 , SetLengthAttribute }}, |
- { "y2" , { SkSVGAttribute::kY2 , SetLengthAttribute }}, |
+ { "cx" , { SkSVGAttribute::kCx , SetLengthAttribute }}, |
+ { "cy" , { SkSVGAttribute::kCy , SetLengthAttribute }}, |
+ { "d" , { SkSVGAttribute::kD , SetPathDataAttribute }}, |
+ { "fill" , { SkSVGAttribute::kFill , SetPaintAttribute }}, |
+ { "fill-opacity" , { SkSVGAttribute::kFillOpacity , SetNumberAttribute }}, |
+ { "gradientTransform", { SkSVGAttribute::kGradientTransform, SetTransformAttribute }}, |
+ { "height" , { SkSVGAttribute::kHeight , SetLengthAttribute }}, |
+ { "offset" , { SkSVGAttribute::kOffset , SetLengthAttribute }}, |
+ { "opacity" , { SkSVGAttribute::kOpacity , SetNumberAttribute }}, |
+ { "points" , { SkSVGAttribute::kPoints , SetPointsAttribute }}, |
+ { "r" , { SkSVGAttribute::kR , SetLengthAttribute }}, |
+ { "rx" , { SkSVGAttribute::kRx , SetLengthAttribute }}, |
+ { "ry" , { SkSVGAttribute::kRy , SetLengthAttribute }}, |
+ { "spreadMethod" , { SkSVGAttribute::kSpreadMethod , SetSpreadMethodAttribute }}, |
+ { "stop-color" , { SkSVGAttribute::kStopColor , SetColorAttribute }}, |
+ { "stop-opacity" , { SkSVGAttribute::kStopOpacity , SetNumberAttribute }}, |
+ { "stroke" , { SkSVGAttribute::kStroke , SetPaintAttribute }}, |
+ { "stroke-linecap" , { SkSVGAttribute::kStrokeLineCap , SetLineCapAttribute }}, |
+ { "stroke-linejoin" , { SkSVGAttribute::kStrokeLineJoin , SetLineJoinAttribute }}, |
+ { "stroke-opacity" , { SkSVGAttribute::kStrokeOpacity , SetNumberAttribute }}, |
+ { "stroke-width" , { SkSVGAttribute::kStrokeWidth , SetLengthAttribute }}, |
+ { "style" , { SkSVGAttribute::kUnknown , SetStyleAttributes }}, |
+ { "transform" , { SkSVGAttribute::kTransform , SetTransformAttribute }}, |
+ { "viewBox" , { SkSVGAttribute::kViewBox , SetViewBoxAttribute }}, |
+ { "width" , { SkSVGAttribute::kWidth , SetLengthAttribute }}, |
+ { "x" , { SkSVGAttribute::kX , SetLengthAttribute }}, |
+ { "x1" , { SkSVGAttribute::kX1 , SetLengthAttribute }}, |
+ { "x2" , { SkSVGAttribute::kX2 , SetLengthAttribute }}, |
+ { "xlink:href" , { SkSVGAttribute::kHref , SetIRIAttribute }}, |
+ { "y" , { SkSVGAttribute::kY , SetLengthAttribute }}, |
+ { "y1" , { SkSVGAttribute::kY1 , SetLengthAttribute }}, |
+ { "y2" , { SkSVGAttribute::kY2 , SetLengthAttribute }}, |
}; |
SortedDictionaryEntry<sk_sp<SkSVGNode>(*)()> gTagFactories[] = { |