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

Unified Diff: ui/gfx/rect_f.cc

Issue 11428076: Inline hot ctor/dtors for struct-like gfx:: geometry types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style issues Created 8 years, 1 month 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 | « ui/gfx/rect_f.h ('k') | ui/gfx/size.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect_f.cc
diff --git a/ui/gfx/rect_f.cc b/ui/gfx/rect_f.cc
index 4413fb85f71832024f3b1c560aada3aabe590799..d7b1089c96de6c556d3fc08b85ebc2e1fe86c4cd 100644
--- a/ui/gfx/rect_f.cc
+++ b/ui/gfx/rect_f.cc
@@ -19,27 +19,6 @@ template class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>;
typedef class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF,
float> RectBaseT;
-RectF::RectF() : RectBaseT(gfx::SizeF()) {
-}
-
-RectF::RectF(float width, float height)
- : RectBaseT(gfx::SizeF(width, height)) {
-}
-
-RectF::RectF(float x, float y, float width, float height)
- : RectBaseT(gfx::PointF(x, y), gfx::SizeF(width, height)) {
-}
-
-RectF::RectF(const gfx::SizeF& size)
- : RectBaseT(size) {
-}
-
-RectF::RectF(const gfx::PointF& origin, const gfx::SizeF& size)
- : RectBaseT(origin, size) {
-}
-
-RectF::~RectF() {}
-
bool RectF::IsExpressibleAsRect() const {
return IsExpressibleAsInt(x()) && IsExpressibleAsInt(y()) &&
IsExpressibleAsInt(width()) && IsExpressibleAsInt(height()) &&
« no previous file with comments | « ui/gfx/rect_f.h ('k') | ui/gfx/size.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698