| Index: third_party/WebKit/Source/core/paint/ClipRect.h
|
| diff --git a/third_party/WebKit/Source/core/paint/ClipRect.h b/third_party/WebKit/Source/core/paint/ClipRect.h
|
| index 4a12cdb4afc0e046165bc26eb68e5ac70e7e9813..193b9e59db56f961faa43eda9a7cdb25caaabb1d 100644
|
| --- a/third_party/WebKit/Source/core/paint/ClipRect.h
|
| +++ b/third_party/WebKit/Source/core/paint/ClipRect.h
|
| @@ -27,6 +27,7 @@
|
| #define ClipRect_h
|
|
|
| #include "platform/geometry/LayoutRect.h"
|
| +#include "platform/graphics/paint/FloatClipRect.h"
|
| #include "wtf/Allocator.h"
|
|
|
| namespace blink {
|
| @@ -42,6 +43,11 @@ class ClipRect {
|
| ClipRect(const LayoutRect& rect)
|
| : m_rect(rect), m_hasRadius(false), m_isClippedByClipCss(false) {}
|
|
|
| + ClipRect(const FloatClipRect& rect)
|
| + : m_rect(LayoutRect(rect.rect())),
|
| + m_hasRadius(rect.hasRadius()),
|
| + m_isClippedByClipCss(false) {}
|
| +
|
| const LayoutRect& rect() const { return m_rect; }
|
|
|
| bool hasRadius() const { return m_hasRadius; }
|
|
|