| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. | 2 * Copyright (C) 2012 Google, Inc. |
| 3 * All rights reserved. | 3 * 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #include "core/rendering/svg/RenderSVGShape.h" | 30 #include "core/rendering/svg/RenderSVGShape.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 class RenderSVGEllipse FINAL : public RenderSVGShape { | 34 class RenderSVGEllipse FINAL : public RenderSVGShape { |
| 35 public: | 35 public: |
| 36 explicit RenderSVGEllipse(SVGGraphicsElement*); | 36 explicit RenderSVGEllipse(SVGGraphicsElement*); |
| 37 virtual ~RenderSVGEllipse(); | 37 virtual ~RenderSVGEllipse(); |
| 38 | 38 |
| 39 virtual bool isRenderingDisabled() const OVERRIDE; |
| 40 |
| 39 private: | 41 private: |
| 40 virtual const char* renderName() const OVERRIDE { return "RenderSVGEllipse";
} | 42 virtual const char* renderName() const OVERRIDE { return "RenderSVGEllipse";
} |
| 41 | 43 |
| 42 virtual void updateShapeFromElement() OVERRIDE; | 44 virtual void updateShapeFromElement() OVERRIDE; |
| 43 virtual bool isShapeEmpty() const OVERRIDE { return m_usePathFallback ? Rend
erSVGShape::isShapeEmpty() : m_fillBoundingBox.isEmpty(); } | 45 virtual bool isShapeEmpty() const OVERRIDE { return m_usePathFallback ? Rend
erSVGShape::isShapeEmpty() : m_fillBoundingBox.isEmpty(); } |
| 44 virtual void fillShape(GraphicsContext*) const OVERRIDE; | 46 virtual void fillShape(GraphicsContext*) const OVERRIDE; |
| 45 virtual void strokeShape(GraphicsContext*) const OVERRIDE; | 47 virtual void strokeShape(GraphicsContext*) const OVERRIDE; |
| 46 virtual bool shapeDependentStrokeContains(const FloatPoint&) OVERRIDE; | 48 virtual bool shapeDependentStrokeContains(const FloatPoint&) OVERRIDE; |
| 47 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c
onst OVERRIDE; | 49 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c
onst OVERRIDE; |
| 50 |
| 48 void calculateRadiiAndCenter(); | 51 void calculateRadiiAndCenter(); |
| 49 | 52 |
| 50 private: | 53 private: |
| 51 FloatPoint m_center; | 54 FloatPoint m_center; |
| 52 FloatSize m_radii; | 55 FloatSize m_radii; |
| 53 bool m_usePathFallback; | 56 bool m_usePathFallback; |
| 54 }; | 57 }; |
| 55 | 58 |
| 56 } | 59 } |
| 57 | 60 |
| 58 #endif | 61 #endif |
| OLD | NEW |