[svg] Remove primitive type wrappers
SkSVGPrimitiveTypeWrapper must have served some purpose in the past
(maybe? I have no memory of this place :P), but now it basically does
templated-nothing.
Well...
Change-Id: Id93487c345ea075d09b14024f4bcd2f987789518
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/282680
Reviewed-by: Tyler Denniston <tdenniston@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
diff --git a/experimental/svg/model/SkSVGNode.cpp b/experimental/svg/model/SkSVGNode.cpp
index 245f36e..1784e90 100644
--- a/experimental/svg/model/SkSVGNode.cpp
+++ b/experimental/svg/model/SkSVGNode.cpp
@@ -89,8 +89,7 @@
}
void SkSVGNode::setFillOpacity(const SkSVGNumberType& opacity) {
- fPresentationAttributes.fFillOpacity.set(
- SkSVGNumberType(SkTPin<SkScalar>(opacity.value(), 0, 1)));
+ fPresentationAttributes.fFillOpacity.set(SkSVGNumberType(SkTPin<SkScalar>(opacity, 0, 1)));
}
void SkSVGNode::setFillRule(const SkSVGFillRule& fillRule) {
@@ -98,8 +97,7 @@
}
void SkSVGNode::setOpacity(const SkSVGNumberType& opacity) {
- fPresentationAttributes.fOpacity.set(
- SkSVGNumberType(SkTPin<SkScalar>(opacity.value(), 0, 1)));
+ fPresentationAttributes.fOpacity.set(SkSVGNumberType(SkTPin<SkScalar>(opacity, 0, 1)));
}
void SkSVGNode::setStroke(const SkSVGPaint& svgPaint) {
@@ -115,8 +113,7 @@
}
void SkSVGNode::setStrokeOpacity(const SkSVGNumberType& opacity) {
- fPresentationAttributes.fStrokeOpacity.set(
- SkSVGNumberType(SkTPin<SkScalar>(opacity.value(), 0, 1)));
+ fPresentationAttributes.fStrokeOpacity.set(SkSVGNumberType(SkTPin<SkScalar>(opacity, 0, 1)));
}
void SkSVGNode::setStrokeLineCap(const SkSVGLineCap& lc) {