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

Unified Diff: Source/core/rendering/svg/RenderSVGEllipse.cpp

Issue 678863002: Move SVG shape painting code to SVGShapePainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update per reviewer comments Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/svg/RenderSVGEllipse.h ('k') | Source/core/rendering/svg/RenderSVGPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGEllipse.cpp
diff --git a/Source/core/rendering/svg/RenderSVGEllipse.cpp b/Source/core/rendering/svg/RenderSVGEllipse.cpp
index 8b350bad1100c70b5353cfc7659559cc26247dbe..47ad9b9822549fd0d983ba4cdde7284bd636a0d0 100644
--- a/Source/core/rendering/svg/RenderSVGEllipse.cpp
+++ b/Source/core/rendering/svg/RenderSVGEllipse.cpp
@@ -30,7 +30,6 @@
#include "core/svg/SVGCircleElement.h"
#include "core/svg/SVGEllipseElement.h"
-#include "platform/graphics/GraphicsContext.h"
namespace blink {
@@ -95,26 +94,6 @@ void RenderSVGEllipse::calculateRadiiAndCenter()
m_center = FloatPoint(ellipse.cx()->currentValue()->value(lengthContext), ellipse.cy()->currentValue()->value(lengthContext));
}
-void RenderSVGEllipse::fillShape(GraphicsContext* context) const
-{
- if (m_usePathFallback) {
- RenderSVGShape::fillShape(context);
- return;
- }
- context->fillEllipse(m_fillBoundingBox);
-}
-
-void RenderSVGEllipse::strokeShape(GraphicsContext* context) const
-{
- if (!style()->svgStyle().hasVisibleStroke())
- return;
- if (m_usePathFallback) {
- RenderSVGShape::strokeShape(context);
- return;
- }
- context->strokeEllipse(m_fillBoundingBox);
-}
-
bool RenderSVGEllipse::shapeDependentStrokeContains(const FloatPoint& point)
{
// The optimized contains code below does not support non-smooth strokes so we need
« no previous file with comments | « Source/core/rendering/svg/RenderSVGEllipse.h ('k') | Source/core/rendering/svg/RenderSVGPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698