aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGRect.h
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2016-08-10 17:11:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-10 17:11:29 -0700
commit286a8657da0364006e95cb0988477cc3a5f0e112 (patch)
tree80ae24ff27cdb50099cfa542ce9c4e9d322195e9 /experimental/svg/model/SkSVGRect.h
parentd71fe83ac211a1fef77d122d39c33fdfe7010f86 (diff)
[SVGDom] Add rx/ry support for <rect>
R=stephana@google.com,robertphillips@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2234863002 Review-Url: https://codereview.chromium.org/2234863002
Diffstat (limited to 'experimental/svg/model/SkSVGRect.h')
-rw-r--r--experimental/svg/model/SkSVGRect.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/experimental/svg/model/SkSVGRect.h b/experimental/svg/model/SkSVGRect.h
index b4cd363d77..0da248c4eb 100644
--- a/experimental/svg/model/SkSVGRect.h
+++ b/experimental/svg/model/SkSVGRect.h
@@ -20,6 +20,8 @@ public:
void setY(const SkSVGLength&);
void setWidth(const SkSVGLength&);
void setHeight(const SkSVGLength&);
+ void setRx(const SkSVGLength&);
+ void setRy(const SkSVGLength&);
protected:
void onSetAttribute(SkSVGAttribute, const SkSVGValue&) override;
@@ -34,6 +36,11 @@ private:
SkSVGLength fWidth = SkSVGLength(0);
SkSVGLength fHeight = SkSVGLength(0);
+ // The x radius for rounded rects.
+ SkSVGLength fRx = SkSVGLength(0);
+ // The y radius for rounded rects.
+ SkSVGLength fRy = SkSVGLength(0);
+
typedef SkSVGShape INHERITED;
};