Changeset 57236 in webkit
- Timestamp:
- Apr 7, 2010 2:53:26 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57235 r57236 1 2010-04-07 Luiz Agostini <luiz.agostini@openbossa.org> 2 3 Reviewed by Darin Adler. 4 5 Adding static method zero() to classes IntPoint and FloatPoint. 6 https://bugs.webkit.org/show_bug.cgi?id=37220 7 8 Adding static method zero() to classes IntPoint and FloatPoint as suggested by Darin Adler. 9 10 * platform/graphics/FloatPoint.h: 11 (WebCore::FloatPoint::zero): 12 * platform/graphics/IntPoint.h: 13 (WebCore::IntPoint::zero): 14 (WebCore::IntPoint::clampNegativeToZero): 15 1 16 2010-04-07 Alexey Proskuryakov <ap@apple.com> 2 17 -
trunk/WebCore/platform/graphics/FloatPoint.h
r55633 r57236 70 70 FloatPoint(float x, float y) : m_x(x), m_y(y) { } 71 71 FloatPoint(const IntPoint&); 72 73 74 static FloatPoint zero() { return FloatPoint(); } 72 75 73 76 static FloatPoint narrowPrecision(double x, double y); -
trunk/WebCore/platform/graphics/IntPoint.h
r57118 r57236 82 82 explicit IntPoint(const IntSize& size) : m_x(size.width()), m_y(size.height()) { } 83 83 84 static IntPoint zero() { return IntPoint(); } 85 84 86 int x() const { return m_x; } 85 87 int y() const { return m_y; } … … 105 107 void clampNegativeToZero() 106 108 { 107 *this = expandedTo( IntPoint());109 *this = expandedTo(zero()); 108 110 } 109 111
Note: See TracChangeset
for help on using the changeset viewer.