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

Unified Diff: Source/core/layout/svg/LayoutSVGRect.cpp

Issue 913143006: Move RenderSVGRect to layout/svg (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/layout/svg/LayoutSVGRect.h ('k') | Source/core/rendering/svg/RenderSVGRect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGRect.cpp
diff --git a/Source/core/rendering/svg/RenderSVGRect.cpp b/Source/core/layout/svg/LayoutSVGRect.cpp
similarity index 93%
rename from Source/core/rendering/svg/RenderSVGRect.cpp
rename to Source/core/layout/svg/LayoutSVGRect.cpp
index 1536bd9c2617ad52c5a016a46a32b74f9592ded2..b3dff94dd46d11067f3c0ba34b68ca603b9ee472 100644
--- a/Source/core/rendering/svg/RenderSVGRect.cpp
+++ b/Source/core/layout/svg/LayoutSVGRect.cpp
@@ -26,23 +26,23 @@
*/
#include "config.h"
+#include "core/layout/svg/LayoutSVGRect.h"
-#include "core/rendering/svg/RenderSVGRect.h"
#include "core/svg/SVGRectElement.h"
namespace blink {
-RenderSVGRect::RenderSVGRect(SVGRectElement* node)
+LayoutSVGRect::LayoutSVGRect(SVGRectElement* node)
: RenderSVGShape(node)
, m_usePathFallback(false)
{
}
-RenderSVGRect::~RenderSVGRect()
+LayoutSVGRect::~LayoutSVGRect()
{
}
-void RenderSVGRect::updateShapeFromElement()
+void LayoutSVGRect::updateShapeFromElement()
{
// Before creating a new object we need to clear the cached bounding box
// to avoid using garbage.
@@ -90,7 +90,7 @@ void RenderSVGRect::updateShapeFromElement()
m_strokeBoundingBox = m_outerStrokeRect;
}
-bool RenderSVGRect::shapeDependentStrokeContains(const FloatPoint& point)
+bool LayoutSVGRect::shapeDependentStrokeContains(const FloatPoint& point)
{
// The optimized code below does not support non-simple strokes so we need
// to fall back to RenderSVGShape::shapeDependentStrokeContains in these cases.
@@ -103,7 +103,7 @@ bool RenderSVGRect::shapeDependentStrokeContains(const FloatPoint& point)
return m_outerStrokeRect.contains(point, FloatRect::InsideOrOnStroke) && !m_innerStrokeRect.contains(point, FloatRect::InsideButNotOnStroke);
}
-bool RenderSVGRect::shapeDependentFillContains(const FloatPoint& point, const WindRule fillRule) const
+bool LayoutSVGRect::shapeDependentFillContains(const FloatPoint& point, const WindRule fillRule) const
{
if (m_usePathFallback)
return RenderSVGShape::shapeDependentFillContains(point, fillRule);
@@ -111,7 +111,7 @@ bool RenderSVGRect::shapeDependentFillContains(const FloatPoint& point, const Wi
}
// Returns true if the stroke is continuous and definitely uses miter joins.
-bool RenderSVGRect::definitelyHasSimpleStroke() const
+bool LayoutSVGRect::definitelyHasSimpleStroke() const
{
const SVGLayoutStyle& svgStyle = style()->svgStyle();
« no previous file with comments | « Source/core/layout/svg/LayoutSVGRect.h ('k') | Source/core/rendering/svg/RenderSVGRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698