RenderSVGGradientStop.h [plain text]
#ifndef RenderSVGGradientStop_h
#define RenderSVGGradientStop_h
#include "RenderElement.h"
#include "SVGStopElement.h"
namespace WebCore {
class SVGGradientElement;
class RenderSVGGradientStop final : public RenderElement {
public:
RenderSVGGradientStop(SVGStopElement&, PassRef<RenderStyle>);
virtual ~RenderSVGGradientStop();
SVGStopElement& element() const { return toSVGStopElement(RenderObject::nodeForNonAnonymous()); }
private:
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override;
virtual void layout() override;
virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObject*) const override { return LayoutRect(); }
virtual FloatRect objectBoundingBox() const override { return FloatRect(); }
virtual FloatRect strokeBoundingBox() const override { return FloatRect(); }
virtual FloatRect repaintRectInLocalCoordinates() const override { return FloatRect(); }
virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const FloatPoint&, HitTestAction) override { return false; }
virtual bool isSVGGradientStop() const override { return true; }
virtual const char* renderName() const override { return "RenderSVGGradientStop"; }
virtual bool canHaveChildren() const override { return false; }
virtual void paint(PaintInfo&, const LayoutPoint&) override { }
SVGGradientElement* gradientElement();
};
RENDER_OBJECT_TYPE_CASTS(RenderSVGGradientStop, isSVGGradientStop())
}
#endif // RenderSVGGradientStop_h