diff --git a/Source/WebCore/platform/graphics/haiku/GraphicsContextHaiku.cpp b/Source/WebCore/platform/graphics/haiku/GraphicsContextHaiku.cpp
index d13bc11c63..c575c72e3d 100644
a
|
b
|
void GraphicsContextHaiku::fillRoundedRectImpl(const FloatRoundedRect& roundRect
|
210 | 210 | const float kRadiusBezierScale = 1.0f - 0.5522847498f; // 1 - (sqrt(2) - 1) * 4 / 3 |
211 | 211 | |
212 | 212 | BShape shape; |
213 | | shape.MoveTo(BPoint(rect.x() + topLeft.width(), rect.y())); |
214 | | shape.LineTo(BPoint(rect.maxX() - topRight.width(), rect.y())); |
| 213 | shape.MoveTo(BPoint(rect.maxX() - topRight.width(), rect.y())); |
215 | 214 | points[0].x = rect.maxX() - kRadiusBezierScale * topRight.width(); |
216 | 215 | points[0].y = rect.y(); |
217 | 216 | points[1].x = rect.maxX(); |
… |
… |
void GraphicsContextHaiku::fillRoundedRectImpl(const FloatRoundedRect& roundRect
|
231 | 230 | points[0].x = rect.x() + kRadiusBezierScale * bottomLeft.width(); |
232 | 231 | points[0].y = rect.maxY(); |
233 | 232 | points[1].x = rect.x(); |
234 | | points[1].y = rect.maxY() - kRadiusBezierScale * bottomRight.height(); |
| 233 | points[1].y = rect.maxY() - kRadiusBezierScale * bottomLeft.height(); |
235 | 234 | points[2].x = rect.x(); |
236 | | points[2].y = rect.maxY() - bottomRight.height(); |
| 235 | points[2].y = rect.maxY() - bottomLeft.height(); |
237 | 236 | shape.BezierTo(points); |
238 | 237 | shape.LineTo(BPoint(rect.x(), rect.y() + topLeft.height())); |
239 | 238 | points[0].x = rect.x(); |