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

Unified Diff: Source/core/rendering/svg/RenderSVGRect.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/RenderSVGRect.h ('k') | Source/core/rendering/svg/RenderSVGShape.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGRect.cpp
diff --git a/Source/core/rendering/svg/RenderSVGRect.cpp b/Source/core/rendering/svg/RenderSVGRect.cpp
index 81c4659032f436712d67f89b63c6f17bbb34709f..a8d37354f857f1a685ad47d61c941fcc3601492a 100644
--- a/Source/core/rendering/svg/RenderSVGRect.cpp
+++ b/Source/core/rendering/svg/RenderSVGRect.cpp
@@ -28,7 +28,7 @@
#include "config.h"
#include "core/rendering/svg/RenderSVGRect.h"
-#include "platform/graphics/GraphicsContext.h"
+#include "core/svg/SVGRectElement.h"
namespace blink {
@@ -86,29 +86,6 @@ void RenderSVGRect::updateShapeFromElement()
m_strokeBoundingBox = m_outerStrokeRect;
}
-void RenderSVGRect::fillShape(GraphicsContext* context) const
-{
- if (m_usePathFallback) {
- RenderSVGShape::fillShape(context);
- return;
- }
-
- context->fillRect(m_fillBoundingBox);
-}
-
-void RenderSVGRect::strokeShape(GraphicsContext* context) const
-{
- if (!style()->svgStyle().hasVisibleStroke())
- return;
-
- if (m_usePathFallback) {
- RenderSVGShape::strokeShape(context);
- return;
- }
-
- context->strokeRect(m_fillBoundingBox, strokeWidth());
-}
-
bool RenderSVGRect::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/RenderSVGRect.h ('k') | Source/core/rendering/svg/RenderSVGShape.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698