[svg] Use new code path for rest of presentation attrs
This is another necessary step in order to remove kInherit from all of
the base SVG type enums.
Change-Id: I2185e744f7b27369f7bad36591f896d3a9982b42
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/335817
Commit-Queue: Tyler Denniston <tdenniston@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
diff --git a/modules/svg/src/SkSVGFeTurbulence.cpp b/modules/svg/src/SkSVGFeTurbulence.cpp
index 21984b3..af638af 100644
--- a/modules/svg/src/SkSVGFeTurbulence.cpp
+++ b/modules/svg/src/SkSVGFeTurbulence.cpp
@@ -28,13 +28,13 @@
bool SkSVGAttributeParser::parse<SkSVGFeTurbulenceBaseFrequency>(
SkSVGFeTurbulenceBaseFrequency* freq) {
SkSVGNumberType freqX;
- if (!this->parseNumber(&freqX)) {
+ if (!this->parse(&freqX)) {
return false;
}
SkSVGNumberType freqY;
this->parseCommaWspToken();
- if (this->parseNumber(&freqY)) {
+ if (this->parse(&freqY)) {
*freq = SkSVGFeTurbulenceBaseFrequency(freqX, freqY);
} else {
*freq = SkSVGFeTurbulenceBaseFrequency(freqX, freqX);