float RenderSVGResourceMarker::angle() const { SVGMarkerElement* marker = static_cast<SVGMarkerElement*>(node()); ASSERT(marker); float angle = -1; if (marker->orientType() == SVGMarkerOrientAngle) angle = marker->orientAngle().value(); return angle; }
float LayoutSVGResourceMarker::angle() const { SVGMarkerElement* marker = toSVGMarkerElement(element()); ASSERT(marker); float angle = -1; if (marker->orientType()->currentValue()->enumValue() == SVGMarkerOrientAngle) angle = marker->orientAngle()->currentValue()->value(); return angle; }