#pragma once
#include "RenderBlockFlow.h"
#include "SVGGraphicsElement.h"
namespace WebCore {
class SVGElement;
class RenderSVGBlock : public RenderBlockFlow {
WTF_MAKE_ISO_ALLOCATED(RenderSVGBlock);
public:
SVGGraphicsElement& graphicsElement() const { return downcast<SVGGraphicsElement>(nodeForNonAnonymous()); }
protected:
RenderSVGBlock(SVGGraphicsElement&, RenderStyle&&);
void willBeDestroyed() override;
void computeOverflow(LayoutUnit oldClientAfterEdge, bool recomputeFloats = false) override;
private:
void element() const = delete;
void updateFromStyle() final;
bool isRenderSVGBlock() const final { return true; }
void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) const override;
void styleDidChange(StyleDifference, const RenderStyle* oldStyle) final;
};
}
SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSVGBlock, isRenderSVGBlock())