Index: Source/core/svg/SVGGraphicsElement.cpp |
diff --git a/Source/core/svg/SVGGraphicsElement.cpp b/Source/core/svg/SVGGraphicsElement.cpp |
index 23cbbff77ff647ddb56e98ded9735d25855f9f8f..9a6a75d0e33c0f8ad2c86ea042bf880e0d30fd0f 100644 |
--- a/Source/core/svg/SVGGraphicsElement.cpp |
+++ b/Source/core/svg/SVGGraphicsElement.cpp |
@@ -132,7 +132,7 @@ PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGGraphicsElement::getScreenCTMFromJav |
bool SVGGraphicsElement::hasAnimatedLocalTransform() const |
{ |
- RenderStyle* style = renderer() ? renderer()->style() : 0; |
+ const RenderStyle* style = renderer() ? renderer()->style() : 0; |
// Each of these is used in SVGGraphicsElement::calculateAnimatedLocalTransform to create an animated local transform. |
return (style && style->hasTransform()) || !m_transform->currentValue()->isEmpty() || hasSVGRareData(); |
@@ -141,7 +141,7 @@ bool SVGGraphicsElement::hasAnimatedLocalTransform() const |
AffineTransform SVGGraphicsElement::calculateAnimatedLocalTransform() const |
{ |
AffineTransform matrix; |
- RenderStyle* style = renderer() ? renderer()->style() : 0; |
+ const RenderStyle* style = renderer() ? renderer()->style() : 0; |
// If CSS property was set, use that, otherwise fallback to attribute (if set). |
if (style && style->hasTransform()) { |
@@ -267,7 +267,7 @@ PassRefPtrWillBeRawPtr<SVGRectTearOff> SVGGraphicsElement::getBBoxFromJavascript |
return SVGRectTearOff::create(SVGRect::create(getBBox()), 0, PropertyIsNotAnimVal); |
} |
-RenderObject* SVGGraphicsElement::createRenderer(RenderStyle*) |
+RenderObject* SVGGraphicsElement::createRenderer(const RenderStyle*) |
{ |
// By default, any subclass is expected to do path-based drawing |
return new RenderSVGPath(this); |