RenderSVGGradientStop.h [plain text]
#ifndef RenderSVGGradientStop_h
#define RenderSVGGradientStop_h
#if ENABLE(SVG)
#include "RenderObject.h"
namespace WebCore {
class SVGGradientElement;
class SVGStopElement;
class RenderSVGGradientStop : public RenderObject {
public:
RenderSVGGradientStop(SVGStopElement*);
virtual ~RenderSVGGradientStop();
virtual bool isSVGGradientStop() const { return true; }
virtual const char* renderName() const { return "RenderSVGGradientStop"; }
virtual void layout();
virtual LayoutRect clippedOverflowRectForRepaint(RenderBoxModelObject*) const { return LayoutRect(); }
virtual FloatRect objectBoundingBox() const { return FloatRect(); }
virtual FloatRect strokeBoundingBox() const { return FloatRect(); }
virtual FloatRect repaintRectInLocalCoordinates() const { return FloatRect(); }
protected:
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
private:
SVGGradientElement* gradientElement() const;
};
inline const RenderSVGGradientStop* toRenderSVGGradientStop(const RenderObject* object)
{
ASSERT(!object || object->isSVGGradientStop());
return static_cast<const RenderSVGGradientStop*>(object);
}
}
#endif // ENABLE(SVG)
#endif // RenderSVGGradientStop_h