Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: third_party/WebKit/Source/core/paint/ClipRect.h

Issue 2699593006: Refactor to remove need for infiniteIntRect when computing rects in pre-paint (Closed)
Patch Set: none Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698