OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 DEFINE_BASICSHAPE_TYPE_CASTS(DeprecatedBasicShapeCircle); | 254 DEFINE_BASICSHAPE_TYPE_CASTS(DeprecatedBasicShapeCircle); |
255 | 255 |
256 class BasicShapeEllipse : public BasicShape { | 256 class BasicShapeEllipse : public BasicShape { |
257 public: | 257 public: |
258 static PassRefPtr<BasicShapeEllipse> create() { return adoptRef(new BasicSha
peEllipse); } | 258 static PassRefPtr<BasicShapeEllipse> create() { return adoptRef(new BasicSha
peEllipse); } |
259 | 259 |
260 const BasicShapeCenterCoordinate& centerX() const { return m_centerX; } | 260 const BasicShapeCenterCoordinate& centerX() const { return m_centerX; } |
261 const BasicShapeCenterCoordinate& centerY() const { return m_centerY; } | 261 const BasicShapeCenterCoordinate& centerY() const { return m_centerY; } |
262 const BasicShapeRadius& radiusX() const { return m_radiusX; } | 262 const BasicShapeRadius& radiusX() const { return m_radiusX; } |
263 const BasicShapeRadius& radiusY() const { return m_radiusY; } | 263 const BasicShapeRadius& radiusY() const { return m_radiusY; } |
| 264 float floatValueForRadiusInBox(const BasicShapeRadius&, float center, float
boxWidthOrHeight) const; |
264 | 265 |
265 void setCenterX(BasicShapeCenterCoordinate centerX) { m_centerX = centerX; } | 266 void setCenterX(BasicShapeCenterCoordinate centerX) { m_centerX = centerX; } |
266 void setCenterY(BasicShapeCenterCoordinate centerY) { m_centerY = centerY; } | 267 void setCenterY(BasicShapeCenterCoordinate centerY) { m_centerY = centerY; } |
267 void setRadiusX(BasicShapeRadius radiusX) { m_radiusX = radiusX; } | 268 void setRadiusX(BasicShapeRadius radiusX) { m_radiusX = radiusX; } |
268 void setRadiusY(BasicShapeRadius radiusY) { m_radiusY = radiusY; } | 269 void setRadiusY(BasicShapeRadius radiusY) { m_radiusY = radiusY; } |
269 | 270 |
270 virtual void path(Path&, const FloatRect&) OVERRIDE; | 271 virtual void path(Path&, const FloatRect&) OVERRIDE; |
271 virtual PassRefPtr<BasicShape> blend(const BasicShape*, double) const OVERRI
DE; | 272 virtual PassRefPtr<BasicShape> blend(const BasicShape*, double) const OVERRI
DE; |
272 virtual bool operator==(const BasicShape&) const OVERRIDE; | 273 virtual bool operator==(const BasicShape&) const OVERRIDE; |
273 | 274 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 Length m_bottom; | 380 Length m_bottom; |
380 Length m_left; | 381 Length m_left; |
381 Length m_cornerRadiusX; | 382 Length m_cornerRadiusX; |
382 Length m_cornerRadiusY; | 383 Length m_cornerRadiusY; |
383 }; | 384 }; |
384 | 385 |
385 DEFINE_BASICSHAPE_TYPE_CASTS(BasicShapeInsetRectangle); | 386 DEFINE_BASICSHAPE_TYPE_CASTS(BasicShapeInsetRectangle); |
386 | 387 |
387 } | 388 } |
388 #endif | 389 #endif |
OLD | NEW |