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

Unified Diff: Source/core/layout/svg/LayoutSVGShape.h

Issue 927583002: Moving RenderSVG* files from rendering/ to layout/ (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.cpp ('k') | Source/core/layout/svg/LayoutSVGShape.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGShape.h
diff --git a/Source/core/rendering/svg/RenderSVGShape.h b/Source/core/layout/svg/LayoutSVGShape.h
similarity index 92%
rename from Source/core/rendering/svg/RenderSVGShape.h
rename to Source/core/layout/svg/LayoutSVGShape.h
index 396b2ccbbd5265b61924150e178d2469ce2ca7fe..8776a9cf70451ed179d6cbae77f5b18d53ece697 100644
--- a/Source/core/rendering/svg/RenderSVGShape.h
+++ b/Source/core/layout/svg/LayoutSVGShape.h
@@ -23,8 +23,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef RenderSVGShape_h
-#define RenderSVGShape_h
+#ifndef LayoutSVGShape_h
+#define LayoutSVGShape_h
#include "core/layout/svg/SVGMarkerData.h"
#include "core/rendering/svg/RenderSVGModelObject.h"
@@ -45,10 +45,10 @@ enum ShapeGeometryCodePath {
EllipseGeometryFastPath
};
-class RenderSVGShape : public RenderSVGModelObject {
+class LayoutSVGShape : public RenderSVGModelObject {
public:
- explicit RenderSVGShape(SVGGraphicsElement*);
- virtual ~RenderSVGShape();
+ explicit LayoutSVGShape(SVGGraphicsElement*);
+ virtual ~LayoutSVGShape();
void setNeedsShapeUpdate() { m_needsShapeUpdate = true; }
virtual void setNeedsBoundariesUpdate() override final { m_needsBoundariesUpdate = true; }
@@ -87,7 +87,7 @@ protected:
virtual bool shapeDependentStrokeContains(const FloatPoint&);
virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) const;
- // Give RenderSVGPath a hook for updating markers in updateShapeFromElement.
+ // Give LayoutSVGPath a hook for updating markers in updateShapeFromElement.
virtual void processMarkerPositions() { };
FloatRect m_fillBoundingBox;
@@ -101,7 +101,7 @@ private:
virtual const AffineTransform& localToParentTransform() const override final { return m_localTransform ? *m_localTransform : RenderSVGModelObject::localToParentTransform(); }
virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGShape || RenderSVGModelObject::isOfType(type); }
- virtual const char* renderName() const override { return "RenderSVGShape"; }
+ virtual const char* renderName() const override { return "LayoutSVGShape"; }
virtual void layout() override final;
virtual void paint(const PaintInfo&, const LayoutPoint&) override final;
@@ -124,7 +124,7 @@ private:
bool m_needsTransformUpdate : 1;
};
-DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape());
+DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape());
}
« no previous file with comments | « Source/core/layout/svg/LayoutSVGRect.cpp ('k') | Source/core/layout/svg/LayoutSVGShape.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698