diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/RoundedIntRect.h')
-rw-r--r-- | Source/WebCore/platform/graphics/RoundedIntRect.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/RoundedIntRect.h b/Source/WebCore/platform/graphics/RoundedIntRect.h index c3c972f..74ee892 100644 --- a/Source/WebCore/platform/graphics/RoundedIntRect.h +++ b/Source/WebCore/platform/graphics/RoundedIntRect.h @@ -93,11 +93,24 @@ public: void includeLogicalEdges(const Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge); void excludeLogicalEdges(bool isHorizontal, bool excludeLogicalLeftEdge, bool excludeLogicalRightEdge); + bool isRenderable() const; + private: IntRect m_rect; Radii m_radii; }; +inline bool operator==(const RoundedIntRect::Radii& a, const RoundedIntRect::Radii& b) +{ + return a.topLeft() == b.topLeft() && a.topRight() == b.topRight() && a.bottomLeft() == b.bottomLeft() && a.bottomRight() == b.bottomRight(); +} + +inline bool operator==(const RoundedIntRect& a, const RoundedIntRect& b) +{ + return a.rect() == b.rect() && a.radii() == b.radii(); +} + + } // namespace WebCore #endif // RoundedIntRect_h |