Index: third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h b/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h |
index bb09206751b592d16f75273fdfd39e9d2d27840f..cf663efaa5e34c18c96c09b24175ca3b7149eb15 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h |
+++ b/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h |
@@ -35,8 +35,8 @@ class PLATFORM_EXPORT FloatClipRect { |
} |
bool hasRadius() const { return m_hasRadius; } |
- void setHasRadius(bool hasRadius) { |
- m_hasRadius = hasRadius; |
+ void setHasRadius() { |
+ m_hasRadius = true; |
m_isInfinite = false; |
} |
@@ -45,6 +45,12 @@ class PLATFORM_EXPORT FloatClipRect { |
m_isInfinite = false; |
} |
+ void moveBy(const FloatPoint& offset) { |
+ if (m_isInfinite) |
+ return; |
+ m_rect.moveBy(offset); |
+ } |
+ |
bool isInfinite() const { return m_isInfinite; } |
private: |