Index: experimental/svg/model/SkSVGSVG.h |
diff --git a/experimental/svg/model/SkSVGSVG.h b/experimental/svg/model/SkSVGSVG.h |
index 8e69d144d6ba4417f7117f9ff8ce0c2d4f8e7bb8..27631f5a3169c6c51b35e8eaec6b0688df1a1d60 100644 |
--- a/experimental/svg/model/SkSVGSVG.h |
+++ b/experimental/svg/model/SkSVGSVG.h |
@@ -9,6 +9,7 @@ |
#define SkSVGSVG_DEFINED |
#include "SkSVGContainer.h" |
+#include "SkSVGTypes.h" |
class SkSVGSVG : public SkSVGContainer { |
public: |
@@ -16,9 +17,22 @@ public: |
static sk_sp<SkSVGSVG> Make() { return sk_sp<SkSVGSVG>(new SkSVGSVG()); } |
+ void setX(const SkSVGLength&); |
+ void setY(const SkSVGLength&); |
+ void setWidth(const SkSVGLength&); |
+ void setHeight(const SkSVGLength&); |
+ |
+protected: |
+ void onSetAttribute(SkSVGAttribute, const SkSVGValue&) override; |
+ |
private: |
SkSVGSVG(); |
+ SkSVGLength fX = SkSVGLength(0); |
+ SkSVGLength fY = SkSVGLength(0); |
+ SkSVGLength fWidth = SkSVGLength(100, SkSVGLength::Unit::kPercentage); |
+ SkSVGLength fHeight = SkSVGLength(100, SkSVGLength::Unit::kPercentage); |
+ |
typedef SkSVGContainer INHERITED; |
}; |