+2012-04-10 Philip Rogers <pdr@google.com>
+
+ Remove unnecessary calls to RenderSVGShape::createShape()
+ https://bugs.webkit.org/show_bug.cgi?id=83598
+
+ Reviewed by Rob Buis.
+
+ RenderSVGShape::strokeContains contains calls to fall back to path stroke hit detection
+ in several cases (dashed strokes, for example). One of these cases, a check for isStyled,
+ is not needed and is always true for Ellipses, Circles, and Rects (all styled elements).
+ This change removes the check for isStyled.
+
+ No new tests as this only affects performance, not test results.
+
+ * rendering/svg/RenderSVGShape.cpp:
+ (WebCore::RenderSVGShape::strokeContains):
+
2012-04-10 Dan Bernstein <mitz@apple.com>
<rdar://problem/10912486> CanvasRenderingContext2D does not expose its backing store resolution
}
if (!svgStyle->strokeDashArray().isEmpty() || svgStyle->strokeMiterLimit() != svgStyle->initialStrokeMiterLimit()
- || svgStyle->joinStyle() != svgStyle->initialJoinStyle() || svgStyle->capStyle() != svgStyle->initialCapStyle() || static_cast<SVGElement*>(node())->isStyled()) {
+ || svgStyle->joinStyle() != svgStyle->initialJoinStyle() || svgStyle->capStyle() != svgStyle->initialCapStyle()) {
if (!m_path)
RenderSVGShape::createShape();
return RenderSVGShape::shapeDependentStrokeContains(point);