Commit 68f84532 authored by rob.buis@samsung.com's avatar rob.buis@samsung.com

Remove some SVG equality operators

It seems these are not used (anymore).

Review URL: https://codereview.chromium.org/463173003

git-svn-id: svn://svn.chromium.org/blink/trunk@180127 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b57c595d
......@@ -55,9 +55,6 @@ public:
virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) OVERRIDE;
virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*) OVERRIDE;
bool operator==(const SVGBoolean& other) const { return m_value == other.m_value; }
bool operator!=(const SVGBoolean& other) const { return !operator==(other); }
bool value() const { return m_value; }
void setValue(bool value) { m_value = value; }
......
......@@ -65,9 +65,6 @@ public:
FloatPoint matrixTransform(const AffineTransform&) const;
bool operator==(const SVGPoint&) const;
bool operator!=(const SVGPoint& other) const { return !operator==(other); }
virtual String valueAsString() const OVERRIDE;
void setValueAsString(const String&, ExceptionState&);
......
......@@ -62,9 +62,6 @@ public:
void setWidth(float f) { m_value.setWidth(f); }
void setHeight(float f) { m_value.setHeight(f); }
bool operator==(const SVGRect&) const;
bool operator!=(const SVGRect& other) const { return !operator==(other); }
virtual String valueAsString() const OVERRIDE;
void setValueAsString(const String&, ExceptionState&);
......
......@@ -106,24 +106,12 @@ private:
explicit SVGTransform(const AffineTransform&);
SVGTransform(SVGTransformType, float, const FloatPoint&, const AffineTransform&);
friend bool operator==(const SVGTransform& a, const SVGTransform& b);
SVGTransformType m_transformType;
float m_angle;
FloatPoint m_center;
AffineTransform m_matrix;
};
inline bool operator==(const SVGTransform& a, const SVGTransform& b)
{
return a.m_transformType == b.m_transformType && a.m_angle == b.m_angle && a.m_matrix == b.m_matrix;
}
inline bool operator!=(const SVGTransform& a, const SVGTransform& b)
{
return !(a == b);
}
} // namespace blink
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment