Chromium Code Reviews| 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..b326c8e2a7b3e5ad83ae1d2b7a31a2ace51c26a3 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h |
| +++ b/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h |
| @@ -45,6 +45,12 @@ class PLATFORM_EXPORT FloatClipRect { |
| m_isInfinite = false; |
| } |
| + void moveBy(const FloatPoint& offset) { |
|
wkorman
2017/02/16 21:45:32
Maybe worth starting a FloatClipRectTest. Would ob
chrishtr
2017/02/16 23:48:32
Done.
|
| + if (m_isInfinite) |
| + return; |
| + m_rect.moveBy(offset); |
| + } |
| + |
| bool isInfinite() const { return m_isInfinite; } |
| private: |