SVGRenderSupport.h [plain text]
#ifndef SVGRenderSupport_h
#define SVGRenderSupport_h
#if ENABLE(SVG)
#include "PaintInfo.h"
namespace WebCore {
class FloatPoint;
class FloatRect;
class ImageBuffer;
class LayoutRect;
class RenderBoxModelObject;
class RenderGeometryMap;
class RenderLayerModelObject;
class RenderObject;
class RenderStyle;
class RenderSVGRoot;
class TransformState;
class SVGRenderSupport {
public:
static void layoutChildren(RenderObject*, bool selfNeedsLayout);
static bool isOverflowHidden(const RenderObject*);
static void intersectRepaintRectWithShadows(const RenderObject*, FloatRect&);
static void intersectRepaintRectWithResources(const RenderObject*, FloatRect&);
static bool filtersForceContainerLayout(RenderObject*);
static bool pointInClippingArea(RenderObject*, const FloatPoint&);
static void computeContainerBoundingBoxes(const RenderObject* container, FloatRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundingBox, FloatRect& repaintBoundingBox);
static bool paintInfoIntersectsRepaintRect(const FloatRect& localRepaintRect, const AffineTransform& localTransform, const PaintInfo&);
static FloatRect repaintRectForRendererInLocalCoordinatesExcludingSVGShadow(const RenderObject*);
static LayoutRect clippedOverflowRectForRepaint(const RenderObject*, const RenderLayerModelObject* repaintContainer);
static void computeFloatRectForRepaint(const RenderObject*, const RenderLayerModelObject* repaintContainer, FloatRect&, bool fixed);
static void mapLocalToContainer(const RenderObject*, const RenderLayerModelObject* repaintContainer, TransformState&, bool* wasFixed = 0);
static const RenderObject* pushMappingToContainer(const RenderObject*, const RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&);
static bool checkForSVGRepaintDuringLayout(RenderObject*);
static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*, const RenderObject*);
static bool transformToRootChanged(RenderObject*);
static bool rendererHasSVGShadow(const RenderObject*);
static void setRendererHasSVGShadow(RenderObject*, bool hasShadow);
static void childAdded(RenderObject* parent, RenderObject* child);
static void styleChanged(RenderObject*);
static const RenderSVGRoot* findTreeRootObject(const RenderObject*);
private:
SVGRenderSupport();
~SVGRenderSupport();
};
}
#endif // ENABLE(SVG)
#endif // SVGRenderSupport_h