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

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

Issue 921633007: Move the SVG container code from rendering/svg 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
Index: Source/core/layout/svg/LayoutSVGViewportContainer.h
diff --git a/Source/core/rendering/svg/RenderSVGViewportContainer.h b/Source/core/layout/svg/LayoutSVGViewportContainer.h
similarity index 85%
rename from Source/core/rendering/svg/RenderSVGViewportContainer.h
rename to Source/core/layout/svg/LayoutSVGViewportContainer.h
index 9280d5ebc9b0ca63bd7c71f9164be1be2780867e..616ebd2e3fdf6e45c2a7343b3728b6a56ad220cf 100644
--- a/Source/core/rendering/svg/RenderSVGViewportContainer.h
+++ b/Source/core/layout/svg/LayoutSVGViewportContainer.h
@@ -20,18 +20,18 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef RenderSVGViewportContainer_h
-#define RenderSVGViewportContainer_h
+#ifndef LayoutSVGViewportContainer_h
+#define LayoutSVGViewportContainer_h
#include "core/layout/svg/LayoutSVGContainer.h"
namespace blink {
// This is used for non-root <svg> elements and <marker> elements, neither of which are SVGTransformable
-// thus we inherit from LayoutSVGContainer instead of RenderSVGTransformableContainer
-class RenderSVGViewportContainer final : public LayoutSVGContainer {
+// thus we inherit from LayoutSVGContainer instead of LayoutSVGTransformableContainer
+class LayoutSVGViewportContainer final : public LayoutSVGContainer {
public:
- explicit RenderSVGViewportContainer(SVGElement*);
+ explicit LayoutSVGViewportContainer(SVGElement*);
FloatRect viewport() const { return m_viewport; }
bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; }
@@ -44,7 +44,7 @@ public:
private:
virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGViewportContainer || LayoutSVGContainer::isOfType(type); }
- virtual const char* renderName() const override { return "RenderSVGViewportContainer"; }
+ virtual const char* renderName() const override { return "LayoutSVGViewportContainer"; }
AffineTransform viewportTransform() const;
virtual const AffineTransform& localToParentTransform() const override { return m_localToParentTransform; }
@@ -61,7 +61,7 @@ private:
bool m_needsTransformUpdate : 1;
};
-DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderSVGViewportContainer, isSVGViewportContainer());
+DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGViewportContainer, isSVGViewportContainer());
} // namespace blink
« no previous file with comments | « Source/core/layout/svg/LayoutSVGTransformableContainer.cpp ('k') | Source/core/layout/svg/LayoutSVGViewportContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698