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

Unified Diff: Source/platform/geometry/FloatRect.h

Issue 328163003: Inline FloatRect::operator SkRect. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Source/platform/geometry/FloatRect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/FloatRect.h
diff --git a/Source/platform/geometry/FloatRect.h b/Source/platform/geometry/FloatRect.h
index 661ca88a9ecfef63abfe8f6dcc9a1c5c4101891e..6195926a43ff988447fc86e102781c8a57294824 100644
--- a/Source/platform/geometry/FloatRect.h
+++ b/Source/platform/geometry/FloatRect.h
@@ -28,6 +28,7 @@
#define FloatRect_h
#include "platform/geometry/FloatPoint.h"
+#include "third_party/skia/include/core/SkRect.h"
#include "wtf/Vector.h"
#if OS(MACOSX)
@@ -38,8 +39,6 @@ typedef struct CGRect CGRect;
#endif
#endif
-struct SkRect;
-
namespace WebCore {
class LayoutRect;
@@ -172,7 +171,7 @@ public:
#endif
#endif
- operator SkRect() const;
+ operator SkRect() const { return SkRect::MakeXYWH(x(), y(), width(), height()); }
private:
FloatPoint m_location;
« no previous file with comments | « no previous file | Source/platform/geometry/FloatRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698