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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedLength.h

Issue 1491023003: Refactor SVGAnimatedLength negative values mode (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/SVGAnimatedLength.h
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h b/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
index 85e83b625fb8fa754801de9b2465b55dde24163c..dc4ba7de076e0e49aa967bd24cb262a833ad10cc 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
@@ -39,25 +39,19 @@ namespace blink {
class SVGAnimatedLength : public SVGAnimatedProperty<SVGLength> {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<SVGAnimatedLength> create(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGLength> initialValue, SVGLengthNegativeValuesMode negativeValuesMode)
+ static PassRefPtrWillBeRawPtr<SVGAnimatedLength> create(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGLength> initialValue)
{
- return adoptRefWillBeNoop(new SVGAnimatedLength(contextElement, attributeName, initialValue, negativeValuesMode));
+ return adoptRefWillBeNoop(new SVGAnimatedLength(contextElement, attributeName, initialValue));
}
void setDefaultValueAsString(const String&);
void setBaseValueAsString(const String&, SVGParsingError&) override;
- SVGLengthNegativeValuesMode negativeValuesMode() const { return m_negativeValuesMode; }
-
protected:
- SVGAnimatedLength(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGLength> initialValue, SVGLengthNegativeValuesMode negativeValuesMode)
+ SVGAnimatedLength(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGLength> initialValue)
: SVGAnimatedProperty<SVGLength>(contextElement, attributeName, initialValue)
- , m_negativeValuesMode(negativeValuesMode)
{
}
-
-private:
- SVGLengthNegativeValuesMode m_negativeValuesMode;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698