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

Side by Side Diff: Source/core/rendering/style/BasicShapes.h

Issue 124303002: Layout support for new ellipse shape syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 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
« no previous file with comments | « Source/core/rendering/shapes/Shape.cpp ('k') | Source/core/rendering/style/BasicShapes.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/shapes/Shape.cpp ('k') | Source/core/rendering/style/BasicShapes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698