Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Unified Diff: third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp

Issue 1544673003: Refactor propagation of parsing errors for SVG attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp
index 9f75d7814fef765ff0cc76f4b7ad850fe6b1a157..4f7ecf2ab64956f6568428c002036fdeb4e0a89b 100644
--- a/third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp
@@ -49,7 +49,7 @@ public:
return adoptRefWillBeNoop(new SVGAnimatedOrder(contextElement));
}
- void setBaseValueAsString(const String&, SVGParsingError&) override;
+ SVGParsingError setBaseValueAsString(const String&) override;
protected:
SVGAnimatedOrder(SVGElement* contextElement)
@@ -58,15 +58,16 @@ protected:
}
};
-void SVGAnimatedOrder::setBaseValueAsString(const String& value, SVGParsingError& parseError)
+SVGParsingError SVGAnimatedOrder::setBaseValueAsString(const String& value)
{
- SVGAnimatedIntegerOptionalInteger::setBaseValueAsString(value, parseError);
+ SVGParsingError parseStatus = SVGAnimatedIntegerOptionalInteger::setBaseValueAsString(value);
ASSERT(contextElement());
- if (parseError == NoError && (firstInteger()->baseValue()->value() < 1 || secondInteger()->baseValue()->value() < 1)) {
+ if (parseStatus == NoError && (firstInteger()->baseValue()->value() < 1 || secondInteger()->baseValue()->value() < 1)) {
contextElement()->document().accessSVGExtensions().reportWarning(
"feConvolveMatrix: problem parsing order=\"" + value + "\".");
}
+ return parseStatus;
}
inline SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(Document& document)

Powered by Google App Engine
This is Rietveld 408576698