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&, Ref<RenderStyle>&&);
virtual ~RenderSVGGradientStop();
SVGStopElement& element() const { return downcast<SVGStopElement>(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();
};
}
SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSVGGradientStop, isSVGGradientStop())
#endif // RenderSVGGradientStop_h