RenderSVGModelObject.cpp [plain text]
#include "config.h"
#if ENABLE(SVG)
#include "RenderSVGModelObject.h"
#include "RenderSVGResource.h"
#include "SVGStyledElement.h"
namespace WebCore {
RenderSVGModelObject::RenderSVGModelObject(SVGStyledElement* node)
: RenderObject(node)
{
}
IntRect RenderSVGModelObject::clippedOverflowRectForRepaint(RenderBoxModelObject* repaintContainer)
{
return SVGRenderSupport::clippedOverflowRectForRepaint(this, repaintContainer);
}
void RenderSVGModelObject::computeRectForRepaint(RenderBoxModelObject* repaintContainer, IntRect& repaintRect, bool fixed)
{
SVGRenderSupport::computeRectForRepaint(this, repaintContainer, repaintRect, fixed);
}
void RenderSVGModelObject::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState, bool* wasFixed) const
{
SVGRenderSupport::mapLocalToContainer(this, repaintContainer, fixed, useTransforms, transformState, wasFixed);
}
IntRect RenderSVGModelObject::outlineBoundsForRepaint(RenderBoxModelObject* repaintContainer, IntPoint*) const
{
IntRect box = enclosingIntRect(repaintRectInLocalCoordinates());
adjustRectForOutlineAndShadow(box);
FloatQuad containerRelativeQuad = localToContainerQuad(FloatRect(box), repaintContainer);
return containerRelativeQuad.enclosingBoundingBox();
}
void RenderSVGModelObject::absoluteRects(Vector<IntRect>&, int, int)
{
ASSERT_NOT_REACHED();
}
void RenderSVGModelObject::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed)
{
quads.append(localToAbsoluteQuad(strokeBoundingBox(), false, wasFixed));
}
void RenderSVGModelObject::willBeDestroyed()
{
SVGResourcesCache::clientDestroyed(this);
RenderObject::willBeDestroyed();
}
void RenderSVGModelObject::styleWillChange(StyleDifference diff, const RenderStyle* newStyle)
{
if (diff == StyleDifferenceLayout)
setNeedsBoundariesUpdate();
RenderObject::styleWillChange(diff, newStyle);
}
void RenderSVGModelObject::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle)
{
RenderObject::styleDidChange(diff, oldStyle);
SVGResourcesCache::clientStyleChanged(this, diff, style());
}
void RenderSVGModelObject::updateFromElement()
{
RenderObject::updateFromElement();
SVGResourcesCache::clientUpdatedFromElement(this, style());
}
bool RenderSVGModelObject::nodeAtPoint(const HitTestRequest&, HitTestResult&, const IntPoint&, int, int, HitTestAction)
{
ASSERT_NOT_REACHED();
return false;
}
}
#endif // ENABLE(SVG)