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

Unified Diff: Source/core/rendering/svg/RenderSVGGradientStop.h

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (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/rendering/svg/RenderSVGGradientStop.h
diff --git a/Source/core/rendering/svg/RenderSVGGradientStop.h b/Source/core/rendering/svg/RenderSVGGradientStop.h
index 49022316ccf363aebc69d1b5a5cda676d229c319..0ce0ab4a78c2f5ab8d19e7a424f404b7675ac0c9 100644
--- a/Source/core/rendering/svg/RenderSVGGradientStop.h
+++ b/Source/core/rendering/svg/RenderSVGGradientStop.h
@@ -21,7 +21,7 @@
#ifndef RenderSVGGradientStop_h
#define RenderSVGGradientStop_h
-#include "core/rendering/RenderObject.h"
+#include "core/layout/LayoutObject.h"
namespace blink {
@@ -29,18 +29,18 @@ class SVGGradientElement;
class SVGStopElement;
// This class exists mostly so we can hear about gradient stop style changes
-class RenderSVGGradientStop final : public RenderObject {
+class RenderSVGGradientStop final : public LayoutObject {
public:
explicit RenderSVGGradientStop(SVGStopElement*);
virtual ~RenderSVGGradientStop();
virtual const char* renderName() const override { return "RenderSVGGradientStop"; }
- virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectSVG || type == RenderObjectSVGGradientStop || RenderObject::isOfType(type); }
+ virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVG || type == LayoutObjectSVGGradientStop || LayoutObject::isOfType(type); }
virtual void layout() override;
// This overrides are needed to prevent ASSERTs on <svg><stop /></svg>
- // RenderObject's default implementations ASSERT_NOT_REACHED()
+ // LayoutObject's default implementations ASSERT_NOT_REACHED()
// https://bugs.webkit.org/show_bug.cgi?id=20400
virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutLayerModelObject*, const PaintInvalidationState* = 0) const override { return LayoutRect(); }
virtual FloatRect objectBoundingBox() const override { return FloatRect(); }
@@ -54,7 +54,7 @@ private:
SVGGradientElement* gradientElement() const;
};
-DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGGradientStop, isSVGGradientStop());
+DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderSVGGradientStop, isSVGGradientStop());
}
« no previous file with comments | « Source/core/rendering/svg/RenderSVGForeignObject.cpp ('k') | Source/core/rendering/svg/RenderSVGGradientStop.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698