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