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 5999fbc8dad2b93a1b20dcc05b52e1f647a6d5d2..d1b13ab96c3d8e420f4e3af75ae4b0581b0bed0e 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 { |
@@ -41,6 +42,9 @@ class ClipRect { |
ClipRect(const LayoutRect& rect) : m_rect(rect), m_hasRadius(false) {} |
+ ClipRect(const FloatClipRect& rect) |
+ : m_rect(LayoutRect(rect.rect())), m_hasRadius(rect.hasRadius()) {} |
+ |
const LayoutRect& rect() const { return m_rect; } |
bool hasRadius() const { return m_hasRadius; } |