SVGRenderSupport.h [plain text]
#ifndef SVGRenderSupport_h
#define SVGRenderSupport_h
#if ENABLE(SVG)
#include "LayoutTypes.h"
#include "PaintInfo.h"
namespace WebCore {
class FloatPoint;
class FloatRect;
class ImageBuffer;
class RenderBoxModelObject;
class RenderGeometryMap;
class RenderObject;
class RenderStyle;
class RenderSVGRoot;
class TransformState;
class SVGRenderSupport {
public:
static void layoutChildren(RenderObject*, bool selfNeedsLayout);
static bool isOverflowHidden(const RenderObject*);
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 LayoutRect clippedOverflowRectForRepaint(const RenderObject*, RenderBoxModelObject* repaintContainer);
static void computeFloatRectForRepaint(const RenderObject*, RenderBoxModelObject* repaintContainer, FloatRect&, bool fixed);
static void mapLocalToContainer(const RenderObject*, RenderBoxModelObject* repaintContainer, TransformState&, bool* wasFixed = 0);
static const RenderObject* pushMappingToContainer(const RenderObject*, const RenderBoxModelObject* ancestorToStopAt, RenderGeometryMap&);
static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*, const RenderObject*);
static bool transformToRootChanged(RenderObject*);
static const RenderSVGRoot* findTreeRootObject(const RenderObject*);
private:
SVGRenderSupport();
~SVGRenderSupport();
};
}
#endif // ENABLE(SVG)
#endif // SVGRenderSupport_h