bool CSSBasicShapePolygon::equals(const CSSBasicShape& shape) const { if (shape.type() != CSSBasicShapePolygonType) return false; const CSSBasicShapePolygon& rhs = static_cast<const CSSBasicShapePolygon&>(shape); return compareCSSValuePtr(m_referenceBox, rhs.m_referenceBox) && compareCSSValueVector<CSSPrimitiveValue>(m_values, rhs.m_values); }
bool CSSDeprecatedBasicShapeCircle::equals(const CSSBasicShape& shape) const { if (shape.type() != CSSDeprecatedBasicShapeCircleType) return false; const CSSDeprecatedBasicShapeCircle& other = static_cast<const CSSDeprecatedBasicShapeCircle&>(shape); return compareCSSValuePtr(m_centerX, other.m_centerX) && compareCSSValuePtr(m_centerY, other.m_centerY) && compareCSSValuePtr(m_radius, other.m_radius); }
bool CSSBasicShapeCircle::equals(const CSSBasicShape& shape) const { if (shape.type() != CSSBasicShapeCircleType) return false; const CSSBasicShapeCircle& other = toCSSBasicShapeCircle(shape); return compareCSSValuePtr(m_centerX, other.m_centerX) && compareCSSValuePtr(m_centerY, other.m_centerY) && compareCSSValuePtr(m_radius, other.m_radius) && compareCSSValuePtr(m_referenceBox, other.m_referenceBox); }
bool CSSBasicShapeEllipse::equals(const CSSBasicShape& shape) const { if (shape.type() != CSSBasicShapeEllipseType) return false; const CSSBasicShapeEllipse& other = static_cast<const CSSBasicShapeEllipse&>(shape); return compareCSSValuePtr(m_centerX, other.m_centerX) && compareCSSValuePtr(m_centerY, other.m_centerY) && compareCSSValuePtr(m_radiusX, other.m_radiusX) && compareCSSValuePtr(m_radiusY, other.m_radiusY) && compareCSSValuePtr(m_referenceBox, other.m_referenceBox); }
bool CSSBasicShapePolygon::equals(const CSSBasicShape& shape) const { if (shape.type() != CSSBasicShapePolygonType) return false; const CSSBasicShapePolygon& rhs = toCSSBasicShapePolygon(shape); if (!compareCSSValuePtr(m_referenceBox, rhs.m_referenceBox)) return false; return compareCSSValueVector(m_values, rhs.m_values); }
bool CSSBasicShapeRectangle::equals(const CSSBasicShape& shape) const { if (shape.type() != CSSBasicShapeRectangleType) return false; const CSSBasicShapeRectangle& other = static_cast<const CSSBasicShapeRectangle&>(shape); return compareCSSValuePtr(m_x, other.m_x) && compareCSSValuePtr(m_y, other.m_y) && compareCSSValuePtr(m_width, other.m_width) && compareCSSValuePtr(m_height, other.m_height) && compareCSSValuePtr(m_radiusX, other.m_radiusX) && compareCSSValuePtr(m_radiusY, other.m_radiusY) && compareCSSValuePtr(m_layoutBox, other.m_layoutBox); }
bool CSSBasicShapeInsetRectangle::equals(const CSSBasicShape& shape) const { if (shape.type() != CSSBasicShapeInsetRectangleType) return false; const CSSBasicShapeInsetRectangle& other = static_cast<const CSSBasicShapeInsetRectangle&>(shape); return compareCSSValuePtr(m_top, other.m_top) && compareCSSValuePtr(m_right, other.m_right) && compareCSSValuePtr(m_bottom, other.m_bottom) && compareCSSValuePtr(m_left, other.m_left) && compareCSSValuePtr(m_radiusX, other.m_radiusX) && compareCSSValuePtr(m_radiusY, other.m_radiusY) && compareCSSValuePtr(m_layoutBox, other.m_layoutBox); }
bool CSSBasicShapeInset::equals(const CSSBasicShape& shape) const { if (shape.type() != CSSBasicShapeInsetType) return false; const CSSBasicShapeInset& other = static_cast<const CSSBasicShapeInset&>(shape); return compareCSSValuePtr(m_top, other.m_top) && compareCSSValuePtr(m_right, other.m_right) && compareCSSValuePtr(m_bottom, other.m_bottom) && compareCSSValuePtr(m_left, other.m_left) && compareCSSValuePtr(m_topLeftRadius, other.m_topLeftRadius) && compareCSSValuePtr(m_topRightRadius, other.m_topRightRadius) && compareCSSValuePtr(m_bottomRightRadius, other.m_bottomRightRadius) && compareCSSValuePtr(m_bottomLeftRadius, other.m_bottomLeftRadius); }