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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/FloatRect.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2005 Nokia. All rights reserved. 3 * Copyright (C) 2005 Nokia. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 FloatRect(const NSRect&); 194 FloatRect(const NSRect&);
195 operator NSRect() const; 195 operator NSRect() const;
196 #endif 196 #endif
197 #endif 197 #endif
198 198
199 operator SkRect() const { 199 operator SkRect() const {
200 return SkRect::MakeXYWH(x(), y(), width(), height()); 200 return SkRect::MakeXYWH(x(), y(), width(), height());
201 } 201 }
202 operator gfx::RectF() const; 202 operator gfx::RectF() const;
203 203
204 #if ENABLE(ASSERT) 204 #if DCHECK_IS_ON()
205 bool mayNotHaveExactIntRectRepresentation() const; 205 bool mayNotHaveExactIntRectRepresentation() const;
206 #endif 206 #endif
207 207
208 String toString() const; 208 String toString() const;
209 209
210 private: 210 private:
211 FloatPoint m_location; 211 FloatPoint m_location;
212 FloatSize m_size; 212 FloatSize m_size;
213 213
214 void setLocationAndSizeFromEdges(float left, 214 void setLocationAndSizeFromEdges(float left,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 const FloatRect& srcRect, 273 const FloatRect& srcRect,
274 const FloatRect& destRect); 274 const FloatRect& destRect);
275 275
276 // Redeclared here to avoid ODR issues. 276 // Redeclared here to avoid ODR issues.
277 // See platform/testing/GeometryPrinters.h. 277 // See platform/testing/GeometryPrinters.h.
278 void PrintTo(const FloatRect&, std::ostream*); 278 void PrintTo(const FloatRect&, std::ostream*);
279 279
280 } // namespace blink 280 } // namespace blink
281 281
282 #endif 282 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698